/* Design Token Variables with Logo Colors (Navy & Emerald Green) */
:root {
    --primary: #0F2C59;
    --primary-hover: #081B38;
    --accent-green: #15803D;
    --accent-green-hover: #166534;
    --green-bg-light: #F0FDF4;
    --green-border: #BBF7D0;
    --accent-gold: #F4C430;
    --bg-main: #F1F5F9;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --tool-border: #CBD5E1;
    --tool-header-bg: #F8FAFC;
    --tool-btn: #5A6B7C;
    --tool-btn-hover: #3B4754;
    --active-blue: #1D70B8;
    --text-color: #1E293B;
    --text-muted: #475569;
    --link-color: #0F2C59;
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 44, 89, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* 1280px Max Width Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 4px solid var(--accent-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
}

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

.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

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

.nav-link.official-link {
    color: #FFFFFF;
    background-color: var(--accent-green);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link.official-link:hover {
    background-color: var(--accent-green-hover);
    color: #FFFFFF;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse 1.6s infinite;
}

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

/* Hamburger Icon on Mobile */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Main Layout & Compact Spacing */
.main-content {
    padding-top: 24px;
    padding-bottom: 32px;
}

/* Requirement 1: Single H1 Above Tool Section */
.main-h1 {
    text-align: center;
    color: var(--accent-green);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
}

/* Centered Top Tool Section */
.tool-section {
    max-width: 780px;
    margin: 0 auto 24px auto;
    width: 100%;
}

.tool-card {
    background-color: var(--card-bg);
    border: 1px solid var(--tool-border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tool-card-header {
    background-color: var(--tool-header-bg);
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--tool-border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.tool-card-body {
    padding: 22px;
}

.tool-form-layout {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: max-content;
    white-space: nowrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-green);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.input-wrapper {
    flex: 1;
    min-width: 0;
}

.tool-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border: 2px solid var(--tool-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.tool-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}

.area-selector-stack {
    display: flex;
    align-items: center;
}

/* Requirement 3: Clean Select Dropdown for U & R */
.tool-select-dropdown {
    padding: 10px 28px 10px 16px;
    height: 46px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #000000;
    cursor: pointer;
    outline: none;
    min-width: 68px;
    text-align: center;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px;
}

.tool-select-dropdown:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.tool-action {
    margin-top: 18px;
    text-align: left;
}

.search-btn {
    background-color: var(--accent-green);
    color: #FFFFFF;
    border: none;
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

.search-btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-1px);
}

/* Banner Image Directly Below Tool */
.banner-wrapper {
    max-width: 780px;
    text-align: center;
    margin: 0 auto 28px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.responsive-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Responsive Image Container */
.content-img-wrapper {
    margin: 18px 0;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: #FFFFFF;
    padding: 8px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: var(--radius-sm);
}

/* Custom List Styling */
.custom-list {
    margin: 12px 0 16px 24px;
    color: #334155;
    line-height: 1.7;
}

.custom-list li {
    margin-bottom: 6px;
}

/* Custom Step Card matching User Screenshot */
.custom-step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.step-card-custom {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--accent-green);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.08);
    border-color: #CBD5E1;
    border-left-color: var(--accent-green);
}

.step-circle-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    background-color: var(--accent-green);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.2);
}

.step-content-body {
    flex: 1;
}

.step-title, h3.step-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 4px;
    line-height: 1.3;
}

.step-text {
    font-size: 0.98rem;
    color: #334155;
    margin: 0 !important;
    line-height: 1.5;
}

/* Main Article & Professional Sections */
.content-article {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.intro-box {
    background-color: var(--green-bg-light);
    border-left: 4px solid var(--accent-green);
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.intro-box p {
    color: #1E293B;
    font-size: 18px;
    line-height: 1.65;
}

.content-section {
    margin-top: 32px;
}

.content-section h2, h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.content-section h3, h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 18px;
    margin-bottom: 10px;
}

.content-section p, .content-article p {
    margin-bottom: 12px;
    color: #334155;
    font-size: 18px;
}

.content-article a {
    color: var(--link-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
}

.content-article a:hover {
    color: var(--accent-green);
}

/* Professional Table Design */
.table-responsive {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    text-align: left;
}

.info-table th {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 12px 18px;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-green);
}

.info-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
}

.info-table tr:nth-child(even) {
    background-color: #F8FAFC;
}

.info-table tr:hover {
    background-color: var(--green-bg-light);
}

/* Grid Layouts for Guides */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.guide-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.point-box {
    background-color: #F8FAFC;
    border-left: 3px solid var(--accent-green);
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.point-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.green-tag {
    background-color: var(--green-bg-light);
    color: var(--accent-green);
    border: 1px solid var(--green-border);
}

.blue-tag {
    background-color: #EFF6FF;
    color: var(--active-blue);
    border: 1px solid #BFDBFE;
}

/* QR Block */
.qr-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.qr-block {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.qr-block.highlight-subsidy {
    border: 1px solid var(--green-border);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--green-bg-light) 100%);
}

/* Callout Box */
.notice-callout {
    background-color: #EFF6FF;
    border-left: 4px solid var(--active-blue);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-icon {
    font-size: 1.3rem;
}

/* Contact Us Grid & Form Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-top: 20px;
}

.contact-form-card, .contact-info-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-form-card {
    border-top: 4px solid var(--accent-green);
}

.contact-info-card {
    border-top: 4px solid var(--primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.98rem;
    border: 1px solid var(--tool-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.submit-contact-btn {
    background-color: var(--accent-green);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.submit-contact-btn:hover {
    background-color: var(--accent-green-hover);
}

.contact-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 10px;
}

.alert-success {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.info-pill {
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
    font-size: 0.92rem;
}

.info-pill strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
}

/* Offline & Status Grids */
.offline-grid, .status-grid, .breakdown-grid, .troubleshoot-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.offline-card, .status-box, .breakdown-card, .troubleshoot-card, .service-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.status-badge {
    display: inline-block;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.green-bg { background-color: var(--accent-green); }
.blue-bg { background-color: var(--primary); }

/* Rules Box */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.rule-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent-green);
    background-color: var(--green-bg-light);
}

.rule-box.warning-box {
    border-left-color: var(--accent-gold);
    background-color: #FEFCE8;
}

.rule-box.alert-box {
    border-left-color: #EF4444;
    background-color: #FEF2F2;
}

/* Contact Pills */
.contact-pill {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.green-pill {
    background-color: var(--green-bg-light);
    border: 1px solid var(--green-border);
}

.blue-pill {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.pill-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

/* FAQ Styling using H3 */
.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.faq-item {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.faq-q, h3.faq-q {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.q-badge, .a-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.q-badge {
    background-color: var(--accent-green);
    color: #FFFFFF;
}

.a-badge {
    background-color: var(--primary);
    color: #FFFFFF;
}

.faq-a {
    color: #334155;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Final Words Box */
.final-words-section .final-box {
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-green);
    padding: 22px;
    border-radius: var(--radius-md);
}

/* Footer Styling with Nav Links */
.site-footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 36px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #4ADE80;
}

.site-footer p a {
    color: #4ADE80;
    text-decoration: none;
    font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-bottom: 3px solid var(--accent-green);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        color: #E2E8F0;
        width: 100%;
        padding: 8px 12px;
    }

    .nav-link:hover, .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
    }
}

@media (max-width: 640px) {
    .header-container {
        gap: 12px;
    }

    .main-h1 {
        font-size: 26px;
    }

    .content-section h2, h2 {
        font-size: 25px;
    }

    .content-section h3, h3 {
        font-size: 20px;
    }

    body, p, .content-section p, .intro-box p, .content-article p {
        font-size: 17px;
    }

    .tool-card-body {
        padding: 16px 12px;
    }

    .tool-form-layout {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .radio-group {
        flex-direction: column;
        gap: 6px;
        min-width: max-content;
    }

    .radio-label {
        font-size: 0.88rem;
        gap: 5px;
    }

    .radio-label input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .input-wrapper {
        flex: 1;
        min-width: 0;
    }

    .tool-input {
        height: 44px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .tool-select-dropdown {
        height: 44px;
        min-width: 58px;
        padding: 4px 22px 4px 8px;
        font-size: 0.98rem;
        background-position: right 6px center;
        background-size: 12px;
    }

    .search-btn {
        padding: 10px 24px;
        font-size: 0.98rem;
    }

    .content-article {
        padding: 18px;
    }

    .faq-container {
        grid-template-columns: 1fr;
    }

    .step-card-custom {
        padding: 14px;
        gap: 12px;
    }

    .step-circle-badge {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0.9rem;
    }
}
