:root {
    --portal-primary: #0B3D5C;
    --portal-secondary: #1A7A4C;
    --portal-radius: 8px;
    --portal-font: "Segoe UI", system-ui, sans-serif;
    --portal-bg: #f4f7fa;
    --portal-surface: #ffffff;
    --portal-text: #1a2332;
    --portal-muted: #5b6b7c;
    --portal-border: #d7e0ea;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--portal-font);
    color: var(--portal-text);
    background: var(--portal-bg);
}

a {
    color: var(--portal-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.portal-container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    background: #0b2438;
    color: #fff;
}

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

.portal-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.portal-nav a {
    color: #d7e8f5;
    margin-left: 1rem;
}

.portal-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.portal-footer {
    border-top: 1px solid var(--portal-border);
    padding: 1rem 0;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.event-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--portal-font);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--portal-primary) 18%, white), transparent 45%),
        var(--portal-bg);
}

.event-header {
    background: color-mix(in srgb, var(--portal-primary) 92%, black);
    color: #fff;
    padding: 1.25rem 0;
}

.event-header-inner {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.event-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.event-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--portal-radius);
    padding: 4px;
}

.event-eyebrow {
    margin: 0;
    opacity: 0.8;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-title {
    margin: 0.15rem 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.event-nav a {
    color: #fff;
    opacity: 0.9;
    font-size: 0.95rem;
}

.event-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.event-footer {
    border-top: 1px solid var(--portal-border);
    padding: 1rem 0;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.panel {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(11, 61, 92, 0.06);
}

.panel h2 {
    margin-top: 0;
}

.muted {
    color: var(--portal-muted);
}

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

@media (max-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: #fff;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    appearance: none;
    border: none;
    border-radius: var(--portal-radius);
    background: var(--portal-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--portal-secondary);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--portal-radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f5c2c2;
}

.alert-success {
    background: #e8f8ef;
    color: #0f5132;
    border: 1px solid #b7e4c7;
}

.option-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.option-card {
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    padding: 0.9rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
}

.option-card.selected {
    border-color: var(--portal-primary);
    box-shadow: inset 0 0 0 1px var(--portal-primary);
}

.summary-box {
    background: color-mix(in srgb, var(--portal-primary) 6%, white);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    padding: 1rem;
    margin: 1rem 0 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.35rem 0;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.05rem;
    border-top: 1px solid var(--portal-border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.home-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.home-links {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-links a {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: #fff;
}

.policy-content {
    line-height: 1.65;
}

.policy-content :deep(p) {
    margin: 0 0 1rem;
}

/* Theme variants (Portal pages only) */
.theme-corporate .event-header {
    background: linear-gradient(135deg, var(--portal-primary), color-mix(in srgb, var(--portal-primary) 70%, black));
}

.theme-corporate .panel {
    border-radius: calc(var(--portal-radius) + 2px);
}

.theme-bold .event-header {
    background: var(--portal-secondary);
}

.theme-bold .btn {
    background: var(--portal-secondary);
}

.theme-bold .option-card.selected {
    border-color: var(--portal-secondary);
    box-shadow: inset 0 0 0 1px var(--portal-secondary);
}

.layout-form-aside .panel {
    max-width: 720px;
}

/* Embedded inside event marketing sites — no portal chrome */
.embed-shell {
    min-height: 0;
    background: transparent;
    font-family: var(--portal-font);
    padding: 0;
}

.embed-shell .panel {
    box-shadow: none;
}

