:root {
    --navy: #102a56;
    --navy-deep: #0b1f44;
    --red: #d10d18;
    --cream: #fff4e4;
    --cream-deep: #f8ecd8;
    --ink: #243044;
    --muted: #5c6b7a;
    --line: #d5dbe3;
    --pink: #f6c5cb;
    --danger: #b42318;
    --card: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #eef3f8;
    color: var(--ink);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.page {
    width: min(1100px, calc(100% - 24px));
    margin: 20px auto 48px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(16, 42, 86, 0.08);
}

.banner {
    display: block;
    width: 100%;
    height: auto;
}

.hero-copy {
    background: linear-gradient(#fff8ee, var(--cream));
    text-align: center;
    padding: 36px 20px 28px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: 0.5px;
    color: var(--red);
}

.hero-copy h1 span { color: var(--navy); }

.hero-copy p {
    margin: 12px 0 0;
    color: #4e5968;
    font-size: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 28px 28px 10px;
}

.card {
    border: 1.5px solid #c5d0ea;
    border-radius: 16px;
    padding: 22px 18px 26px;
    text-align: center;
    min-height: 150px;
}

.card h2, .register-bar h2, .syllabus h2, .success h1 {
    color: var(--navy);
    margin: 0 0 10px;
    font-size: 22px;
}

.card p, .syllabus p, .success p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.register-bar {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 22px 28px 8px;
}

.dates {
    background: var(--pink);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    color: var(--navy-deep);
    line-height: 1.45;
}

.dates strong, .dates span { display: block; }
.dates strong { font-size: 20px; }
.dates span { font-weight: 700; }

.register-bar h2 {
    text-align: center;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    margin: 0;
}

.syllabus-btn, .actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    border-radius: 12px;
    background: var(--navy-deep);
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.form {
    width: min(680px, calc(100% - 32px));
    margin: 18px auto 10px;
    background: var(--cream-deep);
    border-radius: 12px;
    padding: 18px 16px 22px;
}

.required-note, .hint, .field small {
    color: var(--muted);
    font-size: 13px;
}

.required-note span, .label span, .field small { color: var(--danger); }

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 8px;
    padding: 14px 14px 16px;
    margin-top: 12px;
}

.label { font-weight: 700; }

.field input, .field select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d9d3c8;
    background: transparent;
    font: inherit;
    padding: 8px 2px;
    color: var(--ink);
}

.field input:focus, .field select:focus {
    outline: none;
    border-bottom-color: var(--navy);
}

.payment { align-items: center; text-align: center; }
.payment img {
    width: min(280px, 100%);
    height: auto;
    border-radius: 8px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
}

.check input { width: auto; margin-top: 3px; }

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.actions button {
    min-height: 42px;
    padding: 0 22px;
    font-size: 16px;
    background: #b5812f;
}

.actions .clear {
    background: transparent;
    color: var(--navy);
    min-height: auto;
    padding: 0;
    font-weight: 600;
}

.alert {
    background: #fff1f0;
    color: var(--danger);
    border: 1px solid #f3c1bc;
    border-radius: 8px;
    padding: 12px 14px;
}

.syllabus, .success {
    margin: 8px 28px 32px;
    padding: 22px;
    border: 1.5px solid #c5d0ea;
    border-radius: 16px;
}

.syllabus ul {
    margin: 12px 0;
    padding-left: 18px;
    color: var(--ink);
    line-height: 1.7;
}

.success {
    text-align: center;
    margin-top: 28px;
}

.success .syllabus-btn {
    margin-top: 18px;
    min-height: 52px;
    padding: 0 22px;
    font-size: 18px;
}

.success a { color: var(--navy); }

@media (max-width: 800px) {
    .cards, .register-bar { grid-template-columns: 1fr; }
    .syllabus-btn { min-height: 56px; }
}
