html,body {
    text-wrap: pretty;
}

/* CallRail Phone Number Fade-in Animation */
.telephone,
.phone-link,
.CallTrk {
    opacity: 0;
}

.callrail-loaded .telephone,
.callrail-loaded .phone-link,
.callrail-loaded .CallTrk {
    opacity: 1;
}

/* Banner Cycling Animation */
.banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 35px;
}

.banner-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 5px);
    width: 100%;
    opacity: 1;
    animation: bannerCycle 8s infinite;
    top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.banner-text:nth-child(2) {
    animation-delay: 4s;
    opacity: 0;
}

#contact-us {
    background: #eaeaea;
}

@keyframes bannerCycle {
    0%, 45% {
        opacity: 1;
        /* transform: translateX(-50%) translateY(0); */
    }
    50%, 95% {
        opacity: 0;
        /* transform: translateX(-50%) translateY(-5px); */
    }
    100% {
        opacity: 1;
        /* transform: translateX(-50%) translateY(0); */
    }
}

button,
.main-button-slider {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0f1c41;
    color: #FFF;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for better keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #f26724 !important;
    /* outline-offset: 2px; */
}

/* Ensure interactive elements have sufficient color contrast */
.main-button-slider:focus,
.main-button:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.welcome-area {
    background-attachment: fixed;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url("../assets/images/hero.jpg");
    min-height: 45vh;
}

@media (max-width: 991px) {
    .welcome-area {
        background-attachment: unset;
        background-position: 67%;
        height: 75vh;
        padding-top: 50px;
    }
}

@media(min-width: 991px) {
    .about .content {
        height: 320px;
    }
}

/* START VARIANT 2 */
body.variant-2 .welcome-area .ab-test-item-1 {
    order: 2;
}

body.variant-2 .welcome-area .ab-test-item-2 {
    order: 1;
}

body.variant-2 .welcome-area .ab-test-item-3 {
    order: 0;
}
/* END VARIANT 2 */

.center-heading .section-title {
    font-weight: 700;
}

/* Masthead Hero Section - New Grid Layout */
.masthead-hero-new {
    min-height: auto;
    padding: 0;
}

.masthead-content {
    min-height: auto;
    padding: 30px;
    order: 1;
    position: absolute;
    z-index: 5;
}

.masthead-image {
    padding: 0;
    min-height: 60vh;
    order: 2;
}

.masthead-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.text-area-new {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 13px 20px 40px;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.masthead-hero-new .section-title {
    color: #0f1c41;
    font-weight: 700;
}

.masthead-hero-new .masthead-text {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: .25px;
}

.common-cta {
    margin-top: 40px;
}

h1.mt-lg-n5.mt-0.text-uppercase,
.welcome-area .header-text p.subheader {
        text-shadow: 2px 2px 2px #000;
}

.welcome-area .main-button-slider {
    width: 100%;
}

.welcome-area .header-text p.subheader {
   line-height: 1.35;
}

div#icw--call--button {
    background-color: #3e4968 !important;
    color: #3e49685b !important;
}

/* Tablet styles */
@media (max-width: 991px) {
    .masthead-hero-new {
        min-height: auto;
    }

    .masthead-content {
        min-height: auto;
        padding: 0;
        order: 1;
         position: relative;
    }

    .masthead-image {
        min-height: 50vh;
        order: 2;
    }

    .text-area-new {
        margin: 0 auto;
        max-width: 100%;
    }

    .masthead-hero-new .masthead-text {
        font-size: 18px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .masthead-content {
        padding: 0;
    }

    .masthead-image {
        min-height: 40vh;
    }

    .text-area-new {
        padding: 30px 20px;
        background-color: rgba(255, 255, 255, 0.98);
    }

    .masthead-hero-new .section-title {
        font-size: 22px !important;
    }

    .masthead-hero-new .masthead-text {
        font-size: 16px;
        line-height: 1.4em;
    }
}

/* Violation Items Styling */
.violation-items-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    padding-left: 20px;
    padding-right: 20px;
}

.violation-item {
    background-color: #f5f5f5;
    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    flex: 1;
}

/* Violation Icon Styling */
.violation-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
}

.violation-icon img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
}

/* Violation Heading */
.violation-heading {
    margin-bottom: 20px;
}

.violation-heading .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f1c41;
    margin-bottom: 0;
}

/* Violation Text */
.violation-text p {
    margin-bottom: 0;
    letter-spacing: .25px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
}

.violation-item .left-heading {
    margin-bottom: 15px !important;
}

.violation-item .left-text p {
    margin-bottom: 0 !important;
    letter-spacing: .25px;
    font-size: 1.2rem;
    /* line-height: 1.3; */
}

#steps .container {
    max-width: 1400px;
    margin: 0 auto;
}

#lawyers p {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: .25px;
    margin-bottom: 50px;
}

#lawyers .row {
    gap: 20px;
}

#lawyers .lawyer-card {
    flex: 1 0 30%;
}

#lawyers .center-text {
    margin-bottom: 20px;
}

/* Lawyer cards with gray background matching violation boxes */
#lawyers .col-md-4 {
    margin-bottom: 30px;
}

#lawyers .col-md-4 {
    background-color: #f5f5f5;

    overflow: hidden;
    padding: 0;
}

#lawyers .col-md-4 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

#lawyers .col-md-4 .content {
    padding: 30px 20px;
    min-height: 280px;
}

#lawyers .col-md-4 h3 {
    color: #0f1c41;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

#lawyers .col-md-4 p.title {
    /* color: #f26724; */
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

#lawyers .col-md-4 p.description {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
}

.team-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-content p {
    margin-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 25px;
    font-weight: 400;
    font-size: 15px;
    color: #424242;
    letter-spacing: .6px;
    line-height: 26px;
}

.team-item.team-content .team-info .user-name {
    display: block;
    font-weight: 400;
    font-size: 17px;
    color: #1e1e1e;
    letter-spacing: .25px;
    margin-bottom: 5px;
    padding-left: 20px;
}

@media (min-width: 1200px) {
.welcome-area .header-text h1 {
        font-size: 70px;
        line-height: 1.1;
    }

     .welcome-area .header-text p.subheader {
        font-size: 30px;
        line-height: 1.1;
        color: #fff;
        margin: 30px 0;
    }

    .welcome-area .header-text p.subtext {
        font-size: 18px;
    }
}
@media (max-width: 1199px) {
    .welcome-area .header-text p.subheader {
        margin-top: 20px;
    }
    .section-title.large {
        font-size: 25px !important;
    }
}

/* Ensure equal height for violation items on desktop */
@media (min-width: 768px) {
    .violation-item {
        height: 100%;
    }
    
    .review-assets {
        margin-top: 20px;
        display: flex;
        gap: 20px
    }

    .team-item {
        min-height: 290px;
    }
}

/* Header Scroll Fade Effect */
.header-area {
    transition: all 0.3s ease;
    will-change: transform;
}

/* Smooth transitions on mobile */
@media (max-width: 991px) {
    .header-area {
        transition: all 0.2s ease;
    }

    .header-area .logo,
    .header-area .nav li > span,
    .header-area #header-phone,
    .header-area .centered-phone {
        transition: all 0.2s ease;
        will-change: opacity, transform;
    }
}

.header-area.header-sticky {
    transition: min-height 0.3s ease;
}

/* Reduce header height when scrolled */
.header-area.scrolled-down.header-sticky {
    min-height: 60px;
}

/* Adapt main-nav height when scrolled */
.header-area .main-nav {
    transition: min-height 0.3s ease;
}

.header-area.scrolled-down .main-nav {
    min-height: 60px;
}

/* Elements to fade on scroll - only add transitions, no style changes */
.header-area .logo,
.header-area .nav li > span:first-child,
.header-area .nav li > span:last-child,
.header-area #header-phone {
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.header-area .logo img {
    transition: max-height 0.4s ease;
}

/* Banner stays visible but can be styled differently when scrolled */
.header-area .banner {
    transition: all 0.4s ease;
}

/* Centered phone - initially hidden */
.header-area .centered-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    pointer-events: none;
    z-index: 10;
    color: #000;
}

/* Scrolled down state - fade out and collapse elements except banner */
.header-area.scrolled-down .logo {
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    max-height: 0;
}

.header-area.scrolled-down .logo img {
    max-height: 0;
}

.header-area.scrolled-down .nav li > span:first-child,
.header-area.scrolled-down .nav li > span:last-child {
    opacity: 0;
    transform: translateY(-3px);
    visibility: hidden;
    max-height: 0;
    margin: 0;
    display: block;
    overflow: hidden;
}

/* Fade out original phone number too */
.header-area.scrolled-down #header-phone {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

/* When scrolled, show centered phone number in nav area */
.header-area.scrolled-down .centered-phone {
    opacity: 1;
    pointer-events: auto;
}

/* Make nav row relative for centered phone positioning */
.header-area .row {
    position: relative;
}

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

.welcome-area .disclaimer {
    line-height: 1 !important;
    text-shadow: 1px 1px 1px #000;
}

/* Mobile adjustments for violation items */
@media (max-width: 767px) {
    .violation-items-wrapper {
        flex-direction: column;
    }

    .violation-item {
        min-height: auto;
        padding: 25px 20px;
        width: 100%;
    }

    .violation-icon {
        height: 60px;
        margin-bottom: 15px;
    }

    .violation-icon img {
        max-height: 60px;
    }

    .violation-heading .section-title {
        font-size: 20px;
    }

    .violation-text p {
        font-size: 1rem;
    }

    #steps {
        padding-top: 30px !important;
    }

    #steps .section-title {
        margin-bottom: 30px;
    }

    .contact-form input, .contact-form textarea  {
        font-size: 16px !important;
    }

    #lawyers .row {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }

    #lawyers .static img {
        max-width: 100% !important;
        max-height: none;
    }

    #lawyers .col-md-4 .content {
        min-height: auto;
        padding: 20px 15px;
    }

    #lawyers .col-md-4 h3 {
        font-size: 20px;
    }

    #lawyers .col-md-4 p.title {
        font-size: 13px;
    }

    #lawyers .col-md-4 p.description {
        font-size: 15px;
    }

    .mini .mini-content .info p {
        font-size: 18px;
    }

    .team-item .team-content p {
        font-size: 16px;
        line-height: 1.35;
    }

    .disclaimer {
        font-size: 12px;
    }
}

/* Footer Links */
footer .copyright a {
    color: #FFF;
    text-decoration: none;
    text-decoration: underline !important;
}

footer .copyright a:hover {
    opacity: .7;
}

footer .copyright {
    padding-top: 0px;
    padding-bottom: 0;
    border: 0 none;
    margin-top: 20px;
}

.second-line {
    margin-top: 0;
    margin-bottom: 30px;
}

/* News Logos Marquee */
.news-logos {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.badges .marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: max-content;
    animation: scroll-x 45s linear infinite;
}

@keyframes scroll-x {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.news-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    position: relative;
    gap: 50px;
}

.news-marquee__group {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scroll-news 20s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-marquee__group img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes scroll-news {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 50px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-marquee__group {
        animation-play-state: paused;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .news-marquee__group {
        gap: 30px;
    }

    .news-marquee__group img {
        max-height: 45px;
    }
}

/* Interactive Form Quiz Styles */
#wage-form-quiz {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.form-quiz-container {
    background: #fff;

    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    margin-bottom: 30px;
}

.quiz-header .section-title {
    color: #0f1c41;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.quiz-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
    margin-bottom: 0;
}

.progress-container.show {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 30px;
}

.progress-container .progress {
    height: 10px;
    background-color: #e9ecef;

    overflow: hidden;
}

.progress-container .progress-bar {
    background-color: #f26724;
    height: 100%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

/* Questions */
.question-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question-item.active {
    display: block;
}

.question-title {
    color: #f26724;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 22px;
    color: #0f1c41;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Answer Buttons */
.answer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    order: 1;
    width: 100%;
}

.answer-btn {
    background-color: #fff;
    border: 3px solid #0f1c41;
    color: #0f1c41;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.answer-btn:hover {
    background-color: #0f1c41;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 28, 65, 0.3);
}

.answer-btn:active {
    transform: translateY(0);
}

.answer-btn.selected {
    background-color: #f26724;
    border-color: #f26724;
    color: #fff;
}

/* Question Navigation */
.question-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.back-btn {
    background-color: transparent;
    border: none;
    color: #FFF;
    /* width: 40px; */
    /* height: 30px; */
    background: #6c757d;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* align-self: flex-start; */
    order: 2;
}

.back-btn:hover {
    color: #FFF;
    transform: translateX(-3px);
}

.back-btn:active {
    transform: translateX(0);
}

/* Success Screen */
.success-screen {
    animation: fadeIn 0.5s ease;
}

.success-content {
    padding: 20px;
}

.success-title {
    color: #3e4968;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.success-subtitle {
    color: #0f1c41;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.success-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Disqualification Screen */
.disqualification-screen {
    animation: fadeIn 0.5s ease;
}

.disqualification-content {
    padding: 20px;
}

.disqualification-title {
    color: #0f1c41;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.disqualification-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.disqualification-cta {
    margin-top: 30px;
}

.disqualification-cta .cta-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.cta-text .phone-link {
    color: #f26724;
    font-weight: 700;
    text-decoration: none;
    font-size: 22px;
}

.cta-text .phone-link:hover {
    text-decoration: underline;
}

.cta-text strong {
    color: #f26724;
    font-size: 20px;
}

.disclaimer-text {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

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

/* Button Group - Side by Side */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.button-group .main-button-slider,
.button-group .main-button {
    margin: 0 !important;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    text-decoration: none;
    display: inline-block;
}

/* Retake Button */
.retake-btn {
    background-color: #fff;
    border: 2px solid #0f1c41;
    color: #0f1c41;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.retake-btn:hover {
    background-color: #0f1c41;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 28, 65, 0.2);
}

.retake-btn:active {
    transform: translateY(0);
}

/* Quiz Contact Form */
.quiz-contact-form {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;

    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.quiz-contact-form .form-control {
    width: 100%;
    padding: 15px;
    font-size: 16px !important;
    border: 2px solid #e0e0e0;

    background-color: #fff;
    transition: border-color 0.3s ease;
}

.quiz-contact-form .form-control:focus {
    outline: none;
    border-color: #f26724;
    box-shadow: 0 0 0 3px rgba(242, 103, 36, 0.1);
}

.quiz-contact-form .submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #f26724;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;

    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.quiz-contact-form .submit-btn:hover {
    background-color: #d9531e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 103, 36, 0.3);
}

.quiz-contact-form .submit-btn:active {
    transform: translateY(0);
}

/* Legacy Text Area Styling - Only for old masthead if any remain */
.masthead-hero .text-area {
    background-color: rgba(255, 255, 255, 0.75);
    padding: 30px;
    backdrop-filter: blur(10px);
    position: absolute;
    left: 50%;
    top: 30px;
    max-width: 1050px;
    transform: translate(-50%, 0);
}

 .form-control {
    font-size: 16px !important;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Responsive */
@media (max-width: 991px) {
    .form-quiz-container {
        padding: 30px 20px;
    }

    .quiz-header .section-title {
        font-size: 28px;
    }

    .quiz-subtitle {
        font-size: 18px;
    }

    .question-text {
        font-size: 20px;
    }

    .success-title {
        font-size: 36px;
    }

    .success-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .masthead-hero .text-area {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .masthead-hero .text-area {
        padding: 20px;
        margin-left: 20px;
        margin-right: 20px;
        position: relative;
    }

    #wage-form-quiz {
        padding: 40px 0;
    }

    .form-quiz-container {
        padding: 25px 15px;

    }

    .quiz-header .section-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .quiz-subtitle {
        font-size: 16px;
    }

    .question-text {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .answer-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .answer-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 16px;
    }

    .back-btn {
        /* padding: 15px 0; */
        font-size: 20px;
            min-width: 150px;
     
    }

    .success-title {
        font-size: 28px;
    }

    .success-subtitle {
        font-size: 18px;
    }

    .success-text {
        font-size: 16px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-text .phone-link {
        font-size: 20px;
        display: block;
        margin: 10px 0;
    }

    /* Mobile styles for button group */
    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .button-group .main-button-slider,
    .button-group .main-button,
    .retake-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 14px;
    }

    /* Mobile styles for quiz contact form */
    .quiz-contact-form {
        padding: 20px;
        margin-top: 30px;
    }

    .quiz-contact-form .form-control {
        padding: 12px;
        font-size: 16px;
    }

    .quiz-contact-form .submit-btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* Mobile Form Popup Styles */
.mobile-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.mobile-form-popup {
  background: #FFF;

  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;

}

.popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.close-popup {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: #666;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.close-popup:hover {
  background: #e9ecef;
  color: #333;
}

.popup-content {
  padding: 25px;
}

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

.mobile-popup-form .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;

  font-size: 16px;
  font-family: inherit;
  background: #FFF;
}

.mobile-popup-form .form-control:focus {
  outline: none;
}

.mobile-popup-form textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.mobile-popup-form .disclaimer {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  display: block;
  margin-bottom: 15px;
}

.mobile-popup-form .main-button-slider {
  width: 100%;
  padding: 15px;
  background: #f26724;
  color: #FFF;
  border: none;

  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-popup-form .main-button-slider:hover {
  background: #d9531e;

}

.mobile-popup-form .main-button-slider:active {
  transform: translateY(0);
}

/* Prevent body scroll when popup is open */
body.popup-open {
  overflow: hidden;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .mobile-form-overlay {
    padding: 15px;
  }

  .popup-header {
    padding: 15px 20px;
  }

  .popup-header h3 {
    font-size: 16px;
  }

  .popup-content {
    padding: 20px;
  }

  .mobile-popup-form .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

.hero-inner-text-container {
    max-width: 100%;
}
