:root {
    --bg: #f4efe7;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --ink: #1f2937;
    --muted: #5f6b76;
    --line: rgba(23, 39, 52, 0.12);
    --brand: #0f766e;
    --brand-dark: #0b4f4b;
    --accent: #f59e0b;
    --danger: #b91c1c;
    --success: #166534;
    --shadow: 0 30px 80px rgba(16, 24, 40, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 22%),
        linear-gradient(180deg, #efe6db 0%, var(--bg) 45%, #f8f5f0 100%);
    font-family: "Plus Jakarta Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.hero {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
        linear-gradient(120deg, rgba(15, 118, 110, 0.1), rgba(245, 158, 11, 0.08));
    box-shadow: var(--shadow);
}

.topbar,
.hero-grid,
.service-grid,
.field-grid,
.step-row,
.form-actions,
.topbar-links {
    display: flex;
    gap: 16px;
}

.topbar,
.hero-grid {
    justify-content: space-between;
}

.topbar {
    align-items: center;
    margin-bottom: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.brand strong,
.hero-copy h1,
.section-heading h2,
.service-card h2 {
    font-family: "Space Grotesk", sans-serif;
}

.brand small,
.hero-copy p,
.section-heading p,
.service-card p,
.summary-box p,
label span,
input,
select,
textarea,
table,
.empty-state {
    color: var(--muted);
}

.topbar-links {
    align-items: center;
}

.topbar-links a {
    padding: 10px 14px;
    border-radius: 999px;
}

.topbar-links a:hover {
    background: rgba(15, 118, 110, 0.08);
}

.hero-grid {
    align-items: end;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: 0.98;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-points span,
.step-pill,
.summary-box,
.service-card,
.admin-table-card,
.flash,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    backdrop-filter: blur(12px);
}

.hero-points span {
    padding: 10px 14px;
}

.hero-panel {
    width: min(320px, 100%);
    display: grid;
    gap: 14px;
}

.stat-card {
    padding: 18px;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.88));
}

.service-grid {
    margin: 30px 0;
    flex-wrap: wrap;
}

.service-card {
    flex: 1 1 250px;
    padding: 22px;
}

.service-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    font-weight: 700;
}

.service-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--ink);
}

.form-section,
.admin-layout {
    margin-top: 34px;
}

.section-heading {
    margin-bottom: 18px;
}

.request-form {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.step-row {
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.step-pill {
    padding: 12px 16px;
    font-weight: 700;
}

.step-pill.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.field-grid {
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.field-grid label {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-grid label.full-width {
    flex-basis: 100%;
}

.field-grid label.required-accent span {
    color: var(--brand-dark);
    font-weight: 700;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.action-option {
    position: relative;
}

.action-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.action-option span {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.action-option input:checked + span {
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.25);
    background: rgba(15, 118, 110, 0.08);
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid rgba(23, 39, 52, 0.15);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.92);
}

textarea {
    resize: vertical;
}

button {
    width: auto;
    min-width: 240px;
    border: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(15, 118, 110, 0.25);
}

.summary-box,
.flash,
.admin-table-card {
    padding: 18px 20px;
}

.flash.success {
    margin-top: 24px;
    color: var(--success);
    background: rgba(220, 252, 231, 0.88);
}

.flash.error {
    margin-bottom: 18px;
    color: var(--danger);
    background: rgba(254, 226, 226, 0.88);
}

.form-actions {
    justify-content: flex-start;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--ink);
}

@media (max-width: 860px) {
    .hero-grid,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.8rem);
    }

    .page-shell {
        width: min(100% - 18px, 1180px);
    }

    .request-form {
        padding: 20px;
    }

    button {
        width: 100%;
    }
}
