/* Base Styles */
:root {
    --color-primary-blue: #005A9C;
    --color-dark-blue: #0F2D52;
    --color-light-blue: #e0f2f7;
    --color-dark-gray: #333;
    --color-medium-gray: #404041;
    --color-light-gray: #6F7880;
    --color-white: #fff;
    --color-red: #C72323; /* For error states */
    --border-radius-small: 3px;
    --box-shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.form-section__quote-container{
    border-top: 1px solid var(--color-light-gray);
    padding-top: 40px;
    padding-bottom: 4px;

}

.form-section__testimonials-container{
    border-top: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);
    padding-top: 40px;
    padding-bottom: 4px;
}

/* Testimonial Block */
.form-section__testimonials {
    display: flex; /* Enable Flexbox for horizontal layout */
    flex-direction: column; /* Default: Stack columns vertically on small screens */
    gap: 25px; /* Space between columns when stacked */
    margin-bottom: 54px; /* Space between testimonial rows */
    align-items: center; /* Align items to the start of the cross axis */
}

/* Media query for larger screens (e.g., desktop) to enable 2-column layout */
@media (min-width: 768px) {
    .form-section__testimonials {
        flex-direction: row; /* Horizontal layout on larger screens */
        gap: 25px; /* Adjust space between columns when horizontal */
    }

    /* Alternating layout: For even-numbered testimonial blocks, reverse the order */
    .form-section__testimonials:nth-child(even) {
        flex-direction: row-reverse;
    }
}

/* Testimonial Columns */
.form-section__testimonials__col {
    width: 100%;
}

@media (min-width: 768px) {
    .form-section__testimonials__col {
        flex: 1; /* Allow columns to grow and shrink evenly */
    }
}

/* Testimonial Text and Title within columns */
.form-section__testimonials__title {
    margin-bottom: 15px;
    color: #404041;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 38.4px;

}

.form-section__testimonials__text, .form-section__testimonials__intro {
    color: #404041;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; 
    letter-spacing: 0.48px;
}

.form-section__testimonials__intro{
    margin-bottom: 64px;
}

/* Video Column Specific Styling */
.form-section__testimonials__video {
    position: relative;
    width: 100%;
    /* Create 16:9 aspect ratio for the video container */
    padding-bottom: 56.25%; /* (9 / 16) * 100% */
    height: 0;
    overflow: hidden; /* Hide anything outside the aspect ratio */
    background-color: #000; /* Black background while video loads */
}

.form-section__testimonials__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: #F8F9FA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Block */
.header {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    padding: 2px 24px;
}

@media (min-width: 768px) {
    .header {
        padding: 2px 60px;
    }
}

.header__content {
    max-width: 1296px;
    padding: 12px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    height: 59px;
    filter: brightness(0) invert(1); /* Makes the blue logo white */
}

@media (min-width: 768px) {
    .header__logo {
        height: 124px; 
    }
}

.header__phone {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .header__phone {
        font-size: 32px;
    }
}

/* Main Content Area */
.main {
    flex-grow: 1;
    padding: 20px 0;
}

/* Form Section Block */
.form-section {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for longer content */
    padding: 24px;
}

@media (min-width: 768px) {
    .form-section {
        padding: 20px;
    }
}

.form-section__container {
    background-color: var(--color-white);
    padding: 40px 16px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--box-shadow-light);
    max-width: 856px; /* Adjust based on your design for desktop */
    width: 100%;
}

@media (min-width: 768px) {
    .form-section__container {
        padding: 64px;
    }
}

.form-section__title, .form-section__title-quote, .form-section__title-testimonials {
    font-size: 32px;
    line-height: 38.4px;
    color: var(--color-medium-gray);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 500;
}

.form-section__title-quote {
    text-align: left;
}

.form-section__title-testimonials{
    text-align: left;
    font-size: 24px;
}

.form-section__delivery-title{
    color: #404041;
    text-align: center;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 38.4px; /* 160% */
}

.form-section__delivery-panel-row{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin: 16px 0 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    font-family: Montserrat;
}

@media (min-width: 768px) {
    .form-section__delivery-panel-row{
        flex-direction: row;
    }
}

.form-section__delivery-panel{
    display: flex;
    width: auto;
    height: 250px;
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    border-radius: 3px;
    border: 1px solid #CED4DA;
    background: #FFF;
}

@media (min-width: 768px) {
    .form-section__delivery-panel{
        width: 325px;
    }
}


.panel-title{
    color: #090909;
}
.panel-body{
    color: #090909;
    font-size: 12px;
    font-weight: 400;
}
.panel-link{
    color: #015A9C;
    margin-top: auto;
    text-decoration: none;
}
.panel-button{
    display: flex;
    padding: 9px 15px;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    background: #015A9C;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
    margin-top: auto;
}

.form-section__subtitle {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.48px;
    color: var(--color-medium-gray);
    text-align: center;
    margin-bottom: 56px;
    font-weight: 400;
}

.form-section__subtitle span{
    font-weight: 800;
}

@media (min-width: 768px) {
    .form-section__subtitle span{
        display: block;
    }
}

.form-section__body, .form-section__body-quote {
    color: #404041;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 200% */
    letter-spacing: 0.48px;
    margin: 32px 0;
}

.form-section__body-quote{
    text-align: left;
}

/* Lead Form Block */
.lead-form__grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 18px 30px;
    margin-bottom:36px;
}
.lead-form__gridRadios {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 18px 30px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .lead-form__grid, .lead-form__gridRadios {
        grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    }
}

.lead-form__group {
    position: relative; /* Needed for positioning field states */
    margin-bottom: 10px; /* Spacing between groups */
}

.lead-form__label {
    display: block;
    font-weight: 500;
    color: var(--color-dark-gray);
    font-size: 12px;
    font-style: normal;
    line-height: 24px;
}

.lead-form__input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    outline: none;
    /* transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; */
    color: #090909;
    font-family: 'Montserrat', Arial, sans-serif;
}

.lead-form__input:disabled{
    background: #F8F9FA;
}


/* Style the placeholder text */
.lead-form__input::placeholder {
    color: var(--color-light-gray); /* This is your desired placeholder color */
    opacity: 1; /* Ensures the color is not faded by default browser styles */
}

/* For older browsers (less common now, but good practice) */
.lead-form__input::-webkit-input-placeholder { /* Chrome, Safari, Opera */
    color: var(--color-light-gray);
}

.lead-form__input::-moz-placeholder { /* Firefox 19+ */
    color: var(--color-light-gray);
    opacity: 1;
}

.lead-form__input:-ms-input-placeholder { /* IE 10+ */
    color: var(--color-light-gray);
}
/* Input Field States (Treatment) */

/* Empty State */

.lead-form__input:not(:focus):placeholder-shown + .lead-form__field-state--empty {
    display: none; /* Hide default error message if input is empty and not focused */
}
/* This state is typically the default. The placeholder-shown pseudo-class helps identify if it's truly empty */

/* Active State (Input is focused) */
.lead-form__input:focus {
    border-color: #090909;
}

/* Filled State (Input has content and is not focused) */
.lead-form__input:not(:placeholder-shown):not(:focus) {
    border-color: #C2C7CC; /* A distinct blue for filled state */
}

/* Error State (Handled by Parsley.js, but we set the styles) */
.lead-form__input.parsley-error {
    border-color: var(--color-red);
    background-color: #fff;
}

/* Parsley.js default error message styling */
.lead-form__group .parsley-errors-list, .lead-form__radios .parsley-errors-list{
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.85em;
    color: var(--color-red);
    position: absolute; /* Position below the input */
    top: 100%; /* Move below the input */
    left: 0;
    width: 100%;
    z-index: 10;
}

.lead-form__group .parsley-errors-list li,
.lead-form__radios   .parsley-errors-list li
 {
    /* padding-top: 4px; */
}


/* Custom Field State Messages (for initial empty, or for general custom messages) */
/* These will be controlled by JavaScript for visual feedback, but CSS sets their appearance */
.lead-form__field-state {
    font-size: 0.85em;
    color: var(--color-medium-gray);
    display: block; /* Default to block, can be overridden by specific states */
}

.lead-form__field-state--empty {
    /* Initially hidden or styled to match placeholder */
    color: var(--color-light-gray); /* Match placeholder color */
}

.lead-form__field-state--active {
    color: var(--color-primary-blue);
    /* Maybe a subtle hint */
}

.lead-form__field-state--filled {
    color: green; /* Indicate valid input */
    /* Hide if no message needed for filled state */
    display: none;
}

.lead-form__field-state--error {
    color: var(--color-red);
    /* Parsley will typically handle showing/hiding this, but it's here for consistency */
}


/* Radio and Checkbox Groups */
.lead-form__radios,
.lead-form__checkboxes {
    margin-bottom: 25px;
    position: relative;
}

.lead-form__radio-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on small screens */
    gap: 0 15px; /* Space between radio groups */
}

@media (min-width: 768px) { /* Adjust breakpoint if needed for when 2x2 should start */
    .lead-form__radio-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on larger screens */
        width: 498px;
    }
}

.lead-form__question {
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-dark-gray);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 38.4px; /* 240% */
}

.lead-form__radio-group,
.lead-form__checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.lead-form__radio-group input[type="radio"],
.lead-form__checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    appearance: none; /* Hide default browser styling */
    width: 26px;
    height: 26px;
    border: 1px solid #CED4DA;
    border-radius: 50%; /* Make radios circular */
    display: inline-block;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.lead-form__checkbox-group input[type="checkbox"] {
    border-radius: var(--border-radius-small); /* Make checkboxes square */
}

.lead-form__radio-group input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11' fill='none'%3E%3Cpath d='M4 10.2L0 6.20005L1.4 4.80005L4 7.40005L10.6 0.800049L12 2.20005L4 10.2Z' fill='white'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--color-dark-blue); /* Fill the circle with blue */
    border-color: var(--color-dark-blue);
}

.lead-form__checkbox-group input[type="checkbox"]:checked, /* Applies to general checkboxes */
.lead-form__terms input[type="checkbox"]:checked /* Applies to the terms checkbox specifically */
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11' fill='none'%3E%3Cpath d='M4 10.2L0 6.20005L1.4 4.80005L4 7.40005L10.6 0.800049L12 2.20005L4 10.2Z' fill='white'/%3E%3C/svg%3E");
    background-size: 60%; /* Adjust size of SVG within the checkbox */
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--color-dark-blue); /* Fill the square with blue */
    border-color: var(--color-dark-blue);
}

.lead-form__radio-group label,
.lead-form__checkbox-group label {
    cursor: pointer;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 38.4px;
}

/* Terms and Conditions */
.lead-form__terms {
    display: flex;
    align-items: flex-start; /* Align text to top if it wraps */
    margin-top: 42px;
    margin-bottom: 40px;
}

.lead-form__terms input[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-medium-gray);
    border-radius: var(--border-radius-small);
    appearance: none;
    position: relative;
    cursor: pointer;
}

.lead-form__terms label {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-medium-gray);
    cursor: pointer;
}

.lead-form__link {
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.lead-form__link:hover {
    text-decoration: underline;
}

/* Disclaimer */
.lead-form__disclaimer {
    color: var(--color-medium-gray);
    margin-bottom: 40px;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

/* Submit Button */
.lead-form__button, .form-section__button, .panel-button{
    display: block;
    width: 100%;
    max-width: 200px; /* Limit button width on larger screens */
    margin: auto auto 0;
    padding: 12px 20px;
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}

.form-section__button{
    background-color: #015A9C;
    margin: 64px auto 32px; 
    padding: 9px 15px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.form-section__button button{
    background-color: #015A9C;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.form-section__button

.panel-button{
    padding: 9px 15px;
    margin: auto 0 0 0;
}


.lead-form__button{
    border-radius: 15px;
    background: rgba(1, 90, 156, 0.40);
}

.lead-form__button:hover {
    background-color: #002d5a; /* Slightly darker blue on hover */
}

.is-ready-to-submit{
    background-color: #002d5a; /* Slightly darker blue on hover */
}

/* Footer Block */
.footer {
    background-color: #F2F4F8;
    color: #6C757D;
    text-align: center;
    padding: 67px 20px;
    font-size: 0.9em;
    margin-top: 66px;
}

.parsley-success{
    background-color: #fff;
}

.is-error .req{
    color: var(--color-red);
}




/* Style for the required asterisk */
.lead-form__label .req {
    color: var(--color-medium-gray); /* Default color for the asterisk */
    margin-left: 2px; /* Small space between text and asterisk */
}

/* Make the asterisk red when the parent group is in an error state */
.lead-form__group.is-error .lead-form__label .req {
    color: var(--color-red); /* Red color for error state */
}

@media (max-width: 767px) {
    .lead-form__button, .form-section__button, .panel-button {
        max-width: 100%;
    }
}

.debug{
    display:none;
}