body {
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
}

.top-bar {
    background-color: #123161;
    color: white;
    text-align: center;
    padding: 5px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.top-bar-text {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}


.headline, .subheadline, .main-text, .cta-text, .image-placeholder {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.headline {
    font-size: 32px;
    color: #123161;
    margin: 40px 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.main-text {
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.image-placeholder {
    margin: 20px auto;
    text-align: center;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
}

.cta-button {
    background: #66ba00;
    padding: 20px 40px;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

@media (max-width: 786px)  {
    .cta-button {
        font-size: 28px;
        max-width: 80%;
        margin-top: -15px;
    }
}

.form-container {
    border-radius: 10px;
    padding: 40px;
    margin: 0 auto 20px;
    text-align: center;
    max-width: 40%;
    min-height: 500px;
    position: relative;
    background-color: white;
    z-index: 1;
}

@media (max-width: 768px) {
    .form-container {
        width: 90%;
    }
}


#userInfoForm {
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: white;
}

.form-group {
    margin-bottom: 20px;
}

.required {
    color: #b31942;
    margin-left: 2px;
}

.initial-questions .form-group label {
    display: block;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .initial-questions .form-group label {
        font-size: 22px;
    }
}

.initial-questions .custom-select {
    box-sizing: border-box;
    color: rgb(0, 0, 0);
    font-family: Poppins, sans-serif, system-ui;
    font-feature-settings: normal;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    display: block;
    height: 64px;
    width: 682px;
    border-radius: 4px;
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(10, 49, 97);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 16px 20px;
    text-align: center;
}


.yes-no-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.yes-no-button {
    width: 100%;
    padding: 25px 30px;
    font-size: 22px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    z-index: 3;
    margin: 10px 0;
}

.yes-button {
    background-color: #66ba00;
    color: white;
}

.no-button {
    background-color: #b31942;
    color: white;
}

.yes-no-buttons-alt {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.yes-no-button-alt {
    width: 100%;
    padding: 23px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 2px;
}

.yes-button-alt {
    background-color: #b31942;
    color: white;
}

.no-button-alt {
    background-color: #66ba00;
    color: white;
}

.yes-no-button:focus {
    outline: 3px solid #4A90E2;
    border-color: #4A90E2;
}

.final-form .form-group label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 24px;
    font-weight: bold;
}

.final-form .form-group input {
    box-sizing: border-box;
    color: rgb(0, 0, 0);
    font-family: Poppins, sans-serif, system-ui;
    font-feature-settings: normal;
    font-size: 16px;
    font-variation-settings: normal;
    font-weight: 400;
    line-height: 24px;
    padding: 12px;
    display: block;
    width: 560px;
    border-radius: 4px;
    background-color: rgb(243, 244, 246);
    border: 1px solid rgb(0, 0, 0);
    width: 100%;
    margin-top: 5px;
}

.final-form .form-group textarea {
    box-sizing: border-box;
    color: rgb(0, 0, 0);
    font-family: Poppins, sans-serif, system-ui;
    font-feature-settings: normal;
    font-size: 16px;
    font-variation-settings: normal;
    font-weight: 400;
    line-height: 24px;
    padding: 12px;
    display: block;
    width: 560px;
    border-radius: 4px;
    background-color: rgb(243, 244, 246);
    border: 1px solid rgb(0, 0, 0);
    width: 100%;
    margin-top: 5px;
    resize: vertical;
    min-height: 100px;
    max-height: 500px;
}


.final-form .submit-button {
    background-color: #66ba00;
    color: white;
    border: none;
    width: 100%;
    padding: 18.75px 37.5px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.final-form .submit-button:hover {
    background-color: #519400;
}

.final-form .submit-button::after {
    content: " â†’";
    font-size: 20px;
}

.terms-conditions {
    background-color: #123161;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}

.footer-links {
    margin-top: 10px;
    text-align: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    margin: 0 7.5px;
    font-size: 12px;
    display: inline-block;
    font-weight: bold;
}

footer {
    background-color: #dddddd;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    width: 100%;
    max-width: 50%;
    margin: 0 auto;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .legal-text {
        max-width: 90%
        }
}

.legal-text {
    color: white;
    text-decoration: none;
    font-size: 12px;
    width: 100%;
    text-align: center;
    margin: 10px auto;
}
@media (max-width: 768px) {
    .headline, .subheadline, .cta-text, .form-container, .image-placeholder {
        max-width: 95%;
    }
    .main-text {
        max-width: 90%;
        font-size: 20px;
        line-height: 28px;
    }
    .form-container {
        padding: 20px;
    }
}
.disclaimer {
    color: #444;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.abuse-type-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.abuse-type-button {
    width: 100%;
    padding: 23px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #66ba00;
    color: white;
}

.abuse-type-button:hover {
    background-color: #4c8a00;
}

.abuse-type-button.selected {
    background-color: #4c8a00;
}

#finalForm {
    background-color: #f5f5f5;
    border: 3px solid #8b8b8b;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

#finalForm .form-group {
    margin-bottom: 15px;
}

#finalForm label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

#finalForm input,
#finalForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#finalForm .submit-button {
    background-color: #66ba00;
    color: white;
    border: none;
    padding: 20px 30px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#finalForm .submit-button:hover {
    background-color: #519400;
}

.final-form-headline {
    font-size: 24px;
    color: #123261;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.powered-by {
    text-align: center;
    color: white;
    font-size: 10px;
    margin-top: 15px;
}

/* Move non-critical CSS here */
/* Example: */
.cta-button {
    /* Styles for CTA button */
}

.form-container {
    /* Styles for form container */
}

/* Add other non-critical styles here */

/* Add these styles to prevent layout shifts */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Reserve space for dynamic content */
.form-container {
    min-height: 500px;
    position: relative;
}

/* Add loading animation for dynamic content */
.form-container::before {
    display: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}

/* Add aspect ratio containers */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure initial questions are properly styled */
.initial-questions .form-group {
    display: none; /* Hidden by default */
}

.initial-questions .form-group:first-child {
    display: block; /* Show first question */
}

.thank-you-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thank-you-container h1 {
    color: #123161;
    font-size: 32px;
    margin-bottom: 20px;
}

.thank-you-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.next-steps {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
}

.next-steps h2 {
    color: #123161;
    font-size: 24px;
    margin-bottom: 15px;
}

.next-steps ol {
    margin-left: 20px;
}

.next-steps li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .thank-you-container {
        margin: 20px;
        padding: 20px;
    }
    
    .thank-you-container h1 {
        font-size: 28px;
    }
    
    .thank-you-container p {
        font-size: 16px;
    }
}

.call-now-button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.call-now-button:hover {
    opacity: 0.9;
    cursor: pointer;
}

/* Make form inputs larger and clearer */
.form-group input {
    padding: 15px;
    font-size: 18px;
    height: 50px;
    border: 2px solid #666;
}

/* Update error message styling */
.error-message {
    color: #b31942;
    font-size: 22px !important; /* Increased from 18px */
    margin: 15px 0 !important;
    font-weight: bold;
    padding: 20px !important;
    background-color: #fff0f0;
    border-left: 8px solid #b31942; /* Increased from 5px */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    width: 100%;
    text-align: left;
    line-height: 1.5;
}

/* Make the error icon larger */
.error-message::before {
    content: "⚠️";
    margin-right: 15px;
    font-size: 28px !important; /* Increased from 20px */
    vertical-align: middle;
}

/* Style for input fields with errors */
.form-group input.error-field {
    border: 4px solid #b31942 !important; /* Increased from 3px */
    background-color: #fff0f0;
    padding: 15px !important;
}

/* Add a red asterisk for required fields with errors */
.form-group.has-error label::after {
    content: " *";
    color: #b31942;
    font-size: 24px;
}

/* Style the error message helper text */
.error-message .helper-text {
    font-size: 18px !important; /* Increased from 16px */
    color: #666;
    margin-top: 10px;
    display: block;
    font-weight: normal;
}

/* Add focus styles for error fields */
.form-group input.error-field:focus {
    border-color: #b31942 !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(179, 25, 66, 0.25);
}

/* Make sure error messages are visible on all backgrounds */
.error-message {
    position: relative;
    z-index: 1000;
}

/* Ensure error messages stand out on mobile */
@media (max-width: 768px) {
    .error-message {
        font-size: 20px !important;
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    .error-message::before {
        font-size: 24px !important;
    }
    
    .error-message .helper-text {
        font-size: 16px !important;
    }
}

/* Base styles for mobile first */
.form-container {
    width: 95%;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
}

/* Tablet styles */
@media (min-width: 768px) {
    .form-container {
        width: 80%;
        padding: 30px;
    }
    
    .yes-no-button {
        font-size: 20px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .form-container {
        width: 60%;
        max-width: 800px;
        padding: 40px;
    }
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #66ba00;
    transition: width 0.3s ease;
    width: 0%; /* Start at 0% */
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.input-hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.form-group input[type="tel"] {
    font-size: 18px;
    padding: 12px;
    width: 100%;
    border: 2px solid #666;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input[type="tel"]:focus {
    border-color: #123161;
    outline: none;
}

.form-group input[type="tel"].error {
    border-color: #b31942;
}

/* Add styles for the thank you page phone number */
.call-now-button {
    background-color: #66ba00;
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 28px;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.call-now-button:hover {
    background-color: #519400;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tap-to-call {
    font-size: 20px;
    color: #123161;
    margin: 15px 0;
    font-weight: bold;
}

#phoneNumberDisplay {
    font-size: 32px;
    font-weight: bold;
    color: white;
    display: block;
    text-align: center;
}

.qualified-headline {
    color: #123161;
    font-size: 24px;
    margin: 20px 0;
    font-weight: bold;
}

.congrats-headline {
    color: #123161;
    font-size: 32px;
    margin: 20px 0;
    font-weight: bold;
    line-height: 1.3;
}

.timer, .agents-available, .important-note {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .call-now-button {
        width: 90%;
        padding: 15px 30px;
        font-size: 24px;
    }

    #phoneNumberDisplay {
        font-size: 28px;
    }

    .congrats-headline {
        font-size: 28px;
    }

    .qualified-headline {
        font-size: 20px;
    }
}