body {
    background-color: #f3e9fc; /* soft lavender */
    font-family: "Segoe UI", "Arial", sans-serif;
    font-size: 15px;
    color: #333;
}

#sign_in_container {
    background-color: white;
    margin: 10vh auto;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#sign_in_container button {
    background-color: #008000;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
}

#okta-sign-in {
    margin-top: 20px;
}

/* Profile layout spacing fix */
#profile_container .col-9,
#profile_container .col-3 {
    margin: 0;
    padding: 0;
}

#access_denied_container {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    margin-top: 150px;
    margin-bottom: 150px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#nav_container {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    min-height: 1000px;
    margin-bottom: 150px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Nav Tabs */
.nav-tabs > li > a {
    color: #333;
    font-weight: 500;
}

.nav-tabs a.nav-link.active,
.nav-tabs a.nav-link.active:hover,
.nav-tabs a.nav-link.active:focus {
    border-color: #7c02e2;
    border-bottom-color: transparent;
}
.nav-tabs {
    border-bottom: 1px solid #7c02e2;
}

/* Inputs */
form input[type="text"],
select {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    background-color: #edf9fe;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
select:focus {
    border-color: #7c00e2;
    outline: none;
}

/* Dropdown arrow customization */
select {
    background: url("../img/carrot_down.svg") #edf9fe no-repeat 95% center !important;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-top: 10px;
}

/* Date of Birth dropdown sizes */
#dob_input_day,
#dob_input_day_afp,
#dob_input_year_afp,
#dob_input_year {
    width: 120px;
    margin-right: 15px;
}

#dob_input_month,
#dob_input_month_afp {
    width: 180px;
    margin-right: 15px;
}

#state_afp,
#state {
    width: 200px;
}

/* Checkboxes */
form input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #7c00e2;
    border-radius: 4px;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
}

form input[type="checkbox"]::before {
    content: "";
    width: 14px;
    height: 14px;
    background-color: #7c00e2;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
}

form input[type="checkbox"]:checked::before {
    transform: scale(1);
}

form input[type="checkbox"][disabled] {
    background-color: #eaeaea;
    border-color: #ccc;
    cursor: not-allowed;
}

form .checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Contact Info Section */
#contact_section {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    background-color: #f9f9ff;
    margin-top: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Highlight invalid fields */
.is-invalid {
    border: 2px solid red !important;
    box-shadow: 0 0 3px rgba(255, 0, 0, 0.5);
}

/* Error labels */
label.error {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Buttons */
.btn-primary {
    background-color: #7c00e2 !important;
    border-color: #7c00e2 !important;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 8px;
    min-width: 160px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6900c2 !important;
    border-color: #6900c2 !important;
    outline: none;
}

.profile-box {
    height: 120px; /* adjust as needed */
    min-width: 250px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#profile {
    font-size: 16px;
    font-weight: 600;
    color: #4a007a;
    background-color: #f3e9fc;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(124, 0, 226, 0.1);
    white-space: nowrap;
    display: inline-block;
}

#signout_btn {
    background-color: #7c00e2 !important;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(124, 0, 226, 0.15);
}

#signout_btn:hover,
#signout_btn:focus {
    background-color: #6900c2 !important;
    box-shadow: 0 4px 8px rgba(124, 0, 226, 0.3);
    outline: none;
}

.coupon-box {
    border: 2px solid #7c00e2;
    padding: 20px 30px;
    border-radius: 20px;
    background-color: #f3e9fc; /* soft lavender */
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 6px 12px rgba(124, 0, 226, 0.15);
    font-family: "Segoe UI", Arial, sans-serif;
    color: #4a007a;
    text-align: center;
}

.coupon-box h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.coupon-box p {
    font-size: 15px;
    line-height: 1.4;
}

.coupon-box strong {
    color: #7c00e2;
}

.label-text::after {
    content: " *";
    color: red;
    font-size: 0.9em;
    vertical-align: super;
}

.required-label.filled .label-text::after {
    content: "";
}

.conditional-label-text {
    content: "";
}

.required-label .conditional-label-text::after {
    content: " *";
    color: red;
    font-size: 0.9em;
    vertical-align: super;
}

input,
select,
textarea {
    box-sizing: border-box;
    padding: 10px;
    height: 45px;
    transition: all 0.2s ease; /* smooths out any visual shifts */
}

input.error,
select.error,
textarea.error {
    border-color: red;
}

label.error {
    color: red;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    position: relative;
    min-height: 18px; /* reserve space to prevent jumpiness */
}

.contact-note {
    background-color: #f4e6ff; /* pastel purple background */
    padding: 12px 15px;
    border-left: 4px solid #7c00e2; /* Sanofi purple */
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    border-radius: 6px;
}

.contact-note .asterisk {
    color: red;
}

.highlight-note {
    background-color: #ffe6e6; /* light red/pink background */
    border: 1px solid red;
    padding: 8px;
    border-radius: 4px;
}

#insurance_status_afp {
    background-color: #edf9fe;
    background-image: url("../img/carrot_down.svg");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%; /* Makes it fill its container */
    min-width: 250px; /* You can increase this if needed */
    box-sizing: border-box;
}

@media only screen and (max-width: 540px) {
    #access_denied_wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}