/**
 * Custom CSS Improvements for Fursure Cleanup Website
 * 
 * This file contains responsive design fixes and layout improvements
 * to address distortion issues and improve overall design quality.
 * 
 * @package Fursure Cleanup
 * @since 2025-01-05
 * @updated 2026-01-09 - Added comprehensive mobile responsiveness fixes
 */

/* ============================================
   CRITICAL MOBILE HEADER FIXES
   ============================================ */

/* Top Bar - Hide on very small screens, optimize for tablets */
@media (max-width: 576px) {
    .wrap {
        padding: 8px 0 !important;
    }
    
    .wrap .phone {
        font-size: 0.8rem !important;
        text-align: center !important;
    }
    
    .wrap .phone a {
        display: block !important;
        margin-bottom: 3px;
    }
    
    .wrap .social-media {
        display: none !important;
    }
    
    .wrap .row {
        justify-content: center !important;
    }
    
    .wrap .col-md-6 {
        text-align: center !important;
    }
}

@media (max-width: 400px) {
    /* On very small screens, make top bar even more compact */
    .wrap {
        padding: 5px 0 !important;
    }
    
    .wrap .phone {
        font-size: 0.75rem !important;
    }
    
    .wrap .phone .fa {
        display: none !important;
    }
}

/* Navbar Mobile Fixes */
@media (max-width: 991.98px) {
    .ftco-navbar-light {
        padding: 10px 15px !important;
    }
    
    /* Make navbar-brand and toggler on same row */
    .ftco-navbar-light > .container {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    
    /* Logo sizing for mobile */
    .navbar-brand img {
        height: 45px !important;
        max-width: 180px !important;
        width: auto !important;
    }
    
    /* Navbar toggler styling */
    .navbar-toggler {
        padding: 8px 12px !important;
        font-size: 14px !important;
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .navbar-toggler .fa-bars {
        margin-right: 5px;
    }
    
    /* Collapsed menu styling */
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
    }
}

@media (max-width: 576px) {
    /* Even smaller logo on very small screens */
    .navbar-brand img {
        height: 38px !important;
        max-width: 150px !important;
    }
    
    .navbar-toggler {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    /* Hide "Menu" text on very small screens */
    .navbar-toggler {
        font-size: 0 !important;
    }
    
    .navbar-toggler .fa-bars {
        font-size: 18px !important;
        margin-right: 0;
    }
}

@media (max-width: 400px) {
    .navbar-brand img {
        height: 32px !important;
        max-width: 120px !important;
    }
    
    .ftco-navbar-light {
        padding: 8px 10px !important;
    }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY & SPACING
   ============================================ */

/* Hero Section Improvements */
.hero-wrap {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-wrap .slider-text h1,
.hero-wrap .hero-text-content h1 {
    font-size: clamp(1.75rem, 5vw, 3rem) !important;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-wrap .slider-text p,
.hero-wrap .hero-text-content p {
    font-size: clamp(0.95rem, 2.5vw, 1.5rem) !important;
    line-height: 1.5;
}

.hero-wrap .btn {
    font-size: clamp(0.9rem, 2vw, 1.2rem) !important;
    padding: 0.75rem clamp(1rem, 3vw, 1.5rem) !important;
    white-space: nowrap;
}

/* Hero with quote calculator layout - mobile first */
@media (max-width: 991.98px) {
    .hero-wrap {
        min-height: auto !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .hero-wrap .row {
        min-height: auto !important;
        padding: 20px 0 !important;
    }
    
    .hero-wrap .col-lg-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-wrap .hero-text-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-wrap .hero-text-content p {
        font-size: 1rem !important;
    }
    
    /* Quote calculator card on tablet/mobile */
    .hero-wrap .quote-calculator-card {
        padding: 25px !important;
        margin-top: 20px;
    }
    
    .hero-wrap .quote-calculator-card h3 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .hero-wrap {
        min-height: auto !important;
        padding: 20px 0 !important;
    }
    
    .hero-wrap .slider-text,
    .hero-wrap .hero-text-content {
        padding: 1rem 0.5rem;
        text-align: center;
    }
    
    .hero-wrap .hero-text-content h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-wrap .hero-text-content p {
        font-size: 0.95rem !important;
    }
    
    .hero-wrap .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-wrap .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Quote calculator adjustments */
    .hero-wrap .quote-calculator-card {
        padding: 20px !important;
        border-radius: 10px !important;
    }
    
    .hero-wrap .quote-calculator-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .hero-wrap .quote-calculator-card .form-group {
        margin-bottom: 15px !important;
    }
    
    .hero-wrap .quote-calculator-card label {
        font-size: 0.9rem !important;
    }
    
    .hero-wrap .quote-calculator-card .form-control {
        height: 45px !important;
        font-size: 0.95rem !important;
    }
    
    /* Frequency slider labels */
    .hero-wrap .quote-calculator-card .d-flex span {
        font-size: 0.7rem !important;
    }
    
    /* Quote result */
    .hero-wrap .quote-calculator-card .quote-result {
        padding: 15px !important;
    }
    
    .hero-wrap .quote-calculator-card .quote-result #monthlyPrice,
    .hero-wrap .quote-calculator-card .quote-result [id$="monthlyPrice"] {
        font-size: 2rem !important;
    }
    
    /* Breadcrumbs */
    .hero-wrap .breadcrumbs {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .hero-wrap .hero-text-content h1 {
        font-size: 1.3rem !important;
    }
    
    .hero-wrap .quote-calculator-card {
        padding: 15px !important;
    }
    
    .hero-wrap .quote-calculator-card h3 {
        font-size: 1.1rem !important;
    }
    
    /* Frequency slider labels - stack or abbreviate */
    .hero-wrap .quote-calculator-card .d-flex.justify-content-between span {
        font-size: 0.6rem !important;
        max-width: 60px;
        text-align: center;
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    .hero-wrap .hero-text-content h1 {
        font-size: 1.15rem !important;
    }
    
    .hero-wrap .hero-text-content p {
        font-size: 0.85rem !important;
    }
    
    /* Hide frequency labels on very small screens, show abbreviations */
    .hero-wrap .quote-calculator-card .d-flex.justify-content-between span {
        font-size: 0.55rem !important;
        max-width: 50px;
    }
}

/* ============================================
   SERVICE FREQUENCY CARDS IMPROVEMENTS
   ============================================ */

.service-frequency-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-frequency-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

.service-frequency-card .icon {
    font-size: clamp(3rem, 6vw, 4rem) !important;
    margin-bottom: 1.5rem;
}

.service-frequency-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
    margin-bottom: 1rem;
}

.service-frequency-card p {
    font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Badge positioning fix */
.service-frequency-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    z-index: 10;
    white-space: nowrap;
}

.service-frequency-card {
    padding-top: 2rem !important;
}

/* Responsive card spacing */
@media (max-width: 991.98px) {
    .service-frequency-card {
        margin-bottom: 2rem;
    }
    
    .service-frequency-card:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   SECTION SPACING & ALIGNMENT
   ============================================ */

.ftco-section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .ftco-section {
        padding: 3rem 0;
    }
}

/* Section Headings */
.heading-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.heading-section h3 {
    font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
    margin-bottom: 0.75rem;
}

.heading-section p {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    line-height: 1.6;
}

/* ============================================
   FEATURE CARDS IMPROVEMENTS
   ============================================ */

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.feature-card .icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: clamp(0.9rem, 2vw, 1rem) !important;
    flex-grow: 1;
}

/* ============================================
   SERVICE BOX IMPROVEMENTS
   ============================================ */

.service-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.service-box .icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
}

.service-box h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
}

.service-box h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
}

.service-box ul {
    font-size: clamp(0.9rem, 2vw, 1.05em) !important;
    flex-grow: 1;
}

.service-box ul li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* ============================================
   IMAGE IMPROVEMENTS
   ============================================ */

.img,
.img-video {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}

@media (max-width: 768px) {
    .img,
    .img-video {
        min-height: 250px;
    }
}

/* About section image fix */
.img.img-video {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 991.98px) {
    .img.img-video {
        min-height: 300px;
        margin-bottom: 2rem;
    }
}

/* FAQ Section images */
.ftco-faqs .img {
    border-radius: 10px;
    overflow: hidden;
}

.ftco-faqs .img-2 {
    min-height: 200px;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .ftco-faqs .img-2 {
        min-height: 150px;
    }
}

/* ============================================
   VALUE PROPS SECTION
   ============================================ */

.value-props .value-item {
    padding: 1rem;
}

.value-props .fa {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    margin-bottom: 0.75rem;
}

.value-props p {
    font-size: clamp(0.85rem, 1.8vw, 1rem) !important;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .value-props .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* ============================================
   STEP CARDS IMPROVEMENTS
   ============================================ */

.step-card {
    height: 100%;
}

.step-number {
    width: clamp(60px, 12vw, 80px) !important;
    height: clamp(60px, 12vw, 80px) !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    margin-bottom: 1.5rem;
}

.step-card h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    margin-bottom: 1rem;
}

.step-card p {
    font-size: clamp(0.9rem, 2vw, 1rem) !important;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */

.testimony-wrap {
    transition: transform 0.3s ease;
    padding: 2rem;
}

.testimony-wrap:hover {
    transform: translateY(-5px);
}

.testimony-wrap .text p {
    font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
    line-height: 1.7;
}

/* ============================================
   BUTTON IMPROVEMENTS
   ============================================ */

.btn {
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

/* Button groups on mobile */
@media (max-width: 576px) {
    .btn-group-vertical {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

/* ============================================
   FORM IMPROVEMENTS
   ============================================ */

.appointment .form-control,
.appointment select {
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: 0.75rem 1rem;
    border-radius: 5px;
}

.appointment textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   SERVICE AREAS SECTION
   ============================================ */

.block-18 {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.block-18:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.block-18 h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
}

.block-18 p {
    font-size: clamp(0.9rem, 2vw, 1rem) !important;
    line-height: 1.6;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */

.footer {
    margin-top: 4rem;
}

.footer-heading {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
}

.footer ul li a,
.footer .block-23 li {
    font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
}

@media (max-width: 991.98px) {
    .footer {
        padding: 40px 0 20px !important;
    }
    
    .footer .col-md-6,
    .footer .col-lg-3 {
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px !important;
        margin-top: 2rem;
    }
    
    .footer .col-md-6,
    .footer .col-lg-3 {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-heading {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .footer ul {
        padding-left: 0 !important;
    }
    
    .footer .block-23 ul {
        display: inline-block;
        text-align: left;
    }
    
    .footer .ftco-footer-social {
        justify-content: center;
        display: flex !important;
    }
    
    .footer .copyright {
        font-size: 0.85rem !important;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 25px 0 10px !important;
    }
    
    .footer-heading {
        font-size: 1.1rem !important;
    }
    
    .footer ul li {
        margin-bottom: 8px !important;
    }
    
    .footer p {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   MOBILE CONTENT SECTIONS
   ============================================ */

/* Service cards and general cards on mobile */
@media (max-width: 768px) {
    .service-card,
    .service-box,
    .feature-card,
    .step-card {
        margin-bottom: 20px !important;
    }
    
    .service-card h3,
    .service-box h3,
    .feature-card h4 {
        font-size: 1.2rem !important;
    }
    
    .service-card p,
    .service-box p,
    .feature-card p {
        font-size: 0.95rem !important;
    }
    
    .service-card .icon,
    .service-box .icon,
    .feature-card .icon {
        font-size: 2.5rem !important;
    }
    
    /* Service cards with badges */
    .service-card .badge,
    .service-frequency-card .badge {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
    }
    
    /* Lists inside cards */
    .service-card ul li,
    .service-box ul li {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
}

/* Step numbers on mobile */
@media (max-width: 768px) {
    .step-number {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    .step-card h4 {
        font-size: 1.1rem !important;
    }
    
    .step-card p {
        font-size: 0.9rem !important;
    }
}

/* Value props section on mobile */
@media (max-width: 768px) {
    .value-props .value-item {
        margin-bottom: 20px !important;
    }
    
    .value-props .fa {
        font-size: 1.5rem !important;
    }
    
    .value-props p {
        font-size: 0.85rem !important;
    }
}

/* FAQ accordion on mobile */
@media (max-width: 768px) {
    .myaccordion .card-header button {
        font-size: 0.95rem !important;
        padding: 12px 15px !important;
    }
    
    .myaccordion .card-header button p {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }
    
    .myaccordion .card-body {
        padding: 15px !important;
        font-size: 0.9rem !important;
    }
}

/* Testimonials on mobile */
@media (max-width: 768px) {
    .testimony-wrap {
        padding: 20px 15px !important;
    }
    
    .testimony-wrap .text p {
        font-size: 0.95rem !important;
    }
    
    .testimony-wrap .user-img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .testimony-wrap .name {
        font-size: 0.95rem !important;
    }
    
    .testimony-wrap .position {
        font-size: 0.8rem !important;
    }
}

/* Service areas block on mobile */
@media (max-width: 768px) {
    .block-18 {
        margin-bottom: 15px !important;
        padding: 20px !important;
    }
    
    .block-18 h4 {
        font-size: 1.1rem !important;
    }
    
    .block-18 p {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }
}

/* Section headings on mobile */
@media (max-width: 768px) {
    .ftco-section {
        padding: 40px 0 !important;
    }
    
    .heading-section h2 {
        font-size: 1.5rem !important;
    }
    
    .heading-section h3 {
        font-size: 1.2rem !important;
    }
    
    .heading-section p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .ftco-section {
        padding: 30px 0 !important;
    }
    
    .heading-section h2 {
        font-size: 1.3rem !important;
    }
    
    .heading-section h3 {
        font-size: 1.1rem !important;
    }
}

/* CTA sections on mobile */
@media (max-width: 768px) {
    section[style*="linear-gradient"] .heading-section h2 {
        font-size: 1.4rem !important;
    }
    
    section[style*="linear-gradient"] .btn-lg {
        font-size: 1rem !important;
        padding: 12px 25px !important;
    }
}

/* Contact form on mobile */
@media (max-width: 768px) {
    .contact-form .form-group {
        margin-bottom: 15px !important;
    }
    
    .contact-form .form-control {
        font-size: 0.95rem !important;
    }
    
    .contact-form label {
        font-size: 0.9rem !important;
    }
    
    .contact-form .btn {
        width: 100% !important;
        padding: 12px !important;
    }
}

/* Services include section on mobile */
@media (max-width: 768px) {
    .feature-item {
        margin-bottom: 20px !important;
    }
    
    .feature-item .icon {
        font-size: 2rem !important;
    }
    
    .feature-item h4 {
        font-size: 1rem !important;
    }
    
    .feature-item p {
        font-size: 0.85rem !important;
    }
}

/* Counter section on mobile */
@media (max-width: 768px) {
    .ftco-counter .block-18 .number {
        font-size: 2rem !important;
    }
    
    .ftco-counter .block-18 span {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container max-width for better readability */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Better spacing for sections */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

/* Smooth transitions */
* {
    transition-property: transform, box-shadow, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Prevent layout shifts */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for accordion/collapse */
.card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-header button {
    font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
    white-space: normal;
}

/* ============================================
   MOBILE-SPECIFIC GLOBAL FIXES
   ============================================ */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
}

/* Ensure containers don't overflow */
@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Prevent text overflow */
@media (max-width: 576px) {
    h1, h2, h3, h4, h5, h6,
    p, li, a, span, label {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px !important;
    }
    
    .nav-link {
        padding: 12px 15px !important;
    }
}

/* ============================================
   FORM PAGES MOBILE IMPROVEMENTS (Onboarding, Affiliate, etc.)
   ============================================ */

/* Card forms on mobile */
@media (max-width: 768px) {
    .card {
        padding: 20px !important;
        border-radius: 10px !important;
    }
    
    .card h2 {
        font-size: 1.5rem !important;
    }
    
    .card h5 {
        font-size: 1.1rem !important;
    }
    
    .card .form-group {
        margin-bottom: 15px !important;
    }
    
    .card .form-control,
    .card select {
        height: 45px !important;
        font-size: 0.95rem !important;
        padding: 10px 12px !important;
    }
    
    .card textarea.form-control {
        height: auto !important;
    }
    
    .card label {
        font-size: 0.9rem !important;
    }
    
    /* Yard size and payment method buttons on mobile */
    .yard-size-options,
    .payment-method-options {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .yard-size-option,
    .payment-method-option {
        min-width: 100% !important;
    }
    
    .yard-size-label,
    .payment-method-label {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
    }
    
    /* Quote info alert on mobile */
    .alert-info {
        padding: 15px !important;
        font-size: 0.9rem !important;
    }
    
    .alert-info h5 {
        font-size: 1rem !important;
    }
    
    .alert-info p {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }
    
    /* Submit button on mobile */
    .card .btn-lg {
        min-width: 100% !important;
        font-size: 1rem !important;
        padding: 14px 20px !important;
    }
}

@media (max-width: 576px) {
    .card {
        padding: 15px !important;
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .card h2 {
        font-size: 1.3rem !important;
    }
    
    /* Row columns on very small screens */
    .card .row > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Success card styling */
    .card .fa-check-circle,
    .card .fa-exclamation-triangle {
        font-size: 60px !important;
    }
    
    /* Referral code display */
    .card .alert-success span[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .hero-wrap,
    .navbar,
    .footer,
    .btn,
    .ftco-loader,
    .wrap {
        display: none !important;
    }
    
    .ftco-section {
        page-break-inside: avoid;
    }
}


