/* --- Contact Page Specific Styles --- */
main {
    background-color: var(--main-white);
    padding-top: 120px;
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Make columns feel 1:1 like the Figma (equal width, balanced gap) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
    row-gap: 40px;
    align-items: start;
}

/* Smaller headings like the mock */
.contact-lead h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 600;
    margin: 0 0 10px;
    padding-left: 15px;
}

.contact-lead p {
    font-size: 1rem;
    color: var(--main-gray);
    max-width: 60ch;
    margin-bottom: 16px;
    padding-left: 15px;
}

.contact-right h2 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
}

.right-intro {
    font-size: 1rem;
    margin: 8px 0 18px;
    color: var(--main-gray);
}

/* Form */
.contact-form {
    margin-top: 8px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Field labels should be black and smaller */
.field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.field label {
    color: var(--main-black);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 5px;
}

.req {
    color: #d14343;
}

/* Inputs/textarea (inherit base input from global; just typography + textarea box) */
.contact-form input,
.contact-form textarea {
    font-family: "Instrument Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-black);
}

textarea {
    background-color: #fff;
    border: 1px solid var(--secondary-gray);
    border-radius: 8px;
    padding: 12px 14px;
    min-height: 150px;
    resize: vertical;
}

/* Placeholder styling to match Figma */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: "Instrument Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #9AA3AF;
    opacity: 1;
}

.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
    color: #9AA3AF;
    opacity: 1;
}

.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
    color: #9AA3AF;
}

.contact-form input::-ms-input-placeholder,
.contact-form textarea::-ms-input-placeholder {
    color: #9AA3AF;
}

/* Submit button — full width pill */
.send-btn {
    width: 100%;
    background-color: var(--main-button-colour);
    border: none;
    border-radius: 100px;
    color: var(--main-black);
    font-weight: 600;
    padding: 14px 16px;
}

/* Contact info cards */
.info-list {
    display: grid;
    gap: 18px;
    padding-top: 16px;
}

.info-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 14px;
    background: #F7F7F7;
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 8px 18px rgba(0, 0, 0, .06);
}

.icon svg {
    width: 22px;
    height: 22px;
}

.icon-mail {
    color: #ff7a59;
}

.icon-chat {
    color: #24c26a;
}

.icon-call {
    color: var(--secondary-green);
    background: #E9F7EF;
}

/* Title "Email", "Quick Chat", etc. smaller like Figma */
.info-copy h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--main-black);
}

.info-copy p {
    font-size: 0.98rem;
    margin: 0;
    color: var(--main-gray);
    line-height: 1.4;
}

.email-link {
    color: var(--main-black);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
    text-decoration: underline;
}

/* Consultation card uses hover treatment */
.consult-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.consult-copy h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--main-black);
}

.consult-copy p {
    font-size: 0.98rem;
    margin: 0 0 8px;
    color: var(--main-gray);
    line-height: 1.4;
}

.book-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--main-button-colour);
    color: var(--main-black);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.book-btn:hover {
    background: var(--secondary-button-colour);
    color: #fff;
}

.consult-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

/* Back to Top Button (Mobile Only) */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--main-button-colour);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    display: block;
}

/* ---------------- Responsive ---------------- */

/* Tablet (1024px) - Same as main stylesheet */
@media only screen and (max-width: 1024px) {
    main {
        padding: 48px;
        padding-top: 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 60px;
        padding: 40px;
    }

    /* Center the form section */
    .contact-left {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-lead {
        padding: 0 48px;
        margin-bottom: 24px;
    }

    .contact-lead h1 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-lead p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Larger heading and intro text in contact-right */
    .contact-right h2 {
        font-size: 2.25rem;
        text-align: center;
    }

    .right-intro {
        font-size: 1.1rem;
        text-align: center;
    }

    /* Two-column layout for info cards */
    .info-list {
        grid-template-columns: 1fr 1fr;
    }

    /* Make consultation card span full width */
    .consult-card {
        grid-column: 1 / -1;
    }

    .consult-card {
        max-width: fit-content;
        justify-self: center;
    }
}

/* Mobile (768px) - Same as main stylesheet */
@media only screen and (max-width: 768px) {
    main {
        padding: 32px 16%;
        padding-top: 120px;
    }

    .contact-grid {
        padding: 0;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-lead {
        padding: 0;
        margin-bottom: 24px;
    }

    .contact-lead h1 {
        font-size: 1.75rem;
        text-align: left;
        padding-left: 0;
    }

    .contact-lead p {
        text-align: left;
        padding-left: 0;
    }

    .row-2 {
        grid-template-columns: 1fr;
    }

    .contact-right h2 {
        font-size: 1.45rem;
    }

    /* Stack info cards vertically on mobile */
    .info-list {
        grid-template-columns: 1fr;
    }

    .consult-card {
        grid-column: 1;
    }

    .consult-card {
        max-width: initial;
        justify-self: initial;
    }

    /* Show back to top button on mobile */
    .back-to-top {
        display: flex;
    }
}

@media only screen and (max-width: 450px) {
    main {
        padding: 32px 4%;
        padding-top: 120px;
    }
}
