@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --primary: #065f57;
    --primary-light: #0d8076;
    --primary-dark: #043e39;
    --primary-surface: #edf7f6;
    --primary-border: #c6e3e0;
    --accent: #d49a24;
    --accent-light: #fff8eb;
    --accent-dark: #a17210;
    --accent-border: #f9e2b0;
    --text: #132a32;
    --text-muted: #576d75;
    --text-light: #8397a0;
    --border: #e0e7ea;
    --border-light: #eef3f5;
    --surface: #ffffff;
    --surface-subtle: #f8fafb;
    --background: #f2f7f7;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 3px rgba(19, 42, 50, 0.04);
    --shadow-sm: 0 2px 8px -1px rgba(19, 42, 50, 0.06);
    --shadow-md: 0 10px 30px -4px rgba(6, 95, 87, 0.08), 0 2px 10px -2px rgba(19, 42, 50, 0.04);
    --shadow-lg: 0 18px 42px -6px rgba(6, 95, 87, 0.12), 0 4px 14px -2px rgba(19, 42, 50, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(6, 95, 87, 0.20);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--background);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-announcement {
    background: linear-gradient(90deg, #032b27 0%, #065f57 50%, #032b27 100%);
    color: #e2f4f2;
    font-size: 13px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(212, 154, 36, 0.25);
}

.top-announcement-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    flex-wrap: wrap;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    background: rgba(212, 154, 36, 0.2);
    border: 1px solid rgba(212, 154, 36, 0.4);
    border-radius: var(--radius-full);
    color: #ffd885;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.announcement-text {
    font-weight: 500;
}

.announcement-link {
    color: #ffd885;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.announcement-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav {
    width: min(1220px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.brand img {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 5px;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-form {
    margin: 0;
}

/* Language switch segmented control */
.language-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: #ecf3f3;
    position: relative;
}

.language-option {
    min-height: 32px;
    padding: 4px 12px;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    color: var(--primary);
}

.language-option.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(6, 95, 87, 0.12);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
    background: var(--surface-subtle);
    border-color: var(--primary-border);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

/* Mobile Backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 30, 36, 0.45);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.nav-backdrop.is-active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Buttons & Common UI
   ========================================================================== */
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(6, 95, 87, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 95, 87, 0.26);
    color: #ffffff;
}

button:active, .button:active {
    transform: translateY(0);
}

.button.secondary, button.secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    box-shadow: var(--shadow-xs);
}

.button.secondary:hover, button.secondary:hover {
    background: var(--primary-surface);
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.button.gold, button.gold {
    background: linear-gradient(135deg, #e4a72d 0%, #c48b16 100%);
    color: #2b1f02;
    border: 1px solid #f6cf7d;
    box-shadow: 0 4px 14px rgba(212, 154, 36, 0.28);
}

.button.gold:hover, button.gold:hover {
    background: linear-gradient(135deg, #f0b53c 0%, #d49a24 100%);
    color: #171000;
    box-shadow: 0 8px 22px rgba(212, 154, 36, 0.38);
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: none;
}

.button.ghost:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.button.sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.button.lg {
    min-height: 50px;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
main {
    width: min(1220px, calc(100% - 32px));
    flex: 1;
    margin: 0 auto;
    padding: 40px 0 64px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
    background: linear-gradient(145deg, #032d28 0%, #065f57 55%, #054a43 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 56px 52px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(212, 154, 36, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(13, 128, 118, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    color: #e2f4f2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.hero-badge-strip i {
    color: #ffd885;
}

.hero h1 {
    margin: 0 0 18px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 700;
    line-height: 1.14;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hero p {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.65;
    color: #d1e7e4;
    max-width: 660px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e2f4f2;
    font-size: 13px;
    font-weight: 600;
}

.hero-trust-item i {
    color: #ffd885;
    font-size: 15px;
}

/* Hero Right: Modern Portal Card */
.hero-card {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.hero-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 4px;
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-surface);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-card-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-card-features {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-card-feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
}

.hero-card-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* ==========================================================================
   Statistics Strip
   ========================================================================== */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: -10px 0 48px;
    position: relative;
    z-index: 3;
}

.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-surface);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Grid & Service Cards
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-surface);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.card:hover .card-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ==========================================================================
   How It Works Process Section
   ========================================================================== */
.process-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 24px 20px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
}

.step-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(6, 95, 87, 0.25);
}

.process-step h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 8px;
}

.process-step p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   Covered Villages Showcase
   ========================================================================== */
.villages-section {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-subtle) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
}

.village-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 20px;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.village-cloud.is-expanded {
    max-height: 1200px;
}

.village-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.village-pill i {
    color: var(--primary);
    font-size: 11px;
}

.village-pill:hover {
    background: var(--primary-surface);
    border-color: var(--primary-border);
    color: var(--primary);
    transform: translateY(-1px);
}

.village-expand-row {
    text-align: center;
    margin-top: 16px;
}

/* ==========================================================================
   Why Choose JMTOA Section
   ========================================================================== */
.why-section {
    margin-bottom: 48px;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid var(--accent-border);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 6px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   Call To Action (CTA) Banner
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, #032b27 0%, #065f57 55%, #0d8076 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 50px 48px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 50%, rgba(212, 154, 36, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    margin: 0 0 10px;
    color: #ffffff;
}

.cta-content p {
    font-size: 16px;
    color: #d1e7e4;
    margin: 0;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Panels, Forms, Alerts & Existing Compatibility
   ========================================================================== */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 95, 87, 0.12);
}

.phone-input-row {
    display: grid;
    grid-template-columns: minmax(125px, 0.8fr) minmax(0, 2fr);
    gap: 8px;
}

.phone-input-row select {
    min-width: 0;
    padding-right: 28px;
    font-size: 14px;
}

.phone-input-row input {
    min-width: 0;
}

/* Searchable village Select2 */
.field .select2-container {
    display: block;
    width: 100% !important;
}

.field .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.field .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 46px;
    padding: 10px 44px 10px 14px;
    color: var(--text);
    font-size: 15px;
    line-height: 24px;
}

.field .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted);
}

.field .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 12px;
    width: 24px;
    height: 46px;
}

.field .select2-container--default .select2-selection--single .select2-selection__arrow b {
    left: 4px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border: solid var(--text-muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.field .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 95, 87, 0.12);
}

.field .select2-container--default.select2-container--open .select2-selection__arrow b {
    margin-top: -2px;
    transform: rotate(225deg);
}

.village-select2-dropdown {
    width: 220px !important;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(19, 42, 50, 0.16);
}

.village-select2-dropdown .select2-search {
    padding: 8px;
    position: relative;
}

.village-select2-dropdown .select2-search::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 21px;
    top: 23px;
    width: 10px;
    height: 10px;
    border: 2px solid #9aa8ad;
    border-radius: 50%;
}

.village-select2-dropdown .select2-search::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 31px;
    top: 33px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: #9aa8ad;
    transform: rotate(45deg);
}

.village-select2-dropdown .select2-search--dropdown .select2-search__field {
    height: 44px;
    padding: 10px 12px 10px 38px;
    border: 1px solid #dfe7e9;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.village-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 95, 87, 0.10);
}

.village-select2-dropdown .select2-results {
    max-height: 260px;
}

.village-select2-dropdown .select2-results__options {
    max-height: 260px;
    padding: 4px;
}

.village-select2-dropdown .select2-results__option {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}

.village-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary-surface);
    color: var(--primary-dark);
}

.village-select2-dropdown .select2-results__option--selected {
    background: #eef3f5;
    color: var(--text);
}

@media (max-width: 576px) {
    .village-select2-dropdown {
        max-width: calc(100vw - 32px);
    }
}

.notice {
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #724c04;
    font-size: 14px;
    margin-bottom: 20px;
}

.errors {
    width: min(650px, calc(100% - 32px));
    margin: 16px auto 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff7f7;
    border: 1px solid #efb4b4;
    border-left: 5px solid #dc2626;
    color: #991b1b;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(153, 27, 27, 0.08);
}

.errors ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.field-error {
    margin: 7px 0 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.field-error a {
    margin-left: 5px;
    color: #991b1b;
    text-decoration: underline;
}

.login-otp-entry {
    margin: 20px 0;
}

.otp-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 48px 18px;
    background: radial-gradient(ellipse at 50% 0%, #e8f3ef 0, transparent 58%);
}

.otp-card {
    width: min(100%, 480px);
    padding: 34px;
    border: 1px solid #e3ebe8;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(19, 58, 52, 0.1);
    text-align: center;
}

.otp-back {
    display: block;
    color: #56716c;
    text-align: left;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.otp-mark {
    width: 58px;
    height: 58px;
    margin: 24px auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #e9f4ef;
    color: #18755f;
    font-size: 25px;
}

.otp-eyebrow {
    margin: 0;
    color: #18755f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.otp-card h1 {
    margin: 8px 0;
    color: #183b35;
    font-size: 30px;
}

.otp-copy {
    max-width: 350px;
    margin: 0 auto;
    color: #71817e;
    font-size: 14px;
    line-height: 1.65;
}

.otp-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 20px auto 24px;
    padding: 10px 15px;
    border-radius: 30px;
    background: #f4f8f6;
    color: #314e48;
    font-size: 15px;
    font-weight: 800;
}

.otp-entry {
    margin-bottom: 20px;
    text-align: left;
}

.otp-entry label {
    display: block;
    margin-bottom: 12px;
    color: #46615b;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-boxes input {
    width: 52px;
    height: 58px;
    border: 1px solid #d8e4e0;
    border-radius: 13px;
    background: #fbfdfc;
    color: #183b35;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    outline: none;
    transition: 0.2s;
}

.otp-boxes input:focus {
    border-color: #17806a;
    box-shadow: 0 0 0 4px rgba(23, 128, 106, 0.12);
    background: #fff;
}

.otp-primary {
    width: 100%;
    min-height: 50px;
    margin-top: 5px;
    border: 0;
    border-radius: 12px;
    background: #176c5a;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.otp-primary:hover {
    background: #105644;
}

.otp-resend {
    margin: 14px 0 0;
    color: #7b8c88;
    font-size: 12px;
}

.otp-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.otp-error {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #fff1f0;
    color: #a42e25;
    font-size: 13px;
}

.otp-secure {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #edf1ef;
    color: #7b8c88;
    font-size: 12px;
}

.otp-secure i {
    margin-right: 5px;
    color: #17806a;
}

.login-otp-entry > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.login-otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.login-otp-digit {
    width: 52px;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
    color: var(--text);
    text-align: center;
    font: inherit;
    font-size: 24px;
    font-weight: 800;
}

.login-otp-digit:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(6, 95, 87, 0.12);
    background: var(--surface);
}

.login-otp-entry button {
    width: 100%;
}

.login-otp-error {
    margin: 12px 0;
    padding: 11px 14px;
    border: 1px solid #efb4b4;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    background: #fff7f7;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
    border-color: #dc2626;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.field.is-invalid .select2-container--default .select2-selection--single {
    border-color: #dc2626;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

@media (max-width: 480px) {
    .otp-card {
        padding: 27px 18px;
        border-radius: 20px;
    }

    .otp-boxes {
        gap: 7px;
    }

    .otp-boxes input {
        width: min(12vw, 48px);
        height: 54px;
    }

    .login-otp-boxes {
        gap: 7px;
    }

    .login-otp-digit {
        width: min(12vw, 48px);
        height: 54px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.muted {
    color: var(--text-muted);
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-surface);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status.pending {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.status.rejected {
    background: #fde8e8;
    color: #b91c1c;
}

.status.confirmed {
    background: #e6f7ec;
    color: #15803d;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th, td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface-subtle);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #02201d;
    color: #c4d7d5;
    padding: 56px 0 28px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
    gap: 40px;
    margin-bottom: 44px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand img {
    height: 42px;
    width: auto;
    display: block;
}

.footer-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #9ab4b1;
    margin: 0;
    max-width: 360px;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #9ab4b1;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffd885;
    transform: translateX(3px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #799794;
}

/* ==========================================================================
   Mobile & Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .top-announcement {
        font-size: 12px;
        padding: 6px 12px;
    }
    .nav {
        min-height: 66px;
        padding: 8px 0;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--surface);
        padding: 24px 20px;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        z-index: 1001;
        overflow-y: auto;
        transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        margin: 0;
    }
    .nav-menu.is-open {
        right: 0;
    }
    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 12px;
    }
    .nav-menu-close {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: transparent;
        color: var(--text);
        display: grid;
        place-items: center;
        font-size: 18px;
        cursor: pointer;
    }
    .nav-link {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }
    .nav-link:hover {
        background: var(--primary-surface);
    }
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
    .nav-actions .button {
        width: 100%;
    }
    .hero-wrapper {
        padding: 36px 24px;
        border-radius: var(--radius-lg);
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 15px;
    }
    .stats-strip {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .feature-cards-grid {
        grid-template-columns: 1fr;
    }
    .process-section {
        padding: 32px 20px;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .villages-section {
        padding: 32px 20px;
    }
    .cta-banner {
        flex-direction: column;
        padding: 36px 24px;
        align-items: flex-start;
    }
    .cta-actions {
        width: 100%;
    }
    .cta-actions .button {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
