:root {
    --brand-navy: #1b2a62;
    --brand-red: #db2128;
    --page-bg: #f2f2f2;
    --panel-bg: #d9d9d9;
    --row-bg: #eeeeee;
    --row-border: #b9b9b9;
    --text-main: #111111;
    --text-muted: #4d4d4d;
    --success: #2f8f4e;
    --disabled: #8e8e8e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    background: #ffffff;
    text-align: center;
    padding: 28px 20px 22px;
    border-bottom: 4px solid var(--brand-navy);
}

.logo {
    width: min(100%, 430px);
    margin-bottom: 18px;
}

.site-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
}

.page-shell {
    width: min(100%, 980px);
    margin: 28px auto 56px;
    padding: 0 20px;
}

.intro-panel,
.sessions-panel,
.details-panel {
    background: var(--panel-bg);
    padding: 18px 18px 22px;
}

.intro-panel {
    border-top: 4px solid var(--brand-red);
    margin-bottom: 18px;
}

.intro-kicker {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.intro-copy {
    color: var(--brand-red);
    font-size: 0.95rem;
}

.sessions-panel {
    margin-bottom: 18px;
}

.loading-message,
.error-message {
    padding: 12px 0;
    color: var(--text-muted);
}

.error-message {
    color: var(--brand-red);
}

.day-group + .day-group {
    margin-top: 18px;
}

.day-heading {
    font-size: 1rem;
    color: var(--text-main);
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--brand-navy);
}

.session-list {
    display: grid;
    gap: 8px;
}

.session-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    background: var(--row-bg);
    border: 1px solid var(--row-border);
    padding: 12px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.session-item.is-selected {
    border-color: var(--brand-navy);
    background: #f7f8fc;
}

.session-item.is-disabled {
    opacity: 0.78;
}

.session-item.is-submitted {
    border-color: var(--success);
}

.session-select {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
    cursor: pointer;
}

.session-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-ui {
    width: 20px;
    height: 20px;
    border: 2px solid var(--brand-navy);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-checkbox:checked + .checkbox-ui {
    background: var(--brand-navy);
}

.session-checkbox:checked + .checkbox-ui::after {
    content: "";
    width: 6px;
    height: 11px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(40deg) translate(-1px, -1px);
}

.session-checkbox:disabled + .checkbox-ui {
    border-color: var(--disabled);
    background: #f7f7f7;
}

.session-content {
    min-width: 0;
}

.session-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.session-time {
    font-weight: 700;
    color: var(--brand-navy);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #ffffff;
}

.status-pill.full {
    color: var(--brand-red);
}

.status-pill.submitted {
    color: var(--success);
}

.session-title {
    font-size: 0.96rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 6px;
}

.session-meta,
.session-description,
.session-note {
    font-size: 0.84rem;
}

.session-meta {
    color: var(--brand-navy);
    margin-bottom: 6px;
}

.session-description {
    color: var(--text-main);
}

.session-note {
    color: var(--text-muted);
    margin-top: 6px;
}

.details-panel {
    margin-bottom: 32px;
}

.details-header {
    margin-bottom: 18px;
}

.details-header h2 {
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.selection-summary {
    font-weight: 700;
    margin-bottom: 10px;
}

.selected-session-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
}

.selected-session-chip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    background: #ffffff;
    border-left: 4px solid var(--brand-red);
    padding: 7px 10px;
    font-size: 0.82rem;
}

.selected-session-time {
    font-weight: 700;
    color: var(--brand-navy);
}

.selected-session-title {
    color: var(--text-main);
}

.nomination-form {
    display: grid;
    gap: 18px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.form-group input {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.95rem;
    border: 1px solid #c4c4c4;
    background: #ffffff;
}

.form-group input:focus {
    outline: 2px solid rgba(27, 42, 98, 0.15);
    border-color: var(--brand-navy);
}

.btn-submit {
    justify-self: start;
    min-width: 220px;
    border: none;
    background: var(--brand-navy);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: var(--brand-red);
}

.btn-submit:disabled {
    background: var(--disabled);
    cursor: not-allowed;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding: 14px 18px;
    font-weight: 700;
    color: #ffffff;
    z-index: 1000;
    max-width: min(360px, calc(100vw - 32px));
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--brand-red);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--brand-navy);
}

@media (max-width: 700px) {
    .page-shell {
        padding: 0 14px;
    }

    .intro-panel,
    .sessions-panel,
    .details-panel {
        padding: 16px 14px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
        justify-self: stretch;
    }
}
