/* =========================================================
   CORNERSTONE TECHDEV — CONTACT PAGE
   Clean contact-page stylesheet
   Palette + typography matched to the CornerStone design
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --contact-cream: #F3EEE6;
    --contact-white: #FAF7F1;
    --contact-orange: #D9943F;
    --contact-orange-bright: #E0A04A;
    --contact-muted: #B9B2A8;
    --contact-border: rgba(217, 148, 63, 0.28);
    --contact-border-soft: rgba(217, 148, 63, 0.18);
    --contact-field: rgba(12, 10, 8, 0.28);
    --contact-panel: rgba(25, 21, 17, 0.62);
    --contact-dark: #1C1814;
}


/* =========================================================
   PAGE
   ========================================================= */

body {
    min-height: 100vh;
}

main {
    position: relative;
    z-index: 2;
}

.contact-hero,
.contact-cta,
.contact-process {
    position: relative;
    box-sizing: border-box;
}


/* =========================================================
   SHARED TYPOGRAPHY
   ========================================================= */

.contact-hero h1,
.contact-cta h2,
.process-heading h2,
.form-heading h2,
.process-item h3 {
    font-family: "Manrope", sans-serif;
}

.contact-hero h1,
.contact-cta h2,
.process-heading h2,
.form-heading h2 {
    text-transform: uppercase;
}

.section-label {
    margin: 0 0 20px;
    color: var(--contact-orange);
    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   CONTACT HERO
   ========================================================= */

.contact-hero {
    width: min(1240px, 90%);
    margin: 0 auto;
    padding: 125px 0 115px;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 90px;
    align-items: start;
}

.contact-intro {
    padding-top: 35px;
}

.contact-intro h1 {
    max-width: 680px;
    margin: 0;

    color: var(--contact-white);
    font-size: clamp(4rem, 6.8vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.contact-intro h1 span {
    display: block;
    color: var(--contact-orange);
}

.contact-description {
    max-width: 560px;
    margin: 34px 0 0;

    color: var(--contact-muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.85;
}


/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 55px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;

    color: var(--contact-white);
    font-family: "Manrope", sans-serif;
    text-decoration: none;
}

.detail-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--contact-border);
    border-radius: 50%;

    color: var(--contact-orange);
    font-size: 0.9rem;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.contact-detail:hover .detail-icon {
    background: rgba(217, 148, 63, 0.09);
    border-color: var(--contact-orange);
    transform: translateY(-2px);
}

.contact-detail div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail small {
    color: var(--contact-muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-detail strong {
    color: var(--contact-white);
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   FORM WRAPPER
   ========================================================= */

.contact-form-wrapper {
    padding: 42px;

    background: var(--contact-panel);
    border: 1px solid var(--contact-border-soft);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.form-heading {
    margin-bottom: 35px;
}

.form-heading .section-label {
    margin-bottom: 14px;
}

.form-heading h2 {
    margin: 0;

    color: var(--contact-white);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group:nth-last-of-type(2),
.form-group:last-of-type {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--contact-muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid rgba(243, 238, 230, 0.14);
    outline: none;

    background: var(--contact-field);
    color: var(--contact-white);

    font-family: "Manrope", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.form-group input,
.form-group select {
    height: 50px;
    padding: 0 15px;
}

.form-group textarea {
    min-height: 135px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(243, 238, 230, 0.35);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #211c17;
    color: var(--contact-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--contact-orange);
    background: rgba(217, 148, 63, 0.045);
}


/* =========================================================
   SEND ENQUIRY
   ========================================================= */

.form-submit {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 56px;
    margin-top: 5px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;

    border: 1px solid var(--contact-orange);
    background: transparent;

    color: var(--contact-orange);

    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.form-submit span {
    color: inherit;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.form-submit:hover {
    background: var(--contact-orange);
    color: #211a13;
    transform: translateY(-2px);
}


/* =========================================================
   QUICK CHAT
   ========================================================= */

.contact-cta {
    width: min(1240px, 90%);
    margin: 0 auto;
    padding: 65px 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    border-top: 1px solid var(--contact-border-soft);
    border-bottom: 1px solid var(--contact-border-soft);
}

.contact-cta .section-label {
    margin-bottom: 14px;
}

.contact-cta h2 {
    margin: 0;

    color: var(--contact-white);
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.contact-cta p:not(.section-label) {
    max-width: 550px;
    margin: 18px 0 0;

    color: var(--contact-muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.75;
}

.whatsapp-button {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    min-width: 235px;
    padding: 17px 22px;
    box-sizing: border-box;

    border: 1px solid var(--contact-orange);
    background: transparent;

    color: var(--contact-orange);

    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.whatsapp-button span {
    font-size: 1rem;
    letter-spacing: 0;
}

.whatsapp-button:hover {
    background: var(--contact-orange);
    color: #211a13;
    transform: translateY(-2px);
}


/* =========================================================
   PROCESS
   ========================================================= */

.contact-process {
    width: min(1240px, 90%);
    margin: 0 auto;
    padding: 120px 0 140px;
}

.process-heading {
    margin-bottom: 65px;
}

.process-heading h2 {
    max-width: 800px;
    margin: 0;

    color: var(--contact-white);
    font-size: clamp(3.2rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.process-heading h2 span {
    color: var(--contact-orange);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--contact-border-soft);
}

.process-item {
    min-height: 220px;
    padding: 32px 35px 20px 0;
    border-right: 1px solid var(--contact-border-soft);
}

.process-item:not(:first-child) {
    padding-left: 35px;
}

.process-item:last-child {
    border-right: none;
}

.process-number {
    display: block;
    margin-bottom: 32px;

    color: var(--contact-orange);
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.process-item h3 {
    margin: 0 0 15px;

    color: var(--contact-white);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.process-item p {
    max-width: 300px;
    margin: 0;

    color: var(--contact-muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.75;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 701px) and (max-width: 1100px) {

    .contact-hero {
        width: 86%;
        padding: 105px 0 85px;

        grid-template-columns: 1fr;
        gap: 65px;
    }

    .contact-intro {
        padding-top: 0;
        text-align: center;
    }

    .contact-intro h1,
    .contact-description {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        align-items: center;
    }

    .contact-form-wrapper {
        width: 100%;
    }

    .contact-cta {
        width: 86%;
        padding: 55px 45px;
    }

    .contact-process {
        width: 86%;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .contact-hero {
        width: 88%;
        padding: 95px 0 75px;

        display: flex;
        flex-direction: column;
        gap: 55px;
    }

    .contact-intro {
        padding-top: 0;
    }

    .contact-intro h1 {
        font-size: clamp(3.3rem, 15vw, 5rem);
    }

    .contact-description {
        margin-top: 28px;
        font-size: 0.9rem;
    }

    .contact-details {
        margin-top: 40px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group:nth-last-of-type(2),
    .form-group:last-of-type {
        grid-column: auto;
    }

    .form-submit {
        grid-column: auto;
    }

    .contact-cta {
        width: 88%;
        padding: 55px 0;

        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }

    .contact-cta h2 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .whatsapp-button {
        width: 100%;
        min-width: 0;
    }

    .contact-process {
        width: 88%;
        padding: 85px 0 95px;
    }

    .process-heading {
        margin-bottom: 50px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-item,
    .process-item:not(:first-child) {
        min-height: auto;
        padding: 30px 0;

        border-right: none;
        border-bottom: 1px solid var(--contact-border-soft);
    }

    .process-item:last-child {
        border-bottom: none;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .contact-hero,
    .contact-cta,
    .contact-process {
        width: calc(100% - 40px);
    }

    .contact-intro h1 {
        font-size: 3rem;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
    }
}

/* ==========================================
   ENQUIRY SUCCESS POPUP
=========================================== */

.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.enquiry-modal.active {
    opacity: 1;
    visibility: visible;
}


/* BACKDROP */

.enquiry-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8, 7, 6, 0.88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* MODAL */

.enquiry-modal-content {
    position: relative;
    z-index: 1;

    width: min(520px, 100%);

    padding: 56px 48px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(35, 29, 23, 0.98),
            rgba(18, 15, 12, 0.98)
        );

    border: 1px solid
        rgba(217, 148, 63, 0.45);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(217, 148, 63, 0.08);

    transform: translateY(25px) scale(0.96);

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.enquiry-modal.active
.enquiry-modal-content {
    transform: translateY(0) scale(1);
}


/* CHECK ICON */

.enquiry-modal-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        var(--contact-orange);

    border-radius: 50%;

    color: var(--contact-orange);

    font-size: 32px;
    font-weight: 500;

    box-shadow:
        0 0 35px
        rgba(217, 148, 63, 0.15);
}


/* LABEL */

.enquiry-modal-content .section-label {
    margin-bottom: 14px;
}


/* HEADING */

.enquiry-modal-content h2 {
    margin: 0 0 18px;

    color: var(--contact-white);

    font-size: clamp(2rem, 5vw, 3.2rem);

    line-height: 1;

    letter-spacing: -0.04em;

    text-transform: uppercase;
}


/* MESSAGE */

.enquiry-modal-content > p:not(.section-label) {
    max-width: 390px;

    margin: 0 auto 34px;

    color: var(--contact-muted);

    font-size: 0.95rem;

    line-height: 1.7;
}


/* CLOSE BUTTON */

.enquiry-modal-close {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    gap: 32px;

    min-width: 150px;

    padding: 15px 20px;

    background: transparent;

    border: 1px solid
        var(--contact-orange);

    color: var(--contact-orange);

    font-family: inherit;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.enquiry-modal-close span {
    font-size: 1.25rem;

    line-height: 1;
}

.enquiry-modal-close:hover {
    background:
        var(--contact-orange);

    color:
        var(--contact-dark);

    transform:
        translateY(-2px);
}


/* MOBILE */

@media (max-width: 600px) {

    .enquiry-modal {
        padding: 18px;
    }

    .enquiry-modal-content {
        padding: 44px 28px;
    }

    .enquiry-modal-icon {
        width: 62px;
        height: 62px;

        margin-bottom: 24px;

        font-size: 28px;
    }

    .enquiry-modal-content h2 {
        font-size: 2rem;
    }

}