/*
Theme Name: Insurance Pro
Description: Professional insurance-focused WordPress theme with modern design, responsive layout, and Elementor compatibility. Features trust-building colors (blues and grays), clear typography, and industry-standard layouts.
Author: Professional Theme Developer
Version: 1.0.0
Text Domain: insurance-pro
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: business, insurance, professional, responsive, elementor, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* Import Poppins Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Insurance Industry Color Palette */
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --accent-blue: #1d4ed8;
    --trust-gray: #374151;
    --light-gray: #f8fafc;
    --medium-gray: #6b7280;
    --dark-gray: #1f2937;
    --white: #ffffff;
    --success-green: #059669;
    --warning-orange: #d97706;
    --error-red: #dc2626;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--trust-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--medium-gray);
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--trust-gray);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--secondary-blue);
    background-color: var(--light-blue);
}

.header-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
}

.btn-secondary:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Right-align hero content on larger screens */
@media (min-width: 769px) {
    .hero-content {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-self: end;
    }
    .hero-actions {
        justify-content: flex-end;
    }
    /* Place content on the right column, image on the left */
    .hero-content { grid-column: 2; }
    .hero-image { grid-column: 1; justify-self: start; }
}

/* Force full right alignment on mobile as well */
@media (max-width: 768px) {
    .hero-container { text-align: right; }
    .hero-content { align-items: flex-end; }
    .hero-actions { justify-content: flex-end; }
    .hero-image { justify-content: flex-end; }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTENT SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* CTA section color overrides */
.cta-section { color: var(--white); }
.cta-section h2,
.cta-section p { color: var(--white); }

/* ===== CARDS & GRID LAYOUTS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: #c7d2fe;
}

/* Enhanced hover-in effect specifically for policy cards */
.policy-card {
    position: relative;
    overflow: hidden;
}

.policy-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 200px at 110% 110%, rgba(59,130,246,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.policy-card:hover::after {
    opacity: 1;
}

.policy-card h3 a {
    transition: color 0.3s ease;
}

.policy-card:hover h3 a {
    color: var(--secondary-blue);
}

/* Policy card layout with image on the right */
.policy-card {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    gap: 16px;
}

.policy-card__body { min-width: 0; }

.policy-card__thumb { display: block; justify-self: end; }
.policy-card__thumb img {
    border-radius: var(--radius-md);
    display: block;
    height: auto;
    width: 100%;
    object-fit: cover;
}

.policy-card__thumb--placeholder {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

@media (max-width: 640px) {
    .policy-card { grid-template-columns: 1fr; }
    .policy-card__thumb { justify-self: start; }
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-blue);
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

.card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

/* Footer logo sizing */
.footer-logo img,
.site-footer .custom-logo {
    max-height: 56px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-logo img,
    .site-footer .custom-logo { max-height: 44px; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ===== ELEMENTOR COMPATIBILITY ===== */
.elementor-widget-container {
    max-width: 100%;
}

.elementor-section {
    position: relative;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* ===== ACCESSIBILITY ===== */
.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 styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* ===== MOBILE MENU STYLES ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-icon span {
    width: 25px;
    height: 3px;
    background: var(--trust-gray);
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: all 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }
    
    .main-navigation.menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: var(--spacing-md);
        border-radius: 0;
    }
    
    .header-cta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* Quote Modal Styling */
.quote-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.quote-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 0.7;
}

.quote-form {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 120px);
}

/* Custom scrollbar for modal form */
.quote-form::-webkit-scrollbar {
    width: 8px;
}

.quote-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.quote-form::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.quote-form::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
    min-width: 120px;
}

/* Form Messages Styling */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    animation: messageSlideIn 0.3s ease-out;
}

.form-message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .quote-modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .quote-modal-header {
        padding: 15px 20px;
    }
    
    .quote-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .quote-form {
        padding: 20px;
        max-height: calc(95vh - 100px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Prevent background scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
.card,
.testimonial-card,
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.card.animate-in,
.testimonial-card.animate-in,
.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TESTIMONIALS STYLES ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: var(--spacing-md);
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-right: 2px;
}

.star.filled {
    color: #f59e0b;
}

.testimonial-content blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--trust-gray);
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--primary-blue);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* ===== FORM STYLES ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--trust-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-red);
}

.error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
}

/* ===== SCROLL EFFECTS ===== */
body.scrolled .site-header {
    box-shadow: var(--shadow-md);
}

/* ===== LAZY LOADING ===== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .back-to-top,
    .menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===== VIDEO MODAL ===== */
.ins-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10000; }
.ins-modal.is-open { display: flex; }
.ins-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.ins-modal__dialog { position: relative; background: #000; border-radius: 12px; max-width: 720px; width: 92vw; height: auto; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.ins-modal__close { 
    position: absolute; 
    top: 12px; 
    right: 16px; 
    background: rgba(0,0,0,.7); 
    border: 2px solid rgba(255,255,255,.8); 
    color: #fff; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 24px; 
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}
.ins-modal__close:hover {
    background: rgba(255,0,0,.8);
    border-color: #fff;
    transform: scale(1.1);
}
.ins-modal__content { padding: 0; display: flex; }
.ins-modal__video { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.ins-modal__video iframe, .ins-modal__video video { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    background: transparent;
    border: none;
}

/* Additional video modal styles for better compatibility */
.ins-modal__video video {
    min-height: 200px;
}

.ins-modal__video video::-webkit-media-controls {
    background: rgba(0,0,0,0.8);
}

.ins-modal__video video::-webkit-media-controls-panel {
    background: rgba(0,0,0,0.8);
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .ins-modal__video {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }
}

@media (min-width: 1200px) {
    .ins-modal__dialog { max-width: 800px; }
}

/* ===== INSURANCE FEATURES SECTION ===== */
.insurance-features {
    padding: 60px 20px;
    background: #fff;
    position: relative;
}

.features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.features-header-content {
    flex: 1;
}

.features-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.features-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.features-quote-btn {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #2563eb;
    padding-bottom: 2px;
    transition: color 0.2s ease;
    white-space: nowrap;
    margin-left: 20px;
}

.features-quote-btn:hover {
    color: #1d4ed8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
}

.feature-item:hover {
    opacity: 0.8;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
    line-height: 1.3;
}

.feature-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    font-weight: 400;
    line-height: 1.4;
}

.feature-description {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features Section Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 35px 25px;
    }
}

@media (max-width: 768px) {
    .insurance-features {
        padding: 50px 16px;
    }
    
    .features-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .features-header h2 {
        font-size: 28px;
    }
    
    .features-header p {
        font-size: 15px;
    }
    
    .features-quote-btn {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .feature-subtitle {
        font-size: 12px;
    }
    
    .feature-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .insurance-features {
        padding: 40px 12px;
    }
    
    .features-header {
        margin-bottom: 35px;
    }
    
    .features-header h2 {
        font-size: 24px;
    }
    
    .features-header p {
        font-size: 14px;
    }
    
    .features-grid {
        gap: 25px;
    }
}