/* FORCE Brand Identity */
:root {
    --brand-teal: #2A5C6B;
    --brand-coral: #E88D8D;
    --brand-dark: #2C3E50;
    --bg-main: #f5f5f7;
    --white: #FFFFFF;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f5f5f7;
    color: var(--brand-dark);
}

/* --- NAVBAR STYLING --- */
/* --- NAVBAR STYLING --- */
.site-header {
    background-color: #efe3db;
}

.header-banner {
    width: 100%;
    height: 250px;
    padding: 0;
    background-color: #efe3db;
    background-image: url('header1.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-strip {
    padding: 18px 8% 0;
}

.brand-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
}

.header-logo img {
    width: 200px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #5f7f85;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--brand-teal);
}

/* --- FORM CONTAINER --- */
.container {
    max-width: 650px;
    margin: 0 auto 60px auto;
    padding: 20px 40px;
    background: transparent;
    box-shadow: none;
}

h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: var(--brand-teal);
    font-weight: 700;
}

.sub-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.5;
}

h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-coral);
    margin: 40px 0 20px 0;
    border-bottom: 1px solid #E0D3CC;
    padding-bottom: 10px;
}

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--brand-teal);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #D6CBC5;
    border-radius: 8px;
    background: var(--white);
    box-sizing: border-box;
    color: var(--brand-dark);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(42, 92, 107, 0.15);
}

.row {
    display: flex;
    gap: 20px;
}

/* ========================================= */
/* ANIMATED CHECKBOX STYLING                 */
/* ========================================= */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

/* Hide the ugly default checkbox */
.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* The custom empty box */
.custom-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #D6CBC5;
    border-radius: 6px;
    background-color: var(--white);
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Change color to Coral when checked */
.checkbox-item input:checked+.custom-box {
    background-color: var(--brand-coral);
    border-color: var(--brand-coral);
}

/* Draw the checkmark (Invisible by default) */
.custom-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pop the checkmark in when checked */
.checkbox-item input:checked+.custom-box::after {
    transform: rotate(45deg) scale(1);
}

/* --- MAIN SUBMIT BUTTON --- */
button#submitBtn {
    width: 100%;
    padding: 18px;
    background: var(--brand-coral);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(232, 141, 141, 0.3);

    /* Required for the new animation */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submitBtn .button__text {
    display: block;
    transform: translate(0, 0);
    z-index: 2;
    position: relative;
}

#submitBtn .button__filler {
    background: #D97C7C;
    position: absolute;
    width: 150%;
    height: 200%;
    border-radius: 50%;
    top: -50%;
    left: -25%;
    transform: translate3d(0, -75%, 0);
    z-index: 1;
}

#submitBtn.hover-in .button__filler {
    animation: fillerHoverIn 0.5s forwards;
}

#submitBtn.hover-out .button__filler {
    animation: fillerHoverOut 0.5s forwards;
}

@keyframes fillerHoverIn {
    0% {
        transform: translate3d(0, -75%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fillerHoverOut {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -75%, 0);
    }
}

/* ========================================= */
/* UNIVERSAL CUSTOM ANIMATED DROPDOWNS       */
/* ========================================= */

.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.dropdown-selected {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #D6CBC5;
    border-radius: 8px;
    background: var(--white);
    color: var(--brand-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border 0.3s ease;
}

.dropdown-selected::after {
    content: "▼";
    font-size: 10px;
    color: var(--brand-teal);
}

.custom-dropdown.active .dropdown-selected {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(42, 92, 107, 0.15);
}

/* FIX: Forces active dropdown to jump over inputs below it */
.custom-dropdown.active {
    z-index: 9999;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid #D6CBC5;
    border-radius: 8px;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;

    max-height: 250px;
    overflow-y: auto;

    display: none;
    transform-origin: top center;
}

.dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #D6CBC5;
    border-radius: 4px;
}

.dropdown-options li {
    padding: 12px 15px;
    font-size: 15px;
    color: var(--brand-dark);
    transition: background 0.2s, color 0.2s;
}

.dropdown-options li:hover {
    background-color: var(--bg-main);
    color: var(--brand-teal);
}

.custom-dropdown.active .dropdown-options {
    display: block;
    animation: growDown 300ms ease-in-out forwards;
}

@keyframes growDown {
    0% {
        transform: scaleY(0);
    }

    80% {
        transform: scaleY(1.05);
    }

    100% {
        transform: scaleY(1);
    }
}


/* ========================================= */
/* MOBILE RESPONSIVENESS FIXES               */
/* ========================================= */
@media (max-width: 600px) {

    /* 1. Fix the top navbar so logo and Home link stay on the same line */
    .brand-strip {
        padding: 16px 5% 0;
    }

    .brand-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .header-banner {
        height: 180px;
    }

    /* 2. Crop the baked-in spacing from the logo image */
    .header-logo {
        height: 40px;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .header-logo img {
        width: 140px;
        margin-top: -5px;
    }

    .nav-links a {
        font-size: 16px;
    }

    /* 3. Adjust main container padding for smaller screens */
    .container {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 26px;
    }

    /* 4. Stack standard rows vertically and force 100% width */
    .row {
        flex-direction: column;
        gap: 0;
    }

    .row .field {
        width: 100% !important;
    }

    /* 5. Keep the Phone/Country Code row on the same line! */
    .row.phone-row {
        flex-direction: row !important;
        gap: 15px !important;
    }

    .row.phone-row .field:first-child {
        width: 40% !important;
    }

    .row.phone-row .field:last-child {
        width: 60% !important;
    }
}