/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #334e68;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #246a28;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Modal Animation */
#leadModal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#leadModal.invisible {
    opacity: 0;
    pointer-events: none;
}

#leadModal:not(.invisible) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transition: transform 0.3s ease;
    transform: translateY(-20px) scale(0.95);
}

#leadModal:not(.invisible) .modal-content {
    transform: translateY(0) scale(1);
}

/* Professional Form Redesign */
#applicationForm input[type="text"]:not([readonly]),
#applicationForm input[type="email"],
#applicationForm input[type="tel"],
#applicationForm input[type="number"],
#applicationForm select,
#applicationForm textarea {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 100%;
}

#applicationForm input[type="text"]:not([readonly]):focus,
#applicationForm input[type="email"]:focus,
#applicationForm input[type="tel"]:focus,
#applicationForm input[type="number"]:focus,
#applicationForm select:focus,
#applicationForm textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #246a28;
    box-shadow: 0 0 0 4px rgba(38, 141, 124, 0.15);
}

#applicationForm input[readonly],
#applicationForm textarea[readonly] {
    background-color: #f1f5f9 !important;
    border: 1px dashed #cbd5e1 !important;
    color: #64748b !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    width: 100%;
}

#applicationForm label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.025em;
}

/* Fix for Tailwind flex labels being overridden by the block display above */
#applicationForm label.flex {
    display: flex !important;
    margin-bottom: 0;
}

/* Ensure checkboxes retain their proper sizes and aren't warped by global inputs */
#applicationForm input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

#applicationForm .step-content h2 {
    color: #102a43;
    font-size: 1.75rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    padding: 2rem;
}

/* Redesigned Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.step-indicator {
    z-index: 10;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
}

.step-circle.active {
    background-color: #246a28;
    border-color: #246a28;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(38, 141, 124, 0.3), 0 4px 6px -2px rgba(38, 141, 124, 0.15);
    transform: scale(1.15);
}

.step-circle.completed {
    background-color: #102a43;
    /* deep navy */
    border-color: #102a43;
    color: #ffffff;
}

.step-label {
    margin-top: 1.25rem;
    font-size: 0.675rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.step-label.active {
    color: #246a28;
}

.step-label.completed {
    color: #102a43;
}

#progress-bar-bg {
    position: absolute;
    top: 1.20rem;
    /* center of 3.5rem circle */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 0;
    border-radius: 2px;
}

#progress-bar-fill {
    position: absolute;
    top: 1.20rem;
    left: 0;
    height: 4px;
    background-color: #102a43;
    z-index: 0;
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

/* ===== Hero Section Animations ===== */

/* Gradient Mesh Background */
.hero-gradient-mesh {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(36, 106, 40, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(38, 141, 124, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(16, 42, 67, 0.2) 0%, transparent 50%);
    animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        background:
            radial-gradient(ellipse at 20% 50%, rgba(36, 106, 40, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(38, 141, 124, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 80%, rgba(16, 42, 67, 0.2) 0%, transparent 50%);
    }

    50% {
        background:
            radial-gradient(ellipse at 40% 30%, rgba(36, 106, 40, 0.18) 0%, transparent 50%),
            radial-gradient(ellipse at 70% 60%, rgba(38, 141, 124, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 70%, rgba(16, 42, 67, 0.22) 0%, transparent 50%);
    }

    100% {
        background:
            radial-gradient(ellipse at 60% 40%, rgba(36, 106, 40, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 80%, rgba(38, 141, 124, 0.18) 0%, transparent 50%),
            radial-gradient(ellipse at 70% 30%, rgba(16, 42, 67, 0.18) 0%, transparent 50%);
    }
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(36, 106, 40, 0.2);
    top: -50px;
    left: -80px;
    animation: floatOrb1 18s ease-in-out infinite;
}

.hero-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(38, 141, 124, 0.15);
    top: 60%;
    right: -60px;
    animation: floatOrb2 22s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(36, 106, 40, 0.12);
    bottom: -40px;
    left: 30%;
    animation: floatOrb3 15s ease-in-out infinite;
}

.hero-orb-4 {
    width: 150px;
    height: 150px;
    background: rgba(38, 141, 124, 0.1);
    top: 20%;
    right: 30%;
    animation: floatOrb4 20s ease-in-out infinite;
}

.hero-orb-5 {
    width: 180px;
    height: 180px;
    background: rgba(36, 106, 40, 0.08);
    top: 40%;
    left: 20%;
    animation: floatOrb5 25s ease-in-out infinite;
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, 40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 70px) scale(0.95);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, -30px) scale(1.05);
    }

    66% {
        transform: translate(40px, -60px) scale(0.9);
    }
}

@keyframes floatOrb3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(70px, -40px) scale(1.15);
    }
}

@keyframes floatOrb4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-40px, 30px) scale(1.1);
    }

    75% {
        transform: translate(30px, -20px) scale(0.9);
    }
}

@keyframes floatOrb5 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(50px, 50px) scale(1.05);
    }

    80% {
        transform: translate(-20px, -30px) scale(0.95);
    }
}

/* Grid Lines Background */
.hero-grid-lines {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* Particles */
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(36, 106, 40, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(36, 106, 40, 0.3);
}

.hero-particle-1 {
    top: 15%;
    left: 10%;
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle-2 {
    top: 25%;
    left: 85%;
    animation: particleFloat 10s ease-in-out infinite 1s;
}

.hero-particle-3 {
    top: 65%;
    left: 15%;
    animation: particleFloat 7s ease-in-out infinite 2s;
}

.hero-particle-4 {
    top: 75%;
    left: 75%;
    animation: particleFloat 9s ease-in-out infinite 0.5s;
}

.hero-particle-5 {
    top: 45%;
    left: 50%;
    animation: particleFloat 11s ease-in-out infinite 3s;
    width: 3px;
    height: 3px;
}

.hero-particle-6 {
    top: 35%;
    left: 65%;
    animation: particleFloat 8s ease-in-out infinite 1.5s;
    width: 5px;
    height: 5px;
}

.hero-particle-7 {
    top: 85%;
    left: 40%;
    animation: particleFloat 12s ease-in-out infinite 2.5s;
    width: 3px;
    height: 3px;
}

.hero-particle-8 {
    top: 10%;
    left: 55%;
    animation: particleFloat 9s ease-in-out infinite 4s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(20px, -30px) scale(1.5);
        opacity: 0.8;
    }

    50% {
        transform: translate(-15px, -50px) scale(1);
        opacity: 0.3;
    }

    75% {
        transform: translate(10px, -20px) scale(1.3);
        opacity: 0.6;
    }
}

/* Text Shimmer Effect */
.hero-text-shimmer {
    background: linear-gradient(120deg,
            #246a28 0%,
            #3a9e3f 25%,
            #246a28 50%,
            #3a9e3f 75%,
            #246a28 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Badge Glow */
.hero-badge-glow {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(36, 106, 40, 0);
    }

    50% {
        box-shadow: 0 0 15px rgba(36, 106, 40, 0.15);
    }
}

/* Floating Image */
.hero-image-float {
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Floating Cards */
.hero-float-card-1 {
    animation: floatCard1 5s ease-in-out infinite;
}

.hero-float-card-2 {
    animation: floatCard2 6s ease-in-out infinite 1s;
}

@keyframes floatCard1 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

/* Border Glow */
.hero-border-glow {
    animation: borderGlow 4s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

/* Hero Background Zoom (Ken Burns) */
.hero-bg-zoom {
    animation: bgZoom 25s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

/* Hero Stat Counter */
.hero-stat-counter {
    text-shadow: 0 0 30px rgba(36, 106, 40, 0.15);
}