/* =====================================================
   Excise and Taxation Department - Govt Style UI
   File: assets/css/style.css
===================================================== */

:root {
    --primary: #075f46;
    --primary-dark: #043d2d;
    --primary-soft: #e8f5ef;
    --secondary: #0f766e;
    --gold: #d4a017;
    --gold-dark: #a97905;
    --accent-light: #fff6dc;

    --bg: #f3f6f8;
    --white: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d8e0e7;

    --danger-bg: #fde8e8;
    --danger-text: #991b1b;
    --success-bg: #dcfce7;
    --success-text: #166534;

    --shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(7, 95, 70, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(212, 160, 23, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
}

/* =====================================================
   Top Government Bar
===================================================== */

.top-gov-bar {
    background: #062f23;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-gov-content {
    padding-top: 9px;
    padding-bottom: 9px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* =====================================================
   Header / Navigation
===================================================== */

.site-header {
    background:
        linear-gradient(135deg, rgba(4, 61, 45, 0.98), rgba(7, 95, 70, 0.98)),
        radial-gradient(circle at top right, rgba(212, 160, 23, 0.35), transparent 35%);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -120px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.site-header::after {
    content: "GB";
    position: absolute;
    right: 44px;
    bottom: -30px;
    font-size: 110px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.045);
    letter-spacing: -6px;
}

.header-inner {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-area h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.brand-area p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.19);
    transform: translateY(-1px);
}

/* =====================================================
   Government Hero Homepage
===================================================== */

.gov-hero {
    margin-top: 26px;
    min-height: 430px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(4, 61, 45, 0.96), rgba(7, 95, 70, 0.94)),
        radial-gradient(circle at top right, rgba(212, 160, 23, 0.34), transparent 36%);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    color: white;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    padding: 46px;
}

.gov-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.gov-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.18);
}

.gov-hero-content {
    position: relative;
    z-index: 2;
}

.gov-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.18);
    border: 1px solid rgba(212, 160, 23, 0.48);
    color: #fff3c4;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}

.gov-badge::before {
    content: "★";
}

.gov-hero h2 {
    margin: 0 0 8px;
    color: #fff7dc;
    font-size: 28px;
    font-weight: 800;
}

.gov-hero h1 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: -1.4px;
    font-weight: 900;
}

.gov-hero p {
    max-width: 720px;
    margin: 0 0 26px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.gov-hero-emblem {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.emblem-circle {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 2px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 28px 55px rgba(0, 0, 0, 0.17);
}

.emblem-icon {
    font-size: 78px;
    line-height: 1;
}

.emblem-circle span {
    margin-top: 10px;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff7dc;
}

/* =====================================================
   Cards / Sections
===================================================== */

.card {
    background: rgba(255, 255, 255, 0.97);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
    border: 1px solid rgba(216, 224, 231, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 26px;
    letter-spacing: -0.3px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 22px;
}

.card p {
    color: var(--muted);
}

.quick-services {
    margin-top: 34px;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-title span {
    display: inline-block;
    color: var(--gold-dark);
    background: var(--accent-light);
    border: 1px solid rgba(212, 160, 23, 0.30);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.section-title h2 {
    margin: 12px 0 6px;
    color: var(--primary-dark);
    font-size: 34px;
    line-height: 1.1;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 18px;
}

.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -70px;
    top: -70px;
    background: rgba(7, 95, 70, 0.07);
    border-radius: 50%;
}

.service-icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px rgba(7, 95, 70, 0.08);
}

.service-list {
    margin: 16px 0 22px;
    padding: 0;
    list-style: none;
}

.service-list li {
    margin-bottom: 8px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 9px;
}

.service-list li::before {
    content: "✓";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
}

.info-strip {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.info-item h4 {
    margin: 0 0 4px;
    color: var(--primary-dark);
}

.info-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =====================================================
   Forms
===================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: end;
}

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

label {
    font-weight: 800;
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
}

input,
select,
button {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

input,
select {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

select {
    cursor: pointer;
}

input::placeholder {
    color: #9ca3af;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(7, 95, 70, 0.12);
}

button,
.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(7, 95, 70, 0.22);
    transition: all 0.2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(7, 95, 70, 0.28);
}

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

.btn {
    width: auto;
    min-width: 170px;
}

.btn-light {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.form-hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

/* =====================================================
   Alerts
===================================================== */

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-top: 18px;
    font-weight: 700;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: rgba(155, 28, 28, 0.14);
}

.alert-error::before {
    content: "⚠️ ";
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(3, 84, 63, 0.14);
}

.alert-success::before {
    content: "✅ ";
}

/* =====================================================
   Result Heading / Status Badge
===================================================== */

.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.result-subtitle {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--muted);
}

.status-badge {
    min-width: 145px;
    text-align: center;
    padding: 14px 20px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.status-badge-inline {
    display: inline-block;
    min-width: 110px;
    text-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    letter-spacing: 0.6px;
}

/* Route Permit Active / Expired */
.status-active {
    background: linear-gradient(135deg, #16a34a, #047857);
    animation: greenBlink 1.1s infinite;
}

.status-expired {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    animation: redBlink 0.8s infinite;
}

/* Vehicle Tax Paid / Defaulter */
.status-tax-paid {
    background: linear-gradient(135deg, #16a34a, #047857);
    animation: greenBlink 1.1s infinite;
}

.status-tax-defaulter {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    animation: redBlink 0.8s infinite;
}

@keyframes greenBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
    }

    50% {
        opacity: 0.72;
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12);
    }
}

@keyframes redBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65);
    }

    50% {
        opacity: 0.62;
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.14);
    }
}

/* =====================================================
   Result Tables
===================================================== */

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
}

.result-table th,
.result-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: none;
}

.result-table th {
    background: #f8fafc;
    width: 34%;
    text-align: left;
    color: #334155;
    font-weight: 800;
}

.result-table td {
    color: #111827;
}

.result-table tr:hover td,
.result-table tr:hover th {
    background: #fbfdfc;
}

/* =====================================================
   Admin / Utility
===================================================== */

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

/* =====================================================
   Footer
===================================================== */

.site-footer {
    margin-top: 60px;
    background:
        linear-gradient(135deg, #062f23, #111827);
    color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.footer-brand h3,
.footer-links h4,
.footer-note h4 {
    margin: 0 0 10px;
    color: white;
}

.footer-brand p,
.footer-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    margin-bottom: 7px;
}

.footer-links a:hover {
    color: white;
}

.copyright-bar {
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.copyright-bar .container {
    padding-top: 13px;
    padding-bottom: 13px;
}

.copyright-bar p {
    margin: 0;
    font-size: 14px;
}

/* =====================================================
   Print
===================================================== */

@media print {
    .top-gov-bar,
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .result-table {
        border-radius: 0;
    }

    .status-active,
    .status-expired,
    .status-tax-paid,
    .status-tax-defaulter {
        animation: none;
    }
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 950px) {
    .gov-hero {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .gov-hero-emblem {
        display: none;
    }

    .gov-hero h1 {
        font-size: 38px;
    }

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

    .home-cards,
    .info-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-area h1 {
        font-size: 23px;
    }

    .card {
        padding: 22px;
    }

    .result-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 15px;
    }

    .top-gov-content {
        font-size: 13px;
    }

    .brand-area {
        align-items: flex-start;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        font-size: 24px;
    }

    .brand-area h1 {
        font-size: 19px;
    }

    .brand-area p {
        font-size: 13px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .gov-hero {
        margin-top: 18px;
        padding: 24px;
        min-height: auto;
        border-radius: 20px;
    }

    .gov-hero h2 {
        font-size: 21px;
    }

    .gov-hero h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .gov-hero p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .card h2 {
        font-size: 22px;
    }

    .section-title h2 {
        font-size: 27px;
    }

    .status-badge {
        width: 100%;
    }

    .result-table th,
    .result-table td {
        display: block;
        width: 100%;
    }

    .result-table th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .result-table td {
        padding-top: 4px;
    }
}