/* MASTER INSURANCE CSS - DEEP STABILITY RESTORATION (FINAL) */

/* Global Background Lock */
body, html {
    background-color: #ece0ff !important;
}

.hero-insurance-v3, .why-us-v2, .plans-section, .transparency-section, .how-it-works-section, .compare-matrix-section, .trust-signals-v3, #quote-form {
    background-color: #ece0ff !important;
    position: relative;
    width: 100%;
    clear: both;
    overflow: hidden;
}

/* SECTION 1: HERO SECTION */
.hero-insurance-v3 { padding: 120px 0 100px; }
.wavy-background-half { position: absolute; top: 0; left: 0; width: 100%; height: 50%; z-index: 1; pointer-events: none; }
.wavy-background-half svg { width: 100%; height: 100%; object-fit: cover; }
.hero-content-v3 { position: relative; z-index: 10; }
.hero-text-side h1 { font-size: 3rem; font-weight: 800; color: #001f3f; line-height: 1.2; }
.text-warning { color: #FF69B4 !important; }

/* Hero Image Collage */
.collage-wrapper { position: relative; width: 100%; max-width: 500px; height: 450px; margin: 0 auto; }
.collage-item { position: absolute; border-radius: 50%; border: 8px solid #001f3f; background: #fff; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.img-main { width: 280px; height: 280px; top: 60px; left: 10%; z-index: 4; }
.img-small-1 { width: 160px; height: 160px; top: 0; right: 5%; z-index: 3; }
.img-small-2 { width: 190px; height: 190px; bottom: 0; right: 10%; z-index: 5; }
.img-tiny { width: 110px; height: 110px; bottom: 80px; left: -5%; z-index: 2; }

/* SECTION 2: WHY US GRID (Walking Dogs) */
.why-us-v2 { padding: 100px 0; }
.why-us-heading { font-size: 3.5rem; font-weight: 800; color: #001f3f; text-align: center; margin-bottom: 60px; }
.why-us-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; position: relative; z-index: 10; }
.why-us-item { flex: 0 1 calc(33.33% - 40px); text-align: center; min-width: 280px; }
.why-us-icon { font-size: 3.5rem; color: #FF69B4; margin-bottom: 15px; display: block; }

.pet-lottie-bg-bottom { position: absolute; bottom: -50px; width: 600px; height: 600px; opacity: 0.12; animation: paced-walk-bottom 35s linear infinite; }
.pet-lottie-bg-top { position: absolute; top: -50px; width: 550px; height: 550px; opacity: 0.12; animation: paced-walk-top 30s linear infinite; }
@keyframes paced-walk-bottom { 0%, 100% { left: 0%; transform: scaleX(1); } 48% { left: calc(100% - 600px); transform: scaleX(1); } 50% { left: calc(100% - 600px); transform: scaleX(-1); } 98% { left: 0%; transform: scaleX(-1); } }
@keyframes paced-walk-top { 0%, 100% { right: 0%; transform: scaleX(-1); } 48% { right: calc(100% - 550px); transform: scaleX(-1); } 50% { right: calc(100% - 550px); transform: scaleX(1); } 98% { right: 0%; transform: scaleX(1); } }

/* SECTION 3: EXPLORE OUR PLANS (Glassy Cards) */
.plans-section { padding: 100px 0; }
.section-title-premium { font-size: 3.5rem; font-weight: 800; color: #001f3f; text-align: center; margin-bottom: 80px; }
.plans-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.plan-card-v3 {
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 40px 100px 40px 100px;
    padding: 50px 40px; width: 320px; transition: all 0.4s ease;
}
.plan-card-v3:nth-child(even) { border-radius: 100px 40px 100px 40px; }
.plan-feature-item { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; color: #001f3f; margin-bottom: 18px; font-weight: 600; }
.btn-plan-select { width: 100%; background: #001f3f; color: #fff; border: none; padding: 18px; border-radius: 50px; font-weight: 800; text-transform: uppercase; }

/* WHATSAPP HERO BUTTON */
.btn-whatsapp-hero {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    padding: 18px 45px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-whatsapp-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4) !important;
    background: #20ba5a !important;
}

/* SECTION 4: TRANSPARENT COVERAGE */
.transparency-section { padding: 100px 0; }
.transparency-dashboard { display: flex; gap: 40px; background: rgba(255,255,255,0.4); backdrop-filter: blur(20px); border-radius: 40px; padding: 60px; border: 1px solid rgba(255,255,255,0.6); }
.dashboard-pane { flex: 1; }
.pane-header h3 { font-size: 2.2rem; font-weight: 900; color: #001f3f; margin-bottom: 10px; }
.transparency-item { display: flex; align-items: flex-start; gap: 20px; padding: 20px; background: rgba(255,255,255,0.5); border-radius: 20px; margin-bottom: 15px; }
.bg-success-light { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.bg-danger-light { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

/* SECTION 5: WHY & HOW (Final Dual Pane Restoration) */
.how-it-works-section { padding: 120px 0 40px; }

/* SECTION 5: HOW IT WORKS CTA */
.cta-call-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #003366;
    padding: 15px 40px;
    border-radius: 60px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.cta-call-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.3);
}

.cta-label {
    color: #FF69B4;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.cta-phone {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-phone i {
    animation: phone-wiggle 2s infinite;
}

@keyframes phone-wiggle {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(-10deg); }
    20%, 40%, 60% { transform: rotate(10deg); }
    70% { transform: rotate(0); }
}
.section-main-heading { font-size: 2.5rem; font-weight: 900; text-align: center; margin-bottom: 80px; background: linear-gradient(90deg, #FF69B4 0%, #800080 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.how-it-works-split { display: flex; align-items: flex-start; gap: 40px; max-width: 1200px; margin: 0 auto; }

.why-insurance-pane { flex: 1; padding: 0 60px 0 20px; border-right: 2px solid rgba(0,31,63,0.15); }
.why-insurance-pane h3, .d-journey-pane h2 { font-size: 2.2rem; font-weight: 900; color: #001f3f; margin-bottom: 60px; }

.why-item-v2 { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.why-item-v2 i { font-size: 1.2rem; color: #FF69B4; margin-top: 5px; }
.why-item-v2 p { font-size: 1.1rem; font-weight: 700; color: #001f3f; line-height: 1.4; }
.why-closing-text { margin-top: 50px; font-size: 1.05rem; color: #555; font-weight: 800; border-left: 4px solid #FF69B4; padding-left: 20px; }

.d-journey-pane { flex: 1; position: relative; min-height: 550px; padding-left: 20px; }
.giant-d-shape { position: absolute; left: -20px; top: 280px; width: 360px; height: 360px; border-right: 4px solid #001f3f; border-radius: 0 180px 180px 0; opacity: 0.9; z-index: 5; transform: translateY(-50%); }
.lottie-front-d { position: absolute; left: 60px; top: 280px; transform: translateY(-50%); z-index: 20; mix-blend-mode: multiply; }

.curve-step { position: absolute; width: 250px; display: flex; align-items: center; gap: 12px; z-index: 25; }
.curve-step i { font-size: 1rem; color: #FF69B4; background: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #001f3f; }
.curve-step h4 { font-size: 1.05rem; font-weight: 800; color: #001f3f; margin-bottom: 0; }
.curve-step p { font-size: 0.8rem; color: #444; line-height: 1.2; font-weight: 600; }

.step-1 { top: 100px; left: 310px; }
.step-2 { top: 210px; left: 370px; }
.step-3 { top: 350px; left: 370px; }
.step-4 { top: 430px; left: 290px; }

/* TRUST SIGNALS & QUOTE FORM */
.trust-signals-v3, #quote-form { padding: 80px 0; }
.quote-card-modern { background: #fff; border-radius: 30px; padding: 50px; border: 1px solid rgba(0, 31, 63, 0.1); }

/* RESPONSIVE */
@media (max-width: 1199px) {
    .how-it-works-split { flex-direction: column; }
    .why-insurance-pane { border-right: none; border-bottom: 2px solid rgba(0,31,63,0.15); padding: 0 0 40px; text-align: center; }
    .why-item-v2 { justify-content: center; text-align: left; }
    .d-journey-pane { text-align: center; padding: 0; }
    .giant-d-shape { display: none; }
    .lottie-front-d { position: relative; left: 0; top: 0; transform: none; }
    .curve-step { position: relative; left: 0 !important; top: 0 !important; width: 100%; justify-content: center; }
}

/* SECTION 6: COMPARE US MATRIX (Scoped Isolation) */
.compare-matrix-section {
    padding: 40px 0 100px; /* Reduced top padding */
    background-color: #ece0ff !important;
}

.compare-container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03) !important; /* Pure Crystal Transparency */
    backdrop-filter: blur(30px) saturate(150%) !important; /* Deep Refraction */
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Ghost Edge */
    box-shadow: 0 20px 40px rgba(0,0,0,0.03) !important;
}

.compare-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

.compare-table thead tr {
    background: #003366 !important; /* Solid Navy Header for authority */
}

.compare-table th {
    padding: 30px 20px !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    border: none !important;
}

.compare-table tr {
    background: transparent !important;
}

.compare-table td {
    padding: 25px 20px !important;
    color: #001f3f !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important; /* Minimalist Glass Divider */
    vertical-align: middle !important;
    background: transparent !important;
}

.compare-table td:first-child {
    text-align: left !important;
    padding-left: 40px !important;
    font-weight: 800 !important;
    color: #003366 !important;
}

.compare-status-icon {
    font-size: 1.6rem !important;
    display: inline-block;
    vertical-align: middle;
}

.status-tick { color: #2ecc71 !important; }
.status-cross { color: #e74c3c !important; }

.conclusion-boost-bar {
    padding: 35px !important;
    text-align: center !important;
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.conclusion-boost-bar p {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #003366 !important;
    margin-bottom: 0 !important;
}

/* SECTION 7: SOCIAL PROOF (Scoped Isolation) */
.social-proof-section {
    padding: 100px 0;
    background-color: #ece0ff !important;
}

.stories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.story-card-v4 {
    flex: 1;
    min-width: 450px; /* Wider for side-by-side */
    max-width: 550px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(25px) !important;
    border-radius: 30px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    display: flex; /* Horizontal Layout */
    flex-direction: row;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.pet-photo-frame {
    flex: 0 0 140px; /* Fixed width for left side */
    height: 140px;
    border-radius: 20px;
    border: 3px solid #003366;
    overflow: hidden;
    margin: 0; /* Remove auto margin */
}

.pet-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure face is visible */
}

.story-content-right {
    flex: 1;
    text-align: left; /* Editorial alignment */
}

.story-text {
    font-size: 0.9rem;
    color: #001f3f;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    color: #FF69B4;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 10px;
    display: block;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 900;
    color: #003366;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.8rem;
    color: #555;
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .story-card-v4 {
        flex-direction: column;
        min-width: 100%;
        text-align: center;
    }
    .story-content-right {
        text-align: center;
    }
    .pet-photo-frame {
        margin: 0 auto 15px;
        width: 100%;
        height: 200px;
    }
}

/* Modal Styles */
.story-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 31, 63, 0.4);
    backdrop-filter: blur(10px);
}

.modal-content-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    margin: 10% auto;
    padding: 40px;
    border-radius: 40px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 1px solid #fff;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #003366;
}

/* SECTION 8: FAQ (Scoped Isolation) */
.faq-section {
    padding: 100px 0;
    background-color: #ece0ff !important;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 0;
}

.faq-icon {
    font-size: 1.2rem;
    color: #FF69B4;
    transition: transform 0.3s ease;
}

.faq-body {
    display: none; /* Required for jQuery slideDown/slideUp */
    background: rgba(255, 255, 255, 0.2);
}

.faq-body p {
    padding: 0 30px 25px;
    font-size: 1rem;
    color: #001f3f;
    line-height: 1.6;
    font-weight: 600;
}

.faq-card.active .faq-icon {
    transform: rotate(180deg);
}

/* No max-height needed as jQuery handles sliding */
.faq-card.active .faq-body {
    display: block;
}

.faq-card.active {
    border-color: #FF69B4;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.1);
}

/* TRUST ACCELERATOR BAR (After Why Us) */
.trust-accelerator-v4 {
    background: #003366;
    padding: 40px 0;
    color: #fff;
    position: relative;
    z-index: 10;
}

.trust-accel-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.trust-accel-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-accel-icon {
    font-size: 2.5rem;
    color: #FF69B4; /* Signature Pink */
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.3));
}

.trust-accel-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: #fff;
}

.trust-accel-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: #ece0ff;
    font-weight: 600;
}

@media (max-width: 991px) {
    .trust-accel-grid {
        flex-direction: column;
        text-align: center;
    }
    .trust-accel-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* RADICAL TRANSPARENCY MOBILE RESPONSIVENESS */
@media (max-width: 767px) {
    .transparency-section {
        padding: 60px 0;
    }
    .transparency-dashboard {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        border-radius: 30px;
    }
    .pane-header h3 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }
    .transparency-item {
        padding: 15px;
        gap: 15px;
    }
    .transparency-item h4 {
        font-size: 1.1rem;
    }
    .transparency-item p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* GLOBAL MOBILE TYPOGRAPHY FIX */
@media (max-width: 767px) {
    .hero-text-side h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        text-align: center;
    }
    .why-us-heading, .section-title-premium, .section-main-heading {
        font-size: 1.8rem !important;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 30px;
    }
    .hero-text-side p {
        font-size: 1rem;
        text-align: center;
    }
    .btn-whatsapp-hero {
        display: flex !important;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 20px auto 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-text-side h1 {
        font-size: 1.8rem !important;
    }
    .why-us-heading, .section-title-premium, .section-main-heading {
        font-size: 1.6rem !important;
    }
}

/* HOW WE COMPARE MOBILE RESPONSIVENESS (STATIC STACKED) */
@media (max-width: 767px) {
    .compare-matrix-section {
        padding: 40px 0 60px;
    }
    .compare-container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible;
        margin: 0;
    }
    .compare-table, .compare-table thead, .compare-table tbody, .compare-table th, .compare-table td, .compare-table tr {
        display: block;
        width: 100%;
    }
    .compare-table thead {
        display: none; /* Hide table headers */
    }
    .compare-table tr {
        background: rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(10px);
        margin-bottom: 25px;
        border-radius: 25px;
        padding: 20px;
        border: 1px solid rgba(255,255,255,0.5) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    }
    .compare-table td {
        text-align: center !important;
        padding: 10px 0 !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .compare-table td:first-child {
        font-size: 1.2rem !important;
        color: #003366 !important;
        border-bottom: 2px solid rgba(0,51,102,0.1) !important;
        margin-bottom: 15px;
        padding-bottom: 15px !important;
        padding-left: 0 !important;
        justify-content: center;
        position: relative;
        left: auto;
        background: transparent !important;
        box-shadow: none !important;
        min-width: auto;
    }
    
    /* Add labels for Us vs Them */
    .compare-table td:nth-child(2):before {
        content: "Premium Doggies:";
        font-weight: 800;
        color: #003366;
    }
    .compare-table td:nth-child(3):before {
        content: "Traditional Insurers:";
        font-weight: 800;
        color: #555;
    }

    .conclusion-boost-bar {
        margin-top: 20px;
        padding: 20px !important;
        border: none !important;
    }
    .conclusion-boost-bar p {
        font-size: 1rem !important;
    }
}
