:root {
    --midnight: #0b1220;
    --navy: #0e1b2a;
    --navy-soft: #15263a;
    --accent: #f5b301;
    --accent-deep: #e2a800;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, .09);
    --card: rgba(255, 255, 255, .055);
    --success: #34d399;
    --danger: #fb7185;
    --warning: #fbbf24;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 179, 1, .12), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(30, 95, 160, .20), transparent 32%),
        linear-gradient(180deg, var(--navy), var(--midnight) 42%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, Arial, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 18, 32, .90);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 13px;
    object-fit: contain;
    background: rgba(255,255,255,.96);
    padding: 4px;
    box-shadow: 0 12px 32px -14px rgba(245,179,1,.65);
}

.brand-copy {
    min-width: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

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

.site-nav a {
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav .nav-highlight {
    border: 1px solid rgba(245,179,1,.28);
    background: rgba(245,179,1,.08);
    color: #fde68a;
    padding: 8px 13px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-menu {
    border-top: 1px solid var(--border);
    background: rgba(11,18,32,.98);
}

.mobile-menu-inner {
    display: grid;
    gap: 4px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding-top: 14px;
    padding-bottom: 18px;
}

.mobile-menu a {
    border-radius: 10px;
    color: #dbe3ee;
    padding: 12px 14px;
    text-decoration: none;
}

.mobile-menu a:hover {
    background: rgba(245,179,1,.08);
    color: var(--accent);
}

.page-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.hero-card,
.content-card,
.receipt-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.038));
    box-shadow: 0 28px 80px -46px rgba(0,0,0,.9);
    backdrop-filter: blur(14px);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    overflow: hidden;
}

.hero-copy {
    padding: 42px;
    border-right: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 10%, rgba(245,179,1,.13), transparent 34%);
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
}

.hero-copy h1,
.content-card h1 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.hero-copy p {
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.75;
}

.trust-list {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #dbe3ee;
    line-height: 1.55;
}

.trust-list li::before {
    content: "✓";
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: rgba(52, 211, 153, .14);
    color: var(--success);
    font-weight: 800;
}

.form-panel {
    padding: 42px;
}

.form-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
}

.form-panel > p,
.page-intro {
    color: var(--muted);
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 26px;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #eef2f7;
    font-size: 14px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    outline: none;
    background: rgba(2, 6, 23, .42);
    color: #fff;
    padding: 14px 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(245,179,1,.75);
    box-shadow: 0 0 0 4px rgba(245,179,1,.10);
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.primary-button,
.secondary-button,
.print-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.primary-button,
.print-button {
    background: var(--accent);
    color: #111827;
    box-shadow: 0 14px 35px -18px rgba(245,179,1,.8);
}

.primary-button:hover,
.print-button:hover {
    filter: brightness(1.06);
}

.secondary-button {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.045);
    color: #fff;
}

.form-grid .primary-button {
    width: 100%;
}

.alert {
    margin: 0 0 22px;
    border-radius: 14px;
    padding: 15px 16px;
    line-height: 1.55;
}

.alert-error {
    border: 1px solid rgba(251,113,133,.28);
    background: rgba(251,113,133,.10);
    color: #fecdd3;
}

.alert-success {
    border: 1px solid rgba(52,211,153,.28);
    background: rgba(52,211,153,.10);
    color: #bbf7d0;
}

.alert-warning {
    border: 1px solid rgba(251,191,36,.28);
    background: rgba(251,191,36,.10);
    color: #fde68a;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.content-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px;
}

.content-card h1 {
    font-size: clamp(32px, 5vw, 46px);
}

.status-result {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,.035);
}

.status-result h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
}

.status-result p {
    color: #cbd5e1;
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-top: 22px;
}

.detail-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.detail-value {
    color: #fff;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.receipt-card {
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
}

.receipt-header {
    padding: 36px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(245,179,1,.14), transparent 45%);
}

.receipt-header h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
}

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

.paid-badge {
    display: inline-flex;
    margin-top: 12px;
    border: 1px solid rgba(52,211,153,.28);
    border-radius: 999px;
    background: rgba(52,211,153,.12);
    color: #86efac;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.receipt-body {
    padding: 34px;
}

.receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

.receipt-actions {
    padding: 0 34px 34px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(6, 12, 23, .68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 38px;
    padding: 48px 0 36px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.footer-brand,
.footer-grid strong {
    display: block;
    margin-bottom: 13px;
    color: #fff;
}

.footer-brand {
    margin-bottom: 3px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 12px;
}

.footer-grid p,
.footer-grid address {
    max-width: 430px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.65;
}

.footer-grid address {
    margin-top: 12px;
}

.footer-grid a {
    display: block;
    margin-top: 9px;
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding: 18px 0 26px;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .site-nav {
        gap: 13px;
    }

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

    .footer-grid > :last-child {
        grid-column: 2 / -1;
    }
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

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

    .hero-copy {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .form-grid,
    .detail-list,
    .receipt-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > :last-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-container,
    .page-shell {
        width: min(100% - 22px, 1080px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-logo {
        width: 39px;
        height: 39px;
    }

    .brand strong {
        font-size: 14px;
    }

    .brand small {
        font-size: 10px;
    }

    .page-shell {
        padding-top: 28px;
    }

    .hero-copy,
    .form-panel,
    .content-card,
    .receipt-header,
    .receipt-body {
        padding: 24px;
    }

    .actions a,
    .actions button {
        width: 100%;
    }
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    .site-header,
    .site-footer,
    .receipt-actions {
        display: none !important;
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    .receipt-card {
        border: 0;
        box-shadow: none;
        background: #fff;
    }

    .receipt-header,
    .receipt-body {
        background: #fff;
    }

    .receipt-header h1,
    .detail-value {
        color: #111;
    }

    .receipt-header p,
    .detail-label {
        color: #555;
    }
}
