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

:root {
    --primary: #308a3c;
    --primary-dark: #0b380b;
    --primary-light: #e8fbee;
    --accent: #00A86B;
    --accent-light: #e6f7f1;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg: #fcfce6;
    --white: #FFFFFF;
    --text: #000000;
    --text-muted: #6B7280;
    --border: #E2E8F0;
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 4px;
    --radius-lg: 6px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid rgb(255, 246, 246);
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.navbar-logo .logo-text {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.navbar-links a {
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.navbar-links a:hover,.navbar-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.navbar-cta {
    background: var(--primary) !important;
    color: white !important;
    border-radius: var(--radius) !important;
}

.navbar-cta:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

/* PAGE WRAPPER */
.page-content {
    flex: 1;
}

/* Content */
.main {
    background: var(--primary);
    color: white;
    padding: 60px 24px;
    text-align: center;
}

.main-content {
    max-width: 700px;
    margin: 0 auto;
}

.main h1 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.main p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.main-btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 11px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.main-btn:hover {
    background: #023823;
    color: rgb(247, 245, 245);
    text-decoration: none;
}


/* SECTION */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-title {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}


/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    border: 1px solid black;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* STEPS */
.steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    min-width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.step-body h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.step-body p {
    color: var(--text-muted);
    font-size: 13px;
}

/* FORM */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 640px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 5px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: #008a57;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 0.95rem;
}

/* SEARCH BAR */
.search-bar {
    display: flex;
    max-width: 580px;
    margin: 0 auto;
    border: 1.5px solid var(--border);
    background: white;
}

.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    color: var(--text);
    background: transparent;
}

.search-bar button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* MAP */
.map-container {
    border: 1px solid var(--border);
    overflow: hidden;
}

#worldMap, #stationMap {
    height: 460px;
    width: 100%;
}

/* RESULT BADGES */
.station-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
}

.badge-available {
    background: #D1FAE5;
    color: #065F46;
}

.badge-limited {
    background: #FEF3C7;
    color: #92400E;
}

.badge-full {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-empty {
    background: #F3F4F6;
    color: #374151;
}

/* CONTACT INFO */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.contact-info-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    border: 1px solid black;
}

.contact-info-item h4 {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 20px;
    color: var(--primary);
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: 18px;
}

/* CONFIRMATION */
.confirm-box {
    max-width: 500px;
    margin: 48px auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid rgb(37, 37, 37);
}

.confirm-box h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.confirm-box p {
    color: var(--text-muted);
    font-size: 20px;
    margin-bottom: 24px;
}

/* PAGE HEADER */
.page-header {
    background: var(--primary);
    color: white;
    padding: 36px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 6px;
}

.page-header p {
    opacity: 0.85;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* TWO COL LAYOUT */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 768px) {
    .two-col, .form-row {
        grid-template-columns: 1fr;
    }
}



/* Footer */
.footer {
    background: rgb(133, 133, 133);
    color: #cbcfd4;
    padding: 28px;
    text-align: center;
    font-size: 15px;
    margin-top: auto;
}

.footer strong {
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f0f5f2;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* Stat Bar */
.stat-bar {
    height: 6px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
}

.stat-bar-fill.warn {
    background: var(--warning);
}

.stat-bar-fill.danger {
    background: var(--danger);
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* Search Section */
.search-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
}

.search-section-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

#searchStatus {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    min-height: 18px;
}

/* Network Result List */
.network-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.results-panel {
    max-height: 400px;
    overflow-y: auto;
}

.network-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
    color: inherit;
}

.network-item:hover {
    border-color: var(--primary);
    text-decoration: none;
}

.network-item-left h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.network-item-left p {
    font-size: 13px;
    color: var(--text-muted);
}

.network-item-arrow {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Search History */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr:hover td {
    background: #F9FAFB;
}

