:root {
    --primary: #059669; /* Forest Emerald Green */
    --primary-rgb: 5, 150, 105;
    --primary-dark: #047857;
    --primary-light: rgba(5, 150, 105, 0.08);
    --accent: #d97706; /* Rich Amber Gold */
    --accent-rgb: 217, 119, 6;
    --accent-hover: #b45309;
    --bg-body: #f4f6f5; /* Premium Light Gray-Green/Cream */
    --bg-card: rgba(255, 255, 255, 0.7); /* Translucent white glass */
    --text-light: #0f172a; /* Slate Dark Gray for Headings */
    --text-muted: #475569; /* Slate Muted Gray for Body */
    --glass-bg: rgba(255, 255, 255, 0.65); /* Frosty white glass */
    --glass-border: rgba(5, 150, 105, 0.12); /* Subtle green border */
    --glass-hover: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 15px 35px rgba(2, 44, 34, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f6f5;
}
::-webkit-scrollbar-thumb {
    background: rgba(5, 150, 105, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(5, 150, 105, 0.4);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(244, 246, 245, 0.93), rgba(238, 242, 240, 0.97)), url('farm_bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow layers for Light Mode */
body::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header / Navbar Styling */
header {
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 14px 80px;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    line-height: 1;
    color: #0f172a;
}

.logo-main span {
    color: var(--primary);
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-icon-svg {
    width: 42px;
    height: 42px;
    fill: var(--primary);
    filter: drop-shadow(0 2px 6px rgba(5, 150, 105, 0.25));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

nav a {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    transition: var(--transition);
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
}

nav a:hover {
    opacity: 1;
    background: var(--glass-bg);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    color: var(--primary);
}

nav a.nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
    opacity: 1;
}

nav a.nav-cta:hover {
    background: #0f172a;
    border-color: #0f172a !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
    color: #ffffff !important;
}

nav a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* Hamburger Menu Icon for Mobile */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: var(--glass-bg);
}

.hamburger-btn svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Hero / Main Container Grid */
.hero-section {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 80px 40px 80px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: start;
    flex-grow: 1;
}

/* Left Banner Section */
.left-banner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 10px;
}

.portal-status-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.18);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.main-title-box h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    background: linear-gradient(135deg, #0f172a 40%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-title-box h1 span {
    color: var(--primary);
    -webkit-text-fill-color: initial;
}

.main-title-box h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #334155;
    margin-top: 10px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.main-title-box h2 span.state-name-placeholder {
    color: var(--accent);
    border-bottom: 2px dashed rgba(217, 119, 6, 0.4);
    padding-bottom: 2px;
}

/* Description Box */
.info-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.info-box:hover {
    border-color: rgba(5, 150, 105, 0.3);
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.info-icon {
    background: var(--primary-dark);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.info-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
}

/* Bullet Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    padding: 18px 22px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.feature-item:hover {
    background: #ffffff;
    border-color: rgba(5, 150, 105, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2, 44, 34, 0.05);
}

.feature-circle {
    width: 48px;
    height: 48px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary) !important;
    transition: var(--transition);
}

.feature-item:hover .feature-circle {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.feature-circle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.feature-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Large Action Buttons */
.actions-box {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn-action {
    flex: 1;
    background: var(--glass-bg);
    color: var(--text-light);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.btn-action:hover {
    transform: translateY(-3px);
    background: var(--glass-hover);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 10px 25px rgba(2, 44, 34, 0.05);
    color: var(--primary);
}

.btn-action.btn-action-primary {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.2);
}

.btn-action.btn-action-primary:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.btn-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Helpline Pill */
.helpline-badge {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.helpline-badge:hover {
    border-color: var(--accent);
    background: rgba(217, 119, 6, 0.03);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08);
}

.helpline-badge svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.2;
}

.helpline-badge strong {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 2px;
}

/* Right Column Form & ID Card preview stack */
.right-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

/* Interactive 3D Card Preview */
.card-preview-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flip-card {
    width: 100%;
    height: 252px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(2, 44, 34, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Front Side styling: PREMIUM CREAM SMART CARD */
.card-front {
    background: linear-gradient(135deg, #fcfdfc 0%, #f3f7f4 60%, #e9efe9 100%);
    color: #1e293b;
}

/* Card Header */
.card-header-bar {
    background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    height: 4px;
    width: 100%;
}

.card-top {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    background: rgba(5, 150, 105, 0.04);
}

.card-top svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.card-top-text {
    display: flex;
    flex-direction: column;
}

.card-top-title-hi {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #475569 !important;
}

.card-top-title-en {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #0f172a !important;
}

/* Card Content Body */
.card-body {
    flex-grow: 1;
    padding: 16px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

/* Front details shine effect */
.card-front::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: 1s ease;
    pointer-events: none;
}

.flip-card:hover .card-front::after {
    left: 150%;
}

.card-photo {
    width: 82px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid rgba(5, 150, 105, 0.12);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-row {
    display: flex;
    font-size: 0.78rem;
    line-height: 1.3;
}

.card-label {
    width: 58px;
    font-weight: 600;
    color: var(--primary) !important;
}

.card-val {
    font-weight: 500;
    color: #1e293b !important;
}

.card-val-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a !important;
}

/* Detailed Golden Smart Chip Mockup */
.card-chip {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 32px;
    height: 26px;
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-chip::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, transparent 48%, rgba(0,0,0,0.1) 48%, rgba(0,0,0,0.1) 52%, transparent 52%),
                linear-gradient(0deg, transparent 48%, rgba(0,0,0,0.1) 48%, rgba(0,0,0,0.1) 52%, transparent 52%);
}

.card-bottom-row {
    padding: 10px 18px;
    background: rgba(5, 150, 105, 0.05);
    border-top: 1px solid rgba(5, 150, 105, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-id-label {
    font-size: 0.7rem;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.card-id-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent) !important;
    letter-spacing: 1.5px;
}

.card-qr-box {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(2, 44, 34, 0.08);
    flex-shrink: 0;
}

.card-qr-box svg {
    width: 100%;
    height: 100%;
}

/* Back Side styling */
.card-back {
    background: #fdfdfd;
    color: #1f2937;
    transform: rotateY(180deg);
    border: 2px solid var(--primary-light);
}

.card-back-header {
    background: #047857;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-back-seal {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.card-back-body {
    padding: 14px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.75rem;
}

.card-back-address {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.card-back-address-title {
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.card-back-address-text {
    color: #374151;
    font-weight: 500;
    line-height: 1.45;
}

.card-back-land {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-back-land-title {
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.card-back-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2px;
}

.card-back-table th, .card-back-table td {
    border: 1px solid #d1d5db;
    padding: 5px 8px;
    text-align: center;
}

.card-back-table th {
    background: #f0fdf4;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.7rem;
}

.card-back-table td {
    font-weight: 600;
    color: #4b5563;
}

.card-back-footer {
    background: #f3f4f6;
    padding: 8px 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
}

/* Card controller manual flip badge */
.card-flip-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.card-flip-btn:hover {
    background: var(--glass-hover);
    color: var(--primary);
    border-color: rgba(5, 150, 105, 0.35);
    transform: scale(1.03);
}

/* Portal Card Layout (Forms Box) */
.portal-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 35px 30px;
    box-shadow: var(--card-shadow);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.welcome-back-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: -0.5px;
}

.welcome-back-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 25px;
    text-align: center;
}

/* Tabs Switch Header */
.tabs-header {
    display: flex;
    width: 100%;
    background: rgba(244, 246, 245, 0.8);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 26px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: #ffffff !important;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.tab-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* Forms Container */
.forms-container {
    width: 100%;
    position: relative;
}

.portal-form {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 18px;
}

.portal-form.active {
    display: flex;
    animation: formFadeIn 0.5s ease forwards;
}

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

/* Input Controls */
.form-group {
    position: relative;
    width: 100%;
}

.form-group svg.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.2;
    pointer-events: none;
    transition: var(--transition);
    opacity: 0.85;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    background-color: #ffffff;
    transition: var(--transition);
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-input:focus + svg.input-icon {
    transform: translateY(-50%) scale(1.05);
    stroke: var(--primary-dark);
    opacity: 1;
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.6;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Forgot password link */
.forgot-link-box {
    text-align: right;
    margin-top: -6px;
}

.forgot-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Submit buttons */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.2);
    transition: var(--transition);
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #0f172a;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Card Footer Safety Badge */
.safety-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    font-weight: 600;
}

.safety-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2.2;
}

/* Mobile Centered Headers (Hidden on Desktop) */
.mobile-header-text {
    display: none;
    text-align: center;
    margin-bottom: 25px;
}

.mobile-header-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-header-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.5px;
    margin: 4px 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Statistics Dashboard Section */
.stats-dashboard {
    padding: 60px 80px 40px 80px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 150, 105, 0.35);
    background: var(--glass-hover);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary) !important;
    margin-bottom: 6px;
    letter-spacing: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.stat-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* "How It Works" Section */
.how-it-works-section {
    padding: 60px 80px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0f172a 60%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 35px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--card-shadow);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 150, 105, 0.35);
    background: var(--glass-hover);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(5, 150, 105, 0.05);
    line-height: 1;
    transition: var(--transition);
    user-select: none;
}

.step-card:hover .step-number {
    color: rgba(5, 150, 105, 0.12);
    transform: scale(1.05);
}

.step-icon-wrapper {
    width: 72px;
    height: 72px;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 8px;
    border: 1px solid rgba(5, 150, 105, 0.15);
    transition: var(--transition);
}

.step-card:hover .step-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
    transform: rotate(5deg);
}

.step-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.step-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* "Why Register" detailed benefit cards */
.benefits-section {
    padding: 60px 80px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-details-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.benefit-details-card:hover {
    border-color: rgba(5, 150, 105, 0.35);
    background: var(--glass-hover);
    transform: translateY(-4px);
}

.benefit-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.benefit-details-card:hover .benefit-icon-box {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
    transform: scale(1.05);
}

.benefit-icon-box svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.benefit-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.benefit-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Interactive Scheme Sandbox Simulator Widget */
.sandbox-section {
    padding: 60px 80px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sandbox-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--card-shadow);
}

.sandbox-left h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.sandbox-left p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.sandbox-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sandbox-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sandbox-select {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--card-shadow);
}

.sandbox-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.15);
}

.sandbox-select option {
    background-color: #ffffff;
    color: #0f172a;
}

.sandbox-right {
    background: rgba(244, 246, 245, 0.7) !important;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(2, 44, 34, 0.03);
}

.sandbox-results-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.sandbox-placeholder-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sandbox-placeholder-state svg {
    width: 48px;
    height: 48px;
    stroke: rgba(5, 150, 105, 0.25);
    fill: none;
    stroke-width: 1.5;
}

.sandbox-scheme-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sandbox-scheme-item {
    background: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(2, 44, 34, 0.02);
    animation: schemeFadeIn 0.35s ease forwards;
}

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

.sandbox-scheme-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    stroke-width: 2.8;
    fill: none;
    flex-shrink: 0;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 60px 80px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 35px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.faq-item:hover {
    border-color: rgba(5, 150, 105, 0.3);
    background: var(--glass-hover);
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 22px 26px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.faq-question-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    stroke-width: 2.8;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active {
    border-color: rgba(5, 150, 105, 0.4);
    background: var(--glass-hover);
}

.faq-item.active .faq-question-btn svg {
    transform: rotate(45deg);
    stroke: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 26px 22px 26px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    border-top: 1px solid rgba(5, 150, 105, 0.08);
    padding-top: 14px;
}

/* Decorative Leaf Separator */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
}

.separator-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0), rgba(5, 150, 105, 0.5) 50%, rgba(5, 150, 105, 0));
    width: 100px;
}

.separator svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

/* Sticky bottom nav bar for mobile screens */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.bottom-nav ul {
    display: flex;
    width: 100%;
    list-style: none;
}

.bottom-nav li {
    flex: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.bottom-nav li:last-child {
    border-right: none;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.bottom-nav a.active, .bottom-nav a:hover {
    color: var(--primary);
    background: rgba(5, 150, 105, 0.05);
}

.bottom-nav a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* Footer Styles: Deep Dark Anchored Footer */
footer.site-footer {
    background: #061915;
    color: #94a3b8;
    padding: 80px 20px 100px 20px;
    border-top: 1px solid rgba(5, 150, 105, 0.3);
    width: 100%;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-header {
    text-align: center;
}

.footer-header h3 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.footer-header p {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* Search input above states */
.state-search-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.state-search-box {
    width: 100%;
    padding: 16px 20px 16px 54px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 14px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    font-weight: 500;
}

.state-search-box:focus {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.3);
}

.state-search-wrapper svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.2;
    pointer-events: none;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    transition: var(--transition);
}

.state-link {
    color: #94a3b8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.state-link:hover {
    color: #ffffff;
    background: rgba(5, 150, 105, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.2);
}

.state-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    opacity: 0.6;
    transition: transform 0.25s ease, opacity 0.2s;
}

.state-link:hover svg {
    opacity: 1;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    background: #20ba5a;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Responsive styling */
@media (max-width: 1200px) {
    header {
        padding: 15px 40px;
    }
    header.scrolled {
        padding: 12px 40px;
    }
    .hero-section {
        padding: 40px;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
    .stats-dashboard {
        padding: 30px 40px;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .how-it-works-section {
        padding: 50px 40px;
    }
    .benefits-section {
        padding: 50px 40px;
    }
    .sandbox-section {
        padding: 50px 40px;
    }
    .faq-section {
        padding: 50px 40px;
    }
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .left-banner {
        align-items: center;
        text-align: center;
    }
    .portal-status-badge {
        align-self: center;
    }
    .main-title-box h1 {
        font-size: 3rem;
    }
    .main-title-box h2 {
        justify-content: center;
    }
    .helpline-badge {
        align-self: center;
    }
    .sandbox-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    header {
        padding: 15px 20px;
    }
    header.scrolled {
        padding: 10px 20px;
    }

    nav {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .hero-section {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-banner {
        display: none;
    }

    .mobile-header-text {
        display: block;
    }

    .portal-card {
        padding: 30px 20px;
        box-shadow: 0 15px 35px rgba(2, 44, 34, 0.08);
    }

    .bottom-nav {
        display: block;
    }
    
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .stats-dashboard {
        padding: 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 1.9rem;
    }

    .how-it-works-section {
        padding: 40px 20px;
    }

    .benefits-section {
        padding: 40px 20px;
    }

    .sandbox-section {
        padding: 40px 20px;
    }

    .faq-section {
        padding: 40px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    footer.site-footer {
        padding: 40px 20px 110px 20px;
    }

    .states-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .state-link {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}
