.agenda-page {
    --agenda-ink: #102a36;
    --agenda-muted: #5c6f77;
    --agenda-line: #dce5e8;
    --agenda-surface: #ffffff;
    max-width: 1500px;
    width: calc(100% - 24px);
    margin: 28px auto !important;
    padding: 0 !important;
    flex-basis: auto !important;
    min-height: min-content;
    overflow: visible !important;
    color: var(--agenda-ink);
    background: rgba(248, 251, 252, .96) !important;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 24px 70px rgba(15, 42, 54, .23);
}

.agenda-hero {
    display: flex;
    border-radius: 10px 10px 0 0;

    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 40px;
    color: white;
    background: linear-gradient(125deg, #073f58 0%, #00658f 62%, #528f65 100%);
}

.agenda-hero h1 {
    margin: 7px 0 9px;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.agenda-hero p {
    max-width: 680px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
}

.agenda-hero .btn {
    flex: 0 0 auto;
    color: var(--agenda-ink);
    background: white;
}

.agenda-eyebrow {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #d9ed6d;
}

.agenda-booking {
    width: auto;
    max-width: 850px;
    margin: 0 auto;
    padding: 34px 28px 40px;
    gap: 0 !important;
}

.agenda-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 30px;
}

.agenda-step:not(:last-of-type)::before {
    content: '';
    position: absolute;
    top: 42px;
    bottom: 0;
    left: 21px;
    width: 2px;
    background: var(--agenda-line);
}

.agenda-step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    background: var(--primary);
    box-shadow: 0 0 0 5px #f8fbfc;
    font-weight: 700;
}

.agenda-step-content {
    min-width: 0;
    padding: 5px 0 0;
}

.agenda-step-content > label,
.agenda-create-panel h2,
.agenda-list-panel h2 {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.agenda-service-description {
    margin-top: 10px;
    min-height: 1.2em;
    line-height: 1.5;
    color: var(--agenda-muted);
}

.agenda-date-grid,
.agenda-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.agenda-full {
    grid-column: 1 / -1;
}

.agenda-booking input,
.agenda-booking select,
.agenda-booking textarea,
.agenda-create-panel input,
.agenda-create-panel select,
.agenda-create-panel textarea {
    box-sizing: border-box;
    width: 100%;
    border-color: var(--agenda-line) !important;
    background: var(--agenda-surface);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.agenda-booking input:focus,
.agenda-booking select:focus,
.agenda-booking textarea:focus,
.agenda-create-panel input:focus,
.agenda-create-panel select:focus,
.agenda-create-panel textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 101, 143, .12);
}

.agenda-submit {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 270px;
    padding: 13px 22px;
    font-size: 1rem;
}

.agenda-privacy {
    margin: 10px auto 0;
    max-width: 620px;
    text-align: center;
    color: var(--agenda-muted);
    font-size: .82rem;
    line-height: 1.45;
}

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

.agenda-empty {
    margin: 22px;
    padding: 24px;
    border: 1px dashed #b9c9cf;
    border-radius: 12px;
    text-align: center;
    color: var(--agenda-muted);
    background: #f5f9fa;
}

.agenda-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr);
    align-items: start;
    gap: 24px;
    padding: 28px;
}

.agenda-list-panel,
.agenda-create-panel {
    padding: 24px;
    border: 1px solid var(--agenda-line);
    border-radius: 16px;
    background: white;
}

.agenda-create-panel {
    position: sticky;
    top: 20px;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-day-label {
    margin: 15px 0 3px;
    color: var(--agenda-muted);
    font-size: .78rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.agenda-event {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 15px;
    border: 1px solid var(--agenda-line);
    border-left: 4px solid var(--secondary);
    border-radius: 10px;
    background: #fbfdfd;
}

.agenda-event time {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.agenda-event time small,
.agenda-event div > span,
.agenda-event div > a {
    display: block;
    margin-top: 3px;
    color: var(--agenda-muted);
    font-size: .82rem;
    text-decoration: none;
}

.agenda-event p {
    margin-top: 8px;
    line-height: 1.4;
    font-size: .86rem;
    color: #445961;
}

.agenda-source {
    padding: 4px 8px;
    border-radius: 999px;
    color: #185228;
    background: #dff4e4;
    font-size: .72rem;
    font-weight: 700;
}

.agenda-source.is-admin {
    color: #164c66;
    background: #dceff7;
}

@media (max-width: 800px) {
    .agenda-page { width: calc(100% - 16px); margin: 8px auto !important; }
    .agenda-hero { align-items: flex-start; flex-direction: column; padding: 27px 22px; }
    .agenda-admin-grid { grid-template-columns: 1fr; padding: 16px; }
    .agenda-create-panel { position: static; }
}

@media (max-width: 560px) {
    .agenda-booking { padding: 25px 14px 30px; }
    .agenda-step { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
    .agenda-step-number { width: 34px; height: 34px; }
    .agenda-step:not(:last-of-type)::before { top: 34px; left: 16px; }
    .agenda-date-grid, .agenda-contact-grid { grid-template-columns: 1fr; }
    .agenda-full { grid-column: auto; }
    .agenda-submit { width: 100%; min-width: 0; }
    .agenda-list-panel, .agenda-create-panel { padding: 16px; }
    .agenda-event { grid-template-columns: 52px minmax(0, 1fr); }
    .agenda-source { grid-column: 2; justify-self: start; }
}

