* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f1ec;
    color: #222;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(160, 61, 30, .10), transparent 38rem),
        #f3f1ec;
}

.page-shell {
    width: min(100% - 32px, 780px);
    margin: 0 auto;
    padding: 48px 0;
}

.registration-card {
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #d7d0c4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(55, 39, 27, .10);
}

.event-header {
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #9c351c;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
}

h1 span {
    color: #6a625a;
    font-weight: 500;
}

.event-meta {
    padding: 16px 18px;
    border-left: 4px solid #a43b20;
    border-radius: 0 10px 10px 0;
    background: #f7f4ef;
    line-height: 1.55;
}

.event-meta p {
    margin: 0;
}

.places {
    margin-top: 8px !important;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.field label span,
.consent span {
    color: #a50000;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #a9a39c;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
}

input:focus,
textarea:focus {
    border-color: #92351f;
    outline: 3px solid rgba(146, 53, 31, .16);
}

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

small {
    display: block;
    margin-top: 5px;
    color: #625c55;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin: 24px 0 8px;
    line-height: 1.45;
}

.consent input {
    margin-top: 4px;
}

button {
    margin-top: 22px;
    padding: 13px 24px;
    border: 0;
    border-radius: 9px;
    background: #29211c;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

button:hover {
    background: #a43b20;
}

.alert {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 9px;
}

.alert-error {
    border: 1px solid #d79b9b;
    background: #fff1f1;
    color: #721c1c;
}

.errorlist {
    margin: 6px 0 0;
    padding-left: 22px;
    color: #a00000;
    font-size: .92rem;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.confirmation-card {
    text-align: center;
}

.success-mark {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #e5f5e8;
    color: #1d6f2c;
    font-size: 2rem;
    font-weight: 900;
}

.confirmation-card .event-meta {
    margin-top: 28px;
    text-align: left;
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 20px, 780px);
        padding: 18px 0;
    }

    .registration-card {
        padding: 22px;
        border-radius: 12px;
    }
}
