:root {
    --bg-top: #eef7f8;
    --bg-bottom: #dbeef1;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --text: #16333d;
    --muted: #5f7d87;
    --line: rgba(26, 87, 107, 0.16);
    --primary: #17808d;
    --primary-dark: #0f6674;
    --accent: #ff8f5b;
    --accent-soft: #fff0e8;
    --success: #1b8a5a;
    --shadow: 0 24px 60px rgba(19, 56, 68, 0.14);
    --shadow-soft: 0 14px 35px rgba(22, 51, 61, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(23, 128, 141, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 143, 91, 0.18), transparent 24%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
    opacity: 0.65;
}

body::before {
    width: 260px;
    height: 260px;
    top: 8%;
    left: -70px;
    background: rgba(23, 128, 141, 0.14);
    animation: floatOrb 12s ease-in-out infinite;
}

body::after {
    width: 320px;
    height: 320px;
    bottom: 5%;
    right: -90px;
    background: rgba(255, 143, 91, 0.14);
    animation: floatOrb 15s ease-in-out infinite reverse;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 54px;
}

.hero-panel,
.container,
.summary-container {
    backdrop-filter: blur(14px);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.container,
.summary-container {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 42px;
    position: relative;
    overflow: hidden;
    animation: riseIn 0.8s ease-out both;
}

.hero-copy::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    top: -50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(23, 128, 141, 0.12);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-copy h1,
h1,
h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.03;
}

.hero-copy p {
    margin: 18px 0 0;
    max-width: 48ch;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.stat-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 128, 141, 0.08);
    box-shadow: var(--shadow-soft);
    transform: translateY(18px);
    opacity: 0;
    animation: riseIn 0.7s ease-out forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.12s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.24s;
}

.stat-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-label {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.container,
.summary-container {
    padding: 34px;
    animation: riseIn 0.85s ease-out both;
}

.container {
    position: relative;
}

.container h2,
.summary-container h2 {
    font-size: 2rem;
    line-height: 1.1;
}

.section-intro {
    margin: 10px 0 26px;
    color: var(--muted);
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.field-group,
.detail-card,
.payment-detail,
.summary-item,
.registration-details {
    border-radius: var(--radius-md);
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: 0.97rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(23, 128, 141, 0.6);
    box-shadow: 0 0 0 4px rgba(23, 128, 141, 0.14);
    transform: translateY(-1px);
}

.highlight-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0 28px;
}

.detail-card {
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(23, 128, 141, 0.1), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(23, 128, 141, 0.08);
    box-shadow: var(--shadow-soft);
}

.detail-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.detail-card span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

input[type="submit"],
.primary-button,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.98rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input[type="submit"],
.primary-button {
    width: 100%;
    margin-top: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 18px 30px rgba(15, 102, 116, 0.26);
    cursor: pointer;
}

input[type="submit"]:hover,
.primary-button:hover,
.back-link:hover {
    transform: translateY(-2px);
}

input[type="submit"]:hover,
.primary-button:hover {
    box-shadow: 0 22px 34px rgba(15, 102, 116, 0.32);
}

.registration-details,
.summary-banner,
.success-banner {
    padding: 22px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(23, 128, 141, 0.12), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(23, 128, 141, 0.12);
    box-shadow: var(--shadow-soft);
}

.registration-details ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.payment-detail,
.summary-item {
    margin-bottom: 16px;
}

.payment-detail p,
.summary-item,
.muted-text {
    color: var(--muted);
    line-height: 1.65;
}

.summary-list {
    display: grid;
    gap: 14px;
}

.summary-item {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 128, 141, 0.1);
    box-shadow: var(--shadow-soft);
}

.summary-label {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-weight: 800;
}

.summary-banner,
.success-banner {
    border-radius: 20px;
}

.success-banner {
    color: var(--success);
    font-weight: 800;
    background: linear-gradient(135deg, rgba(27, 138, 90, 0.12), rgba(255, 255, 255, 0.88));
    border-color: rgba(27, 138, 90, 0.16);
}

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

.back-link {
    min-width: 210px;
    color: var(--primary-dark);
    background: var(--accent-soft);
    border: 1px solid rgba(255, 143, 91, 0.26);
    box-shadow: 0 14px 28px rgba(255, 143, 91, 0.16);
}

.print-button {
    min-width: 210px;
}

.mini-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer {
    margin-top: 26px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -18px, 0);
    }
}

@media (max-width: 900px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .container,
    .summary-container {
        padding: 26px;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 22px, 1120px);
        padding-top: 18px;
    }

    .form-grid,
    .hero-stats,
    .highlight-strip {
        grid-template-columns: 1fr;
    }

    .container h2,
    .summary-container h2 {
        font-size: 1.7rem;
    }

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

    .back-link {
        width: 100%;
    }

    .print-button {
        width: 100%;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    body::before,
    body::after {
        display: none;
    }

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

    .summary-container {
        box-shadow: none;
        border: 1px solid #d9d9d9;
        background: #ffffff;
    }

    .page-actions {
        display: none;
    }

    .site-footer {
        margin-top: 18px;
    }
}
