/* =========================
   Validation Errors
   ========================= */

.contact-form .error-message {
    margin-top: 6px;

    color: #b42318;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.contact-form .form-error {
    border-color: #b42318;
}

.contact-form .form-error:focus {
    border-color: #b42318;

    box-shadow:
            0 0 0 3px rgba(180, 35, 24, 0.12);
}


/* =========================
   Contact Page
   ========================= */

.contact-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 88px;
}

.contact-page > h1 {
    margin: 0 0 42px;

    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;

    color: var(--text);
}


/* =========================
   Main Contact Layout
   ========================= */

.contact-content {
    width: min(900px, 100%);
    margin: 0 auto;
}


/* =========================
   Enquiry Form Card
   ========================= */

.enquiry-section {
    position: relative;

    padding: 42px 46px 46px;

    background: #f7eedc;

    border: 1px solid rgba(183, 170, 150, 0.35);
    border-radius: 18px;

    box-shadow:
            0 14px 36px rgba(64, 52, 38, 0.08);
}

.enquiry-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 46px;

    width: 72px;
    height: 4px;

    background: var(--accent);

    border-radius: 0 0 4px 4px;
}

.enquiry-section h2 {
    margin: 0 0 10px;

    font-size: 2rem;
    font-weight: 700;
}

.enquiry-section > p {
    margin: 0 0 34px;

    color: #666666;

    line-height: 1.6;
}


/* =========================
   Form
   ========================= */

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 26px;
}

.contact-form input,
.contact-form textarea {
    font-size: 0.95rem;
}

.contact-form input {
    min-height: 46px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-row label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #b7aa96;
    border-radius: 8px;

    background: #ffffff;

    color: var(--text);

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;

    border-color: var(--accent);

    box-shadow:
            0 0 0 3px rgba(31, 183, 181, 0.14);
}


/* Message field takes full width */
.contact-form .textarea {
    grid-column: 1 / -1;
}

.contact-form textarea {
    width: 100%;
    min-height: 105px;

    padding: 11px 12px;

    border: 1px solid #b7aa96;
    border-radius: 8px;

    background: #ffffff;

    color: var(--text);

    resize: vertical;
}


/* Submit button takes full width below message */
.contact-form > .btn-primary {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 42px;

    margin-top: 2px;

    border-radius: 8px;
}
/*


!* =========================
   Contact Information Card
   ========================= *!

.business-info {
    padding: 32px;

    background: #f7eedc;

    border-radius: 14px;

    box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.05);
}

.business-info h2 {
    margin: 0 0 28px;

    font-size: 1.6rem;
    font-weight: 700;
}

.business-detail {
    margin-bottom: 24px;
}

.business-detail:last-child {
    margin-bottom: 0;
}

.business-detail h3 {
    margin: 0 0 6px;

    font-size: 1rem;
    font-weight: 700;
}

.business-detail p {
    margin: 0;

    line-height: 1.55;

    color: #3f3f3f;
}
*/


/* =========================
   Responsive
   ========================= */

@media (max-width: 640px) {

    .contact-page {
        width: min(100% - 32px, 1180px);

        padding: 48px 0 64px;
    }

    .contact-page > h1 {
        margin-bottom: 28px;

        font-size: 2.3rem;
    }

    .enquiry-section {
        padding: 24px;
    }

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

    .form-row,
    .form-row:has(textarea),
    .form-row:has(.btn-primary) {
        grid-column: 1;
    }

    .contact-form .btn-primary {
        width: 100%;
    }
}
/* =========================
   CAPTCHA Section
   ========================= */

.captcha-section {
    grid-column: 1 / -1;
    margin-top: 16px;
}

.captcha-section label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.captcha-error {
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: rgba(180, 35, 24, 0.08);
    border-left: 3px solid #b42318;
    border-radius: 4px;
}

.g-recaptcha {
    display: flex;
    justify-content: flex-start;
}

/* Ensure CAPTCHA doesn't break form layout on smaller screens */
@media (max-width: 640px) {
    .captcha-section {
        grid-column: 1;
    }
}

/* CAPTCHA service unavailable message */
.captcha-service-error {
    margin-top: 8px;
    padding: 10px 12px;

    border-left: 3px solid #c0392b;
    border-radius: 4px;

    background: #fdecea;
    color: #b42318;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}