@charset "UTF-8";

/* Bootstrap base styles */
:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 33, 37, 41;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;
    --bs-link-color: #0d6efd;
    --bs-link-hover-color: #0a58ca;
    --bs-code-color: #d63384;
    --bs-highlight-bg: #fff3cd;
}

*,
::after,
::before {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

/* Global Styles */
body,
html {
    height: 100%;
}

body {
    background: #fff;
    color: #202020;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    justify-content: flex-start;
    line-height: 38px;
    margin: 0 auto 0 auto;
    position: relative;
    min-height: 100vh;
    padding-bottom: 150px; /* Add padding to ensure space for footer */
}

body > div {
    display: block;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

@media (max-width: 992px) {
    body {
        font-size: 18px;
        line-height: 24.5px;
    }
}

/* Container Styles */
.container {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Row and Column Styles */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

/* Success section row styles */
#successSection .row {
    flex-direction: column;
    align-items: center;
}

#successSection .col {
    width: 481px;
    max-width: 481px;
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.col {
    flex: 1 0 0%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

/* Header and Logo Styles */
header {
    padding: 13px 0;
    width: 100%;
    display: block;
    background-color: #fff;
}

@media (max-width: 992px) {
    header {
        background: #fff;
    }
}

header .logo {
    max-width: 288px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 992px) {
    header .logo {
        max-width: 288px;
    }
}

header .logo img {
    width: 100%;
}

header .container:first-of-type [class^="col"] {
    display: flex;
    height: 86px;
    align-items: center;
}

@media (max-width: 992px) {
    header .container:first-of-type [class^="col"] {
        height: 59px;
    }
}

header .btn-phone {
    display: flex;
    cursor: pointer;
    margin-top: 15px;
}

@media (max-width: 992px) {
    header .btn-phone {
        margin-top: 0;
    }
}

header .btn-phone .icon-phone {
    width: 42.5px;
    height: 42.5px;
    margin-right: 7px;
    margin-top: 0;
}

header .btn-phone .number {
    font-weight: 700;
}

header .btn-phone:hover .number {
    text-decoration: underline;
}

header .btn-phone .content {
    display: block;
}

.desktop-phone {
    position: absolute;
    right: 20%;    
}

.desktop-phone a {
    color: #0d98c5;
    text-decoration: none;
}

.desktop-phone a:hover {
    text-decoration: underline;
    color: #0d98c5;
}

@media (max-width: 992px) {
    .desktop-phone {
        display: none;    
    }
}

/* Heading Styles */
.h1,
h1 {
    font-size: 28px;
    line-height: 38px;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .h1,
    h1 {
        font-size: 22px;
        line-height: 27px;
    }
}

/* Form Styles */
.form-element-max-width {
    max-width: 481px;
}

/* Form control styles are now defined in the section styles above */

.form-control:first-of-type,
.zip-input:first-of-type {
    margin-top: 0;
}

.form-control:focus,
.zip-input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::-moz-placeholder,
.zip-input::-moz-placeholder {
    color: #cdcdcd;
}

.form-control::placeholder,
.zip-input::placeholder {
    color: #cdcdcd;
}

@media (max-width: 992px) {
    .form-control::-moz-placeholder,
    .zip-input::-moz-placeholder {
        color: #acacac;
    }
    
    .form-control::placeholder,
    .zip-input::placeholder {
        color: #acacac;
    }
}

/* Form Container */
.form-container {
    max-width: 481px;
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff;
    border-radius: 8px;
    width: 481px;
}

h2.form-heading {
    text-align: center;
    margin-bottom: 36px;
    font-size: 23px;
    line-height: 1.26;
    letter-spacing: 0.005em;
    color: #2b2d2d;
    font-weight: 500;
}

@media (max-width: 992px) {
    h2.form-heading {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 27px;
        letter-spacing: 0;
    }
}

.invalid-feedback,
.error {
    display: none;
    font-size: 12px;
    line-height: 1;
    margin: 0;
    min-height: 12px;
    opacity: 1;
    padding: 0;
    position: relative;
    text-align: left;
    transition: 250ms;
    color: red;
}

.error.alert-danger {
    background: 0 0;
    color: red;
    text-shadow: none;
}

/* Button Styles */
[class^="btn-"] {
    position: relative;
    transition: all 0.1s;
}

[class^="btn-"]:active {
    transform: translateY(3px);
}

/* Button styles are now defined in the section styles above */

/* Section Styles */
section, #quizSection, #formSection {
    min-height: 500px;
    max-width: 840px;
    padding: 0;
    margin: 0 auto;
    display: block;
}

.form-group {
    max-width: 481px;
    width: 481px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    section, #quizSection, #formSection {
        min-height: 0;
        padding: 27px 15px 20px 15px;
        margin: 0 auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
}

#quizSection .btn-choice,
#formSection .btn-choice {
    display: block;
    margin: 0 auto 25px auto;
    width: 481px;
    height: 55px;
    background-color: #0e6efd;
    color: #fff;
    border: 0 none;
    border-radius: 8px;
    font-size: 21px;
    line-height: 1.8;
}

/* Add specific spacing for the first question buttons */
.q1 .btn-choice {
    margin-bottom: 25px;
}

/* Add specific spacing for the second question buttons */
.q2 .btn-choice {
    margin-bottom: 25px;
}

/* Last button in second question */
.q2 .btn-choice:last-child {
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    #quizSection .btn-choice,
    #formSection .btn-choice {
        max-width: 100%;
        height: 53.5px;
        margin-bottom: 21.5px;
        font-size: 20px;
        line-height: 1.85;
    }
}

#quizSection .btn-continue,
#formSection .btn-continue {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: 0 none;
    background: #0e6efd;
    width: 481px;
    height: 55px;
    color: #fff;
    border-radius: 5px;
    font-size: 21px;
    line-height: 38px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 992px) {
    #quizSection .btn-continue,
    #formSection .btn-continue {
        margin-top: 10px;
        margin-bottom: 24px;
        text-transform: none;
        font-size: 22px;
        letter-spacing: 0.005em;
        height: 60.5px;
        width: 100%;
    }
}

#quizSection .form-control,
#formSection .form-control,
#quizSection .zip-input,
#formSection .zip-input {
    width: 481px;
    height: 53px;
    border-radius: 8px;
    border: 1px solid #bacade;
    font-size: 22px;
    line-height: 38px;
    margin-top: 6px;
    margin-bottom: 8px;
    text-align: left;
    background-color: #fff;
    letter-spacing: 0.02em;
}

@media (max-width: 992px) {
    #quizSection .form-control,
    #formSection .form-control,
    #quizSection .zip-input,
    #formSection .zip-input {
        font-size: 19px;
        line-height: 1;
        height: 49px;
        margin-top: 6px;
        margin-bottom: 6px;
        border-width: 1.5px;
        border-color: #6d6f70;
        letter-spacing: 0.04em;
        width: 100%;
    }
}

/* Progress Bar Styles */
.progress {
    height: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 481px;
    max-width: 100%;
}

.form-progress-container {
    width: 481px;
    max-width: 100%;
    margin: 0 auto;
}

.progress-bar {
    background-color: #0e6efd;
    transition: width 0.5s ease;
}

/* Display Classes */
.q2, .q3, .q4, .final, .q5, .t1, .t2, .t3, .t4, .t5 {
    display: none;
}

/* Footer Styles */
footer {
    background-color: #fff;
    color: #59686a;
    padding: 20px 50px 20px 50px;
    font-size: 15px;
    line-height: 15px;
    text-align: center;
    width: 100%;
    font-weight: 400;
    display: block;
    letter-spacing: 0.02em;
    min-height: 89px;
}

#footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#footer a {
    color: #0e6efd;
    text-decoration: none;
    margin: 0 10px;
}

#footer a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    footer {
        font-size: 14px;
        line-height: 1.5;
        padding: 10px 15px;
        min-height: 68.5px;
        letter-spacing: 0.016em;
        color: #59686a;
        width: 100%;
    }
}

footer a {
    color: #0d98c5;
    text-decoration: none;
}

@media (max-width: 992px) {
    footer a {
        letter-spacing: 0.02em;
        color: #0e9dd9;
    }
}

footer a:active,
footer a:hover {
    text-decoration: underline;
    color: #0d98c5;
}

@media (max-width: 992px) {
    footer a:active,
    footer a:hover {
        color: #0e9dd9;
    }
}

/* List Styles */
#qul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 20px;
    max-width: 481px;
    margin-left: auto;
    margin-right: auto;
}

.qli {
    background-color: #f8f9fa;
    border-left: 4px solid #0e6efd;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
}

/* Layout Styles */
.justify-content-between {
    justify-content: space-between !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.position-relative {
    position: relative !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.lh-1 {
    line-height: 1 !important;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    .text-md-center {
        text-align: center !important;
    }
}

@media (min-width: 992px) {
    .d-lg-inline {
        display: inline !important;
    }
    .d-lg-block {
        display: block !important;
    }
    .d-lg-none {
        display: none !important;
    }
    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
    .mb-lg-2 {
        margin-bottom: 0.5rem !important;
    }
    .mb-lg-5 {
        margin-bottom: 3rem !important;
    }
}

/* Quiz Section Styles */
#quizSection .q1,
#quizSection .q2,
#quizSection .q3,
#quizSection .final,
#quizSection .t5,
#formSection .form-container,
#formSection .form-progress-container,
#successSection {
    max-width: 481px;
    width: 481px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    max-width: 481px;
    width: 481px;
    margin: 0 auto;
}

.card-body {
    padding: 1rem;
}

.card .btn-continue {
    width: 481px;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .card {
        width: 100%;
    }
    
    .card .btn-continue {
        width: 100%;
    }
    
    #successSection .col {
        width: 100%;
        max-width: 100%;
    }
}

/* Media Queries for iPhone XR (414x896px) */
@media (max-width: 414px) {
    .form-container {
        max-width: 481px;
        width: 100%;
        padding: 0;
    }
    
    #quizSection, #formSection {
        padding: 27px 15px 20px 15px;
    }
    
    #quizSection .q1,
    #quizSection .q2,
    #quizSection .q3,
    #quizSection .final,
    #quizSection .t5,
    #formSection .form-container,
    #formSection .form-progress-container,
    #successSection,
    .card {
        padding: 0;
        width: 100%;
    }
    
    #quizSection .form-control,
    #formSection .form-control,
    #quizSection .zip-input,
    #formSection .zip-input,
    #quizSection .btn-continue,
    #formSection .btn-continue,
    #quizSection .btn-choice,
    #formSection .btn-choice {
        width: 100%;
        max-width: 100%;
    }
}

/* Progress bar styling */
#formProgressBar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Make sure percentage is visible even when progress bar is small */
#progressPercentage {
    position: absolute;
    width: 100%;
    text-align: center;
}

/* Taller submit buttons */
.btn-tall {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    width: 100%;
    height: 50px;
}
