/* =========================================================
   PRIMEX CNC - CONTACT PAGE
========================================================= */

html,
body {
    background: #ffffff !important;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.px-contact-page {
    width: 100%;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}


/* =========================================================
   CONTACT INTRO
========================================================= */

.px-contact-intro {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 85px 0 65px;
    box-sizing: border-box;
    background: #ffffff;
}

.px-contact-intro-inner {
    width: 100%;
}

.px-contact-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #990000;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.px-contact-intro h1 {
    margin: 0 0 20px;
    color: #131D3B;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.px-contact-intro p {
    margin: 0 0 17px;
    color: #666d81;
    font-size: 16px;
    line-height: 1.55;
}

.px-contact-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTACT FORM SECTION
========================================================= */

.px-contact-form-section {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 0 65px;
    box-sizing: border-box;
}

.px-contact-form-wrapper {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    width: 100%;
    min-height: 330px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 8px 35px rgba(19, 29, 59, 0.08);
    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.px-contact-info {
    padding: 38px 28px;
    background: #f8f9fb;
    box-sizing: border-box;
}

.px-contact-small-title {
    display: block;
    margin-bottom: 8px;
    color: #990000;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
}

.px-contact-info h2 {
    margin: 0 0 10px;
    color: #131D3B;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.px-contact-info-description {
    max-width: 360px;
    margin: 0 0 24px;
    color: #666d81;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   CONTACT ITEMS
========================================================= */

.px-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 19px;
}

.px-contact-info-item:last-child {
    margin-bottom: 0;
}

.px-contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    margin-top: 1px;
    border-radius: 50%;
    background: #990000;
    color: #ffffff;
    font-size: 12px;
}

.px-contact-info-content {
    min-width: 0;
}

.px-contact-info-content strong {
    display: block;
    margin-bottom: 3px;
    color: #131D3B;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.px-contact-info-content a,
.px-contact-info-content p {
    margin: 0;
    color: #666d81;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
}


/* =========================================================
   FORM BOX
========================================================= */

.px-contact-form-box {
    padding: 27px 28px;
    background: #ffffff;
    box-sizing: border-box;
}

.px-contact-form {
    width: 100%;
}


/* =========================================================
   PRODUCT FIELD
========================================================= */

.px-contact-product-field {
    display: none;
    margin-bottom: 15px;
}

.px-contact-product-field.px-product-visible {
    display: block;
}

.px-contact-product-field label {
    display: block;
    margin-bottom: 6px;
    color: #131313;
    font-size: 12px;
    font-weight: 700;
}

.px-contact-product-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #e0e3e8;
    border-radius: 5px;
    outline: none;
    background: #f3f4f6;
    color: #666d81;
    font-size: 13px;
    box-sizing: border-box;
}


/* =========================================================
   FORM ROW
========================================================= */

.px-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 16px;
}

.px-contact-field {
    width: 100%;
}

.px-contact-field label {
    display: block;
    margin-bottom: 6px;
    color: #131313;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.px-contact-field label span {
    color: #990000;
}

.px-contact-field input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 13px;
    border: 1px solid #e2e4e8;
    border-radius: 5px;
    outline: none;
    background: #f2f3f5;
    color: #131D3B;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s ease,
                background 0.2s ease;
}

.px-contact-field input::placeholder,
.px-contact-field textarea::placeholder {
    color: #c3c5ca;
}

.px-contact-field input:focus,
.px-contact-field textarea:focus {
    border-color: #9fb7e8;
    background: #ffffff;
}


/* =========================================================
   MESSAGE
========================================================= */

.px-contact-message-field {
    margin-bottom: 18px;
}

.px-contact-field textarea {
    display: block;
    width: 100%;
    height: 92px;
    padding: 12px 13px;
    border: 1px solid #9fb7e8;
    border-radius: 5px;
    outline: none;
    resize: vertical;
    background: #ffffff;
    color: #131D3B;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.px-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #131D3B;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(19, 29, 59, 0.18);
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.px-contact-submit:hover {
    background: #990000;
    transform: translateY(-1px);
}


/* =========================================================
   LOCATION
========================================================= */

.px-contact-location {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 0 45px;
    box-sizing: border-box;
}

.px-contact-location-heading {
    margin-bottom: 16px;
}

.px-contact-location-heading span {
    display: block;
    margin-bottom: 7px;
    color: #990000;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
}

.px-contact-location-heading h2 {
    margin: 0 0 6px;
    color: #131D3B;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.px-contact-location-heading p {
    margin: 0;
    color: #666d81;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   MAP
========================================================= */

.px-contact-map {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 3px;
    background: #f2f3f4;
}

.px-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.px-contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    max-width: 1140px;
    min-height: 82px;
    margin: 0 auto 60px;
    padding: 18px 28px;
    background: #131D3B;
    border-radius: 3px;
    box-sizing: border-box;
}

.px-contact-cta-content {
    display: flex;
    align-items: center;
    gap: 17px;
}

.px-contact-cta-line {
    width: 3px;
    height: 38px;
    flex: 0 0 3px;
    background: #990000;
}

.px-contact-cta h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
}

.px-contact-cta p {
    margin: 0;
    color: #d3d7e2;
    font-size: 12px;
    line-height: 1.4;
}

.px-contact-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 17px;
    border-radius: 4px;
    background: #990000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.px-contact-whatsapp:hover {
    background: #c40000;
}

.px-contact-whatsapp i {
    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .px-contact-intro,
    .px-contact-form-section,
    .px-contact-location,
    .px-contact-cta {
        max-width: 90%;
    }

    .px-contact-intro h1 {
        font-size: 44px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .px-contact-intro {
        max-width: 100%;
        padding: 70px 25px 55px;
    }

    .px-contact-intro h1 {
        font-size: 37px;
    }

    .px-contact-intro p {
        font-size: 15px;
        line-height: 1.6;
    }


    .px-contact-form-section {
        max-width: 100%;
        padding: 0 25px 55px;
    }

    .px-contact-form-wrapper {
        grid-template-columns: 1fr;
    }

    .px-contact-info {
        padding: 32px 25px;
    }

    .px-contact-form-box {
        padding: 30px 25px;
    }


    .px-contact-location {
        max-width: 100%;
        padding: 0 25px 40px;
    }

    .px-contact-map {
        height: 320px;
    }


    .px-contact-cta {
        max-width: calc(100% - 50px);
        margin-bottom: 50px;
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .px-contact-whatsapp {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .px-contact-intro {
        padding: 50px 16px 45px;
    }

    .px-contact-intro h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .px-contact-intro p {
        font-size: 14px;
        line-height: 1.65;
    }


    .px-contact-form-section {
        padding: 0 16px 45px;
    }

    .px-contact-info {
        padding: 28px 20px;
    }

    .px-contact-form-box {
        padding: 25px 20px;
    }

    .px-contact-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .px-contact-location {
        padding: 0 16px 35px;
    }

    .px-contact-location-heading h2 {
        font-size: 27px;
    }

    .px-contact-map {
        height: 280px;
    }


    .px-contact-cta {
        max-width: calc(100% - 32px);
        margin-bottom: 40px;
        padding: 20px;
    }

    .px-contact-cta h2 {
        font-size: 17px;
    }

}