/* Custom CSS for Cordoba Legal Group Landing Page */

/* Base Styles */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --dark-blue: #1e3a8a;
    --accent-gold: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Ensure video covers the full screen on all devices */
video.video-background {
    min-width: 100%;
    min-height: 100%;
    /* Improve video rendering performance */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Fallback background styling */
.video-background.bg-cover {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    video.video-background {
        /* Enhanced mobile performance */
        transform: translateZ(0) scale(1.001); /* Force GPU acceleration */
    }
    
    /* On very small screens, prioritize fallback image */
    .video-background.bg-cover {
        background-attachment: scroll; /* Better for mobile */
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-background.bg-cover {
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 0;
}

/* Header Logo Styles */
#header img {
    transition: all 0.3s ease;
}

/* Logo sizing adjustments */
@media (max-width: 768px) {
    #header img {
        height: 2.5rem; /* h-10 = 40px, reduce to h-10 on mobile */
    }
}

/* Hero Section */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Form Styles */
.hero-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.hero-input {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 56px;
}

.hero-input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.hero-submit-btn {
    min-height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px) scale(1.02);
}

/* Phone dropdown custom styles */
#dropdown-phone-button {
    min-height: 56px !important;
    height: 56px !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
    box-sizing: border-box;
    border-right: none !important;
}

#dropdown-phone {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(209, 213, 219, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

#dropdown-phone ul li button {
    transition: all 0.2s ease;
}

#dropdown-phone ul li button:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(2px);
}

/* Country flag styling */
.hero-form button svg {
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dropdown flag styling */
#dropdown-phone svg {
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ensure proper alignment */
#dropdown-phone ul li button {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Compact phone dropdown button styling */
#dropdown-phone-button .flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#dropdown-phone-button .w-4 {
    width: 16px !important;
    height: 12px !important;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

#dropdown-phone-button .text-xs {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1;
}

#dropdown-phone-button svg:last-child {
    width: 10px !important;
    height: 10px !important;
    opacity: 0.7;
    margin-left: 1px !important;
}

/* Hover effect for dropdown button */
#dropdown-phone-button:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
}

#dropdown-phone-button:focus {
    background-color: #e5e7eb !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Hero form flex layout */
.hero-form > form > div {
    gap: 16px;
}

/* Equal height for all form elements */
.hero-input,
#phone-input,
#dropdown-phone-button,
.hero-submit-btn {
    min-height: 56px;
    box-sizing: border-box;
}

/* Ensure all flex items have equal base width */
.hero-form .flex-1 {
    flex: 1 1 0;
    min-width: 200px;
}

/* Desktop specific improvements */
@media (min-width: 1025px) {
    .hero-form {
        padding: 40px;
    }
    
    .hero-form > form > div {
        align-items: end;
    }
    
    .hero-input,
    #phone-input,
    #dropdown-phone-button,
    .hero-submit-btn {
        min-height: 56px;
    }
    
    /* Compact field sizes for desktop */
    .hero-form .w-56 {
        width: 13rem; /* 208px - Name field */
    }
    
    .hero-form .w-64 {
        width: 15rem; /* 240px - Email field */
    }
}

/* Phone field container should match other fields */
.hero-form .flex-1.relative {
    display: flex;
    align-items: stretch;
}

/* Ensure phone input group fills available space properly */
.hero-form .relative .flex {
    width: 100%;
    display: flex;
}

/* Text inside dropdown button should not wrap */
#dropdown-phone-button {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact flag and code layout */
#dropdown-phone-button .w-5 {
    width: 16px !important;
    height: 12px !important;
    margin-right: 3px !important;
}

/* Ensure phone input takes remaining space */
#phone-input {
    flex: 1 !important;
}

/* ============ HERO CTA BUTTON STYLES ============ */

.hero-cta-button {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    animation: hero-pulse 3s ease-in-out infinite;
}

.hero-cta-button:hover {
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
}

@keyframes hero-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

/* ============ MODAL STYLES ============ */

#consultation-modal {
    /* Remove backdrop-filter for better performance on weak devices */
    z-index: 9999;
    /* Optimize for animations */
    will-change: opacity;
}

#consultation-modal.show {
    opacity: 1 !important;
}

#consultation-modal.show #modal-content {
    transform: scale(1) !important;
}

#modal-content {
    background: white;
    /* Remove backdrop-filter for better performance */
    border: 1px solid rgba(229, 231, 235, 0.8);
    /* Optimize for animations */
    will-change: transform;
}

/* Modal Form Styling */
.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Modal Phone Dropdown */
#modal-phone-dropdown {
    min-width: 80px;
    background: #f8fafc;
}

#modal-phone-dropdown:hover {
    background: #f1f5f9;
}

/* Modal Phone Dropdown List */
#modal-phone-list {
    animation: fadeInDown 0.15s ease-out;
    border-top: none;
    margin-top: 1px;
    /* Prevent horizontal scroll */
    overflow-x: hidden !important;
    white-space: nowrap;
    /* Optimize for performance */
    will-change: transform, opacity;
}

#modal-phone-list button {
    border-bottom: 1px solid #f3f4f6;
    /* Prevent text overflow and horizontal scroll */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    /* Reduce transition for better performance */
    transition: background-color 0.1s ease;
}

#modal-phone-list button:last-child {
    border-bottom: none;
}

#modal-phone-list button:hover {
    background-color: #f8fafc;
    /* Remove transform for better performance */
}

#modal-phone-list button.active {
    background-color: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

#modal-phone-list svg {
    flex-shrink: 0; /* Prevent flag shrinking */
}

/* Dropdown arrow rotation */
#dropdown-arrow.rotated {
    transform: rotate(180deg);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-animate-in {
    animation: modalFadeIn 0.3s ease-out;
}

/* Flag styling improvements */
#dropdown-phone-button svg:first-child {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Dropdown arrow styling */
#dropdown-phone-button svg:last-child {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#dropdown-phone-button:hover svg:last-child {
    opacity: 0.8;
}

/* Phone input container styling */
.hero-form .relative .flex {
    height: 56px;
    width: 100%;
    border: none;
}

/* Force button styles */
.hero-form button#dropdown-phone-button {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

#dropdown-phone-button {
    min-height: 56px;
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex-shrink: 0;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

#phone-input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
    min-height: 56px !important;
    height: 56px !important;
    flex: 1;
    background: white !important;
    border-color: #d1d5db !important;
}

/* Tablet adjustments (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-form {
        padding: 30px;
    }
    
    .hero-form > form > div {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-form .flex-1,
    .hero-form .flex-none {
        min-width: auto;
        width: 100% !important;
    }
    
    .hero-submit-btn {
        width: 100%;
    }
    
    #dropdown-phone {
        width: 300px !important;
    }
}

/* Mobile adjustments (max 768px) */
@media (max-width: 768px) {
    .hero-form {
        margin: 0 16px;
        padding: 24px;
        margin-top: 20px;
    }
    
    .hero-form > form > div {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .hero-form .flex-1,
    .hero-form .flex-shrink-0,
    .hero-form .flex-none {
        width: 100% !important;
        min-width: auto;
    }
    
    .hero-input,
    #phone-input,
    .hero-submit-btn {
        min-height: 48px;
        font-size: 16px;
    }
    
    #dropdown-phone-button {
        min-height: 48px !important;
        height: 48px !important;
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        background-color: #f3f4f6 !important;
    }
    
    #phone-input {
        min-height: 48px !important;
        height: 48px !important;
    }
    
    #dropdown-phone {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-submit-btn {
        width: 100%;
        padding: 12px 24px;
    }
    
    .hero-form > form > div {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-form .flex-1 {
        min-width: auto;
        width: 100%;
    }
    
    .hero-input, 
    #phone-input, 
    #dropdown-phone-button,
    .hero-submit-btn {
        min-height: 52px;
        font-size: 16px;
    }
    
    .hero-submit-btn {
        width: 100%;
    }
    
    #dropdown-phone {
        width: calc(100vw - 100px) !important;
        max-width: 300px;
        left: 50% !important;
        transform: translateX(-50%);
    }
    
    /* Better flag sizing on mobile */
    #dropdown-phone svg,
    #dropdown-phone-button svg {
        width: 18px !important;
        height: 13px !important;
    }
    
    /* Improved dropdown button on mobile */
    #dropdown-phone-button {
        min-width: 80px !important;
        justify-content: center !important;
    }
    
    /* Ensure phone input field takes remaining space */
    .hero-form .relative .flex {
        height: 52px;
    }
}

/* Large desktop adjustments */
@media (min-width: 1025px) {
    .hero-form {
        padding: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-form > form > div {
        gap: 20px;
        align-items: stretch;
    }
    
    /* Ensure equal flex basis for all form fields */
    .hero-form .flex-1 {
        flex: 1 1 0;
        min-width: 240px;
    }
    
    /* Large desktop phone button optimization */
    #dropdown-phone-button {
        width: 75px !important;
        min-width: 75px !important;
        max-width: 75px !important;
        font-size: 14px !important;
        padding: 0 10px !important;
    }
    
    /* Optimal button width on large screens */
    .hero-submit-btn {
        min-width: 200px;
        padding: 16px 24px;
    }
    
    /* Ensure phone input container matches other fields */
    .hero-form .relative {
        display: flex;
        flex-direction: column;
    }
}

/* Extra small mobile phones */
@media (max-width: 480px) {
    .hero-form {
        margin: 0 8px;
        padding: 20px;
    }
    
    .hero-input, 
    #phone-input, 
    #dropdown-phone-button,
    .hero-submit-btn {
        min-height: 48px;
        font-size: 16px;
    }
    
    #dropdown-phone {
        width: calc(100vw - 60px) !important;
        max-width: 280px;
    }
}

/* Ensure consistent spacing and alignment */
@media (min-width: 1024px) {
    .hero-form > form > div.flex {
        align-items: stretch;
    }
    
    .hero-form .flex-1,
    .hero-form .flex-shrink-0 {
        display: flex;
        flex-direction: column;
    }
    
    .hero-input,
    #phone-input,
    .hero-submit-btn,
    .hero-form .relative .flex {
        flex: 1;
        min-height: 56px;
    }
    
    /* Desktop phone button optimization */
    #dropdown-phone-button {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        font-size: 14px !important;
        padding: 0 8px !important;
        gap: 4px;
    }
    
    #dropdown-phone-button svg:first-child {
        width: 20px !important;
        height: 15px !important;
        margin-right: 0 !important;
        border-radius: 2px;
    }
    
    #dropdown-phone-button svg:last-child {
        width: 10px !important;
        height: 6px !important;
        margin-left: 2px !important;
        opacity: 0.6;
    }
}

/* Focus states improvement */
.hero-input:focus,
#phone-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2), 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.hero-submit-btn:focus {
    transform: translateY(-1px) scale(1.02);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Modal Styles */
.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);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

/* Ensure testimonials carousel is positioned correctly */
#testimonials .carousel {
    position: relative;
    z-index: 1;
}

/* Ensure all sections have proper positioning */
section {
    position: relative;
    z-index: 1;
}

#hero {
    z-index: 2;
}

/* Specific carousel styles to avoid conflicts */
#about-carousel {
    margin-bottom: 0;
}

/* About carousel with adaptive height */
#about-carousel .carousel-slides {
    min-height: auto;
}

#about-carousel .carousel-slide {
    display: block;
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

#about-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

#about-carousel img:hover {
    transform: scale(1.05);
}

/* About carousel navigation positioning */
#about-carousel .carousel-nav {
    bottom: 15px;
}

/* Modern Testimonials Slider */
.testimonials-slider-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.testimonials-slider-track {
    cursor: grab;
    user-select: none;
}

.testimonials-slider-track:active {
    cursor: grabbing;
}

.testimonial-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonials-nav-btn {
    transition: all 0.2s ease;
}

.testimonials-nav-btn:hover {
    transform: scale(1.1);
    background-color: #f8fafc;
}

.testimonial-dot.active {
    background-color: #6b7280 !important;
}

/* Mobile Responsive Styles for Testimonials */
@media (max-width: 768px) {
    .testimonials-slider-container {
        padding: 0 50px;
    }
    
    .testimonials-nav-btn {
        width: 40px;
        height: 40px;
        transform: translateX(-25px);
    }
    
    .testimonials-next {
        transform: translateX(25px);
    }
    
    .testimonials-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .testimonials-slider-container {
        padding: 0 20px;
    }
    
    .testimonials-nav-btn {
        width: 36px;
        height: 36px;
        transform: translateX(-10px);
    }
    
    .testimonials-next {
        transform: translateX(10px);
    }
}

@media (max-width: 480px) {
    .testimonials-slider-container {
        padding: 0 10px;
    }
    
    .testimonial-card img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-card h3 {
        font-size: 1rem;
    }
    
    .testimonial-card .grid {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    
    .testimonials-nav-btn {
        display: none;
    }
}

@media (max-width: 375px) {
    .testimonials-slider-container {
        padding: 0 5px;
    }
}

/* Additional CTA Block Styles */
#final-cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

#final-cta-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px) scale(1.02);
}

#final-cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile responsive styles for Additional CTA */
@media (max-width: 768px) {
    #final-cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .bg-gray-50.rounded-2xl {
        padding: 2rem 1rem;
    }
    
    .text-3xl.md\\:text-4xl {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    #final-cta-button {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .bg-gray-50.rounded-2xl {
        margin: 1rem 0;
        padding: 1.5rem 0.75rem;
    }
}

/* FAQ Styles */
.faq-container {
    max-width: 100%;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item.faq-active {
    background-color: #f8fafc;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:focus {
    background-color: #f3f4f6;
}

.faq-answer {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-answer:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* FAQ Mobile Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
    
    .faq-question span {
        font-size: 0.95rem;
    }
    
    .faq-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 0.875rem;
    }
    
    .faq-question span {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        padding-bottom: 0.875rem;
    }
    
    .faq-icon {
        width: 1rem;
        height: 1rem;
    }
    
    /* Stack grid layouts on mobile */
    .faq-answer .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

#about-carousel .carousel-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #1e40af;
}

#about-carousel .carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for about carousel */
@media (max-width: 768px) {
    #about-carousel .carousel-slide {
        height: 300px;
    }
}

#testimonials-carousel {
    margin-top: 0;
    position: static;
}

/* Ensure testimonials section is properly spaced */
#testimonials {
    margin-top: 0;
    padding-top: 80px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease;
}

.carousel-arrow:hover {
    background: white;
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Calculator Styles */
.calculator-result {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #fbbf24);
    width: 0;
    transition: width 2s ease;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease;
}

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

/* Alternative animation class for in-view elements */
.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Floating Consultant Widget */
.consultant-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.consultant-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #fbbf24);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(245, 158, 11, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
}

.consultant-form {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .consultant-form {
        width: 280px;
    }
}

/* ============ ROADMAP COLUMNS STYLES ============ */

/* Roadmap Column Layout */
.roadmap-column {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
}

.roadmap-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.roadmap-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roadmap-column:hover::before {
    opacity: 1;
}

/* Roadmap Number Styling */
.roadmap-number {
    font-family: 'Inter', sans-serif;
    opacity: 0.1;
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 1;
    pointer-events: none;
}

/* Roadmap Items */
.roadmap-item {
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.roadmap-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.roadmap-item h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.roadmap-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Custom bullet points */
.roadmap-item .w-2 {
    transition: all 0.3s ease;
}

.roadmap-item:hover .w-2 {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* Step Number Colors */
.roadmap-column:nth-child(1) .roadmap-number {
    color: var(--primary-blue);
}

.roadmap-column:nth-child(2) .roadmap-number {
    color: var(--secondary-blue);
}

.roadmap-column:nth-child(3) .roadmap-number {
    color: var(--accent-gold);
}

/* Border Colors */
.roadmap-column:nth-child(1) {
    border-left-color: var(--primary-blue);
}

.roadmap-column:nth-child(2) {
    border-left-color: var(--secondary-blue);
}

.roadmap-column:nth-child(3) {
    border-left-color: var(--accent-gold);
}

/* Mobile Responsive Design */
@media (max-width: 1023px) {
    .roadmap-column {
        margin-bottom: 2rem;
        border-left-width: 0;
        border-top-width: 4px;
        border-top-style: solid;
    }
    
    .roadmap-number {
        font-size: 4rem;
        top: 10px;
        right: 15px;
    }
    
    .roadmap-column h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .roadmap-column {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .roadmap-number {
        font-size: 3rem;
        top: 5px;
        right: 10px;
    }
    
    .roadmap-column h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .roadmap-item {
        margin-bottom: 1.5rem;
    }
    
    .roadmap-item h4 {
        font-size: 0.9rem;
    }
    
    .roadmap-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .roadmap-column {
        padding: 1.25rem;
    }
    
    .roadmap-number {
        font-size: 2.5rem;
    }
    
    .roadmap-column h3 {
        font-size: 1.125rem;
    }
}

/* Animation Enhancements */
.roadmap-column.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.js-enabled .roadmap-column.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation for Columns */
.js-enabled .roadmap-column:nth-child(1).animate-on-scroll {
    transition-delay: 0.1s;
}

.js-enabled .roadmap-column:nth-child(2).animate-on-scroll {
    transition-delay: 0.3s;
}

.js-enabled .roadmap-column:nth-child(3).animate-on-scroll {
    transition-delay: 0.5s;
}

/* ============ OLD TIMELINE STYLES (Keep for backwards compatibility) ============ */

/* Timeline Container */
.timeline-container {
    position: relative;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 3rem; /* mb-12 = 48px */
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover .timeline-line {
    opacity: 1;
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-blue));
}

.timeline-item:hover .timeline-content h3 {
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Timeline Number Circle */
.timeline-number {
    width: 4rem; /* w-16 = 64px */
    height: 4rem; /* h-16 = 64px */
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    margin: 0 auto; /* mx-auto on mobile */
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.timeline-number:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* Special styling for final step (step 4) */
.timeline-item:nth-child(4) .timeline-number {
    background-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.timeline-item:nth-child(4) .timeline-number:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Timeline Content */
.timeline-content {
    flex: 1;
    text-align: center;
}

.timeline-content h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    margin-bottom: 0.75rem; /* mb-3 */
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.625; /* leading-relaxed */
    transition: color 0.3s ease;
}

/* Timeline Vertical Line */
.timeline-line {
    position: absolute;
    left: 50%; /* left-1/2 */
    transform: translateX(-50%); /* -translate-x-1/2 */
    width: 0.25rem; /* w-1 = 4px */
    height: 3rem; /* h-12 = 48px */
    background: linear-gradient(to bottom, var(--primary-blue), rgba(30, 64, 175, 0.6));
    margin-top: 1rem; /* mt-4 */
    border-radius: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.timeline-line::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.6;
}

/* Hide line on last timeline item */
.timeline-item:last-child .timeline-line {
    display: none;
}

/* Desktop Styles (lg and above) */
@media (min-width: 1024px) {
    /* Timeline Item Layout */
    .timeline-item .flex {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.5rem; /* gap-6 */
    }

    /* Timeline Number Position */
    .timeline-number {
        margin: 0; /* lg:mx-0 */
    }

    /* Timeline Content Alignment */
    .timeline-content {
        text-align: left; /* lg:text-left */
    }

    /* Timeline Line Position on Desktop */
    .timeline-line {
        left: 2rem; /* lg:left-8 = 32px */
        transform: translateX(-50%);
    }

    /* Adjust line position to be exactly under the circle */
    .timeline-line {
        left: calc(2rem + 0px); /* Center under the 64px circle */
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-item {
        margin-bottom: 2rem; /* Reduce spacing on mobile */
    }

    .timeline-number {
        width: 3rem; /* Smaller circles on mobile */
        height: 3rem;
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.25rem; /* Smaller titles on mobile */
        margin-bottom: 0.5rem;
    }

    .timeline-line {
        height: 2rem; /* Shorter lines on mobile */
        width: 0.125rem; /* Thinner lines */
    }
}

/* Animation for Timeline Items - Simplified and Robust */
.timeline-item {
    opacity: 1; /* Default visible state - always visible by default */
    transform: translateY(0);
}

/* Only apply animation if JS is loaded AND user doesn't prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .timeline-item.animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .js-enabled .timeline-item.animate-on-scroll.in-view,
    .js-enabled .timeline-item.animate-on-scroll.fade-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For users who prefer reduced motion, keep items visible */
@media (prefers-reduced-motion: reduce) {
    .timeline-item {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* Staggered Animation Delays - only when JS is enabled */
.js-enabled .timeline-item:nth-child(1).animate-on-scroll {
    transition-delay: 0.1s;
}

.js-enabled .timeline-item:nth-child(2).animate-on-scroll {
    transition-delay: 0.2s;
}

.js-enabled .timeline-item:nth-child(3).animate-on-scroll {
    transition-delay: 0.3s;
}

.js-enabled .timeline-item:nth-child(4).animate-on-scroll {
    transition-delay: 0.4s;
}

/* Final Step Success Indicator */
.timeline-item:last-child .bg-green-500 {
    background-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:last-child .bg-green-500:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) 1;
}