/* LIC Agent Website Styles */
:root {
    --lic-blue: #0A3D91;
    --lic-yellow: #F7C600;
    --lic-light-blue: #1E5BA8;
    --lic-dark-blue: #062B61;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Home — "Ready to Get Started?" CTA (mobile: circle call + card schedule) */
.home-cta-section .cta-call-circle {
    width: min(42vw, 150px);
    max-width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--lic-yellow);
    color: var(--lic-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.7rem, 2.8vw, 0.9rem);
    line-height: 1.15;
    gap: 0.35rem;
    padding: 0.65rem;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-section .cta-call-circle:hover {
    color: var(--lic-dark-blue);
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.home-cta-section .cta-call-circle i {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
}

.home-cta-section .cta-schedule-card {
    width: min(42vw, 150px);
    max-width: 150px;
    min-height: min(42vw, 150px);
    background: #fff;
    color: #212529;
    border: none;
    border-radius: 22px;
    padding: 0.65rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: clamp(0.65rem, 2.5vw, 0.82rem);
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-section .cta-schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.home-cta-section .cta-schedule-card i {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    color: var(--lic-blue);
}

@media (min-width: 768px) {
    .home-cta-section .cta-call-circle {
        width: 150px;
        font-size: 0.9rem;
    }

    .home-cta-section .cta-call-circle i {
        font-size: 1.85rem;
    }

    .home-cta-section .cta-schedule-card {
        width: 180px;
        max-width: 180px;
        min-height: 150px;
        font-size: 0.85rem;
        padding: 1rem 0.75rem;
    }

    .home-cta-section .cta-schedule-card i {
        font-size: 1.55rem;
    }
}

@media (min-width: 992px) {
    .home-cta-section .cta-call-circle {
        width: 152px;
    }

    .home-cta-section .cta-schedule-card {
        width: 200px;
        max-width: 200px;
        min-height: 152px;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

/* Call Float Button */
.call-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background-color: var(--lic-blue);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.call-float:hover {
    background-color: var(--lic-dark-blue);
    color: white;
    transform: scale(1.1);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Owner Photo Styles */
.owner-photo-container {
    text-align: center;
}

.owner-photo {
    max-width: 400px;
    border: 4px solid var(--lic-blue);
    box-shadow: 0 10px 30px rgba(10, 61, 145, 0.3);
    transition: transform 0.3s ease;
}

.owner-photo:hover {
    transform: scale(1.05);
}

.photo-caption {
    margin-top: 15px;
}

.photo-caption h4,
.photo-caption h5 {
    margin-bottom: 5px;
}

.hero-caption {
    margin-top: 15px;
}

.hero-caption h4 {
    margin-bottom: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--lic-blue) 0%, var(--lic-light-blue) 100%);
    color: white;
    padding: 100px 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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.blog-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-category .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Service Cards */
.service-card {
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: visible;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: visible;
    justify-content: space-between;
}

.service-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .card-content p {
    flex: 1;
}

.service-card .btn {
    margin-top: auto;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--lic-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--lic-blue);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--lic-yellow);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: var(--lic-yellow);
    opacity: 0.3;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-image {
    height: 200px;
    object-fit: cover;
}

.blog-placeholder {
    height: 200px;
}

/* CTA Buttons */
.btn-primary {
    background-color: var(--lic-blue);
    border-color: var(--lic-blue);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--lic-light-blue);
    border-color: var(--lic-light-blue);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--lic-yellow);
    border-color: var(--lic-yellow);
    color: var(--lic-blue);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #E5B400;
    border-color: #E5B400;
    color: var(--lic-blue);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 180px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--lic-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--lic-light-blue);
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info-compact {
    padding: 1.35rem 1.5rem;
}

.contact-info-title {
    font-size: 1.35rem;
}

.contact-info-text {
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-info-text p {
    font-size: inherit;
}

.contact-info-compact .contact-icon.contact-icon-sm {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
}

.contact-info-label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.contact-info-label-location {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.contact-info-hint {
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.15rem;
}

.contact-info-map-embed {
    position: relative;
    background: #e9ecef;
}

/* Equal height with form column: map block grows; iframe fills it */
.contact-info-compact.d-flex.flex-column {
    min-height: 0;
}

.contact-info-map-grow {
    flex: 1 1 0%;
    min-height: clamp(360px, 42vh, 560px);
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-map-grow .contact-info-map-embed-fill {
    flex: 1 1 0%;
    min-height: clamp(320px, 38vh, 480px);
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    position: relative;
}

.contact-info-map-embed iframe,
iframe.contact-map-iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    border: 0;
}

.contact-page .contact-form-compact {
    padding: 1.5rem;
}

.contact-item .contact-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .contact-body {
    min-width: 0;
    flex: 1 1 auto;
}

.contact-item a {
    word-break: break-word;
}

.quick-contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.quick-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.quick-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.quick-contact-card:hover .quick-icon {
    transform: scale(1.1);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.direction-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-page .accordion-button:not(.collapsed) {
    background-color: #0A3D91;
    color: white;
}

.contact-page .accordion-button:focus {
    box-shadow: none;
}

/* Contact page: avoid double horizontal padding (section + container) */
.contact-page section:not(.bg-primary) {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991.98px) {
    /* Symmetric padding — extra right padding for FABs made cards look shifted on mobile */
    .contact-page .contact-form,
    .contact-page .contact-info {
        padding: 1.25rem;
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    }

    .contact-page .contact-info .btn-success {
        white-space: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .contact-page .display-4 {
        font-size: 1.75rem;
    }
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--lic-blue);
    box-shadow: 0 0 0 0.2rem rgba(10, 61, 145, 0.25);
}

/* Stats Section */
.stats-card {
    background: linear-gradient(135deg, var(--lic-blue) 0%, var(--lic-light-blue) 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--lic-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .call-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 140px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Hide scrollbars globally but keep functionality */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Container and Row Fixes */
.container, .container-fluid {
    max-width: 1140px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding-left: 30px;
    padding-right: 30px;
}

.row {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Section Spacing */
section {
    overflow-x: hidden;
    overflow-y: visible;
    padding-left: 30px;
    padding-right: 30px;
}

/* Service Cards Container */
.service-cards-container {
    overflow-y: visible;
    max-height: none;
}

/* Remove scrollbar from service cards */
.service-card {
    overflow: visible;
}

/* Service page specific overflow control */
.services-page .row {
    overflow-y: visible !important;
}

.services-page section {
    overflow-y: visible !important;
}

/* Services Overview Section - Remove all scrollbars */
section.py-5 {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

section.py-5 .row {
    overflow: visible !important;
    overflow-y: visible !important;
}

section.py-5 .col-lg-4,
section.py-5 .col-md-6 {
    overflow: visible !important;
    overflow-y: visible !important;
}

/* Additional spacing for better visual balance */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .container, .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-section {
        padding: 60px 0 !important;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-section .col-lg-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-image img {
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .hero-buttons .btn-warning {
        margin-bottom: 25px; /* Add more space below the Call Now button */
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-badges {
        justify-content: center;
        margin-top: 30px;
    }
    
    .owner-photo {
        max-width: 250px !important;
        height: auto !important;
    }
}

/* Image and Media Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--lic-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Active Navigation Link */
.navbar-nav .nav-link.active {
    color: var(--lic-yellow) !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--lic-yellow);
    border-radius: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
