/* Contact Us Page: Replicates mockup stay connected form with premium responsiveness */

.contact-section {
    background-color: rgb(223, 206, 194);
    /* Sandy beige background to match terms/privacy pages */
    margin-top: 103px;
    /* Clear navbar header */
    padding: 85px 0;
    font-family: var(--primary-font, 'Degular', sans-serif);
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-card {
    display: grid;
    grid-template-columns: 22% 56% 22%;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
}

/* Decorative sidebars */
.contact-panel-side {
    background-color: #418277;
    /* Teal background matching screenshot */
    width: 100%;
}

/* Main form panel */
.contact-panel-main {
    background-color: #b08233;
    /* Mustard gold background */
    padding: 60px 45px;
    text-align: center;
}

/* Header pill at the top of the form */
.header-pill {
    background-color: #ffffff;
    color: #418277;
    border-radius: 50px;
    padding: 14px 40px;
    font-family: var(--heading-font, var(--secondary-font, 'ohno-blazeface', sans-serif));
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 45px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-form-container {
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
}

.form-group-custom {
    margin-bottom: 22px;
}

.form-group-custom label {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--primary-font, 'Degular', sans-serif);
}

.form-group-custom input[type="text"],
.form-group-custom input[type="email"],
.form-group-custom input[type="number"],
.form-group-custom textarea {
    background-color: #f7eee4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 13px 22px;
    font-size: 16px;
    color: #2c4d46;
    width: 100%;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-group-custom input[type="text"]::placeholder,
.form-group-custom input[type="email"]::placeholder,
.form-group-custom input[type="number"]::placeholder,
.form-group-custom textarea::placeholder {
    color: #9e8e82;
    opacity: 0.85;
}

.form-group-custom input:focus,
.form-group-custom textarea:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Custom phone input styling with prefix */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f7eee4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.phone-input-wrapper .country-prefix {
    padding-left: 20px;
    padding-right: 12px;
    font-size: 16px;
    color: #444;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid rgba(182, 130, 51, 0.25);
    margin-right: 12px;
    user-select: none;
    line-height: 1;
}

.phone-input-wrapper .country-prefix .arrow {
    font-size: 11px;
    margin-left: 5px;
    color: #777;
}

.phone-input-wrapper input {
    border: none !important;
    background: transparent !important;
    padding: 13px 22px 13px 0 !important;
    border-radius: 0 50px 50px 0 !important;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

.phone-input-wrapper:focus-within {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Custom email input styling with envelope icon */
.email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f7eee4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.email-input-wrapper .email-icon {
    padding-left: 20px;
    padding-right: 2px;
    font-size: 17px;
    color: #666;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    user-select: none;
}

.email-input-wrapper input {
    border: none !important;
    background: transparent !important;
    padding: 13px 22px 13px 0 !important;
    border-radius: 0 50px 50px 0 !important;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

.email-input-wrapper:focus-within {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Textarea message input */
.form-group-custom textarea {
    border-radius: 24px !important;
    height: 125px;
    resize: none;
}

/* Consent block */
.consent-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
    margin-bottom: 30px;
}

.consent-checkbox-wrapper .checkbox-container {
    padding-top: 2px;
    margin-right: 12px;
}

.consent-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #418277;
}

.consent-checkbox-wrapper .consent-label {
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Turnstile Align Center */
.cf-turnstile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

/* Submit CTA yellow pill button */
.submit-container {
    text-align: center;
    margin-bottom: 30px;
}

.cta-btn {
    background-color: #eed756;
    color: #418277;
    font-family: var(--heading-font, var(--secondary-font, 'ohno-blazeface', sans-serif));
    font-size: 26px;
    font-weight: 700;
    padding: 12px 65px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: #ffffff;
    color: #418277;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Bottom Links */
.form-links {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.form-links a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.form-links a:hover {
    opacity: 0.8;
}

.form-links .divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    font-weight: 400;
}

/* =======================================
   RESPONSIVENESS (SAME-TO-SAME GRID COLLAPSE)
   ======================================= */
@media (max-width: 991px) {
    .contact-section {
        margin-top: 80px;
        padding: 55px 0;
    }

    .contact-card {
        grid-template-columns: 15% 70% 15%;
    }

    .contact-panel-main {
        padding: 50px 35px;
    }

    .header-pill {
        font-size: 32px;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        /* Collapse and hide teal sidebar bands on mobile screen */
        grid-template-columns: 100%;
    }

    .contact-panel-side {
        display: none;
    }

    .contact-panel-main {
        padding: 45px 24px;
    }

    .header-pill {
        font-size: 28px;
        padding: 12px 30px;
        margin-bottom: 30px;
    }

    .cta-btn {
        width: 100%;
        padding: 12px;
        font-size: 22px;
    }
}
