/* Styles for the appointment picker (steps, meeting type, week
   overview with time slots, summary) on /kennismaken,
   /kennismaken/{token} and /afspraak/{token}/verzetten. Link it from
   the Styles section of a view using _PortalLayout; the page scripts
   also rely on these classes (selected, visible, active, completed). */

.step-indicator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--ap-shadow);
    color: var(--ap-muted);
    font-family: var(--ap-heading);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s;
}

.step-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ap-bg);
    color: var(--ap-muted);
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s, color 0.2s;
}

.step.active {
    color: var(--ap-ink);
}

.step.active .step-number {
    background: var(--ap-pink);
    color: #fff;
}

.step.completed {
    color: var(--ap-success-dark);
}

.step.completed .step-number {
    background: var(--ap-success);
    color: #fff;
}

.appt-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
}

.appt-heading i {
    color: var(--ap-pink);
}

/* ---------- Meeting type ---------- */

.type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.type-card {
    padding: 26px 20px;
    border: 2px solid var(--ap-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s,
        transform 0.15s, box-shadow 0.2s;
}

.type-card:hover {
    border-color: rgba(210, 35, 133, 0.45);
    transform: translateY(-2px);
}

.type-card.selected {
    border-color: var(--ap-pink);
    background: var(--ap-pink-soft);
    box-shadow: 0 8px 22px rgba(210, 35, 133, 0.15);
}

.type-card i {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--ap-pink-soft);
    color: var(--ap-pink);
    font-size: 26px;
    transition: background 0.2s, color 0.2s;
}

.type-card.selected i {
    background: var(--ap-pink);
    color: #fff;
}

.type-name {
    font-family: var(--ap-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--ap-ink);
}

.type-desc {
    font-size: 13px;
    color: var(--ap-muted);
}

/* ---------- Week overview and time slots ---------- */

.slots-container,
.confirm-section {
    display: none;
}

.slots-container.visible,
.confirm-section.visible {
    display: block;
}

.week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.week-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: var(--ap-bg);
    color: var(--ap-ink);
    font-family: var(--ap-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.week-nav button:hover {
    background: var(--ap-pink-soft);
    color: var(--ap-pink);
}

.week-title {
    font-family: var(--ap-heading);
    font-weight: 800;
    color: var(--ap-ink);
    text-align: center;
}

.slots-grid {
    display: grid;
    gap: 12px;
}

.day-slots {
    padding: 16px 18px;
    border: 1px solid var(--ap-line);
    border-radius: 12px;
    background: #fff;
}

.day-header {
    margin-bottom: 12px;
    font-family: var(--ap-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ap-pink);
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    padding: 8px 18px;
    border: 1.5px solid var(--ap-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ap-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.time-slot:hover {
    border-color: var(--ap-pink);
    color: var(--ap-pink);
}

.time-slot.selected {
    border-color: var(--ap-ink);
    background: var(--ap-ink);
    color: #fff;
}

.no-slots {
    font-size: 14px;
    font-style: italic;
    color: var(--ap-muted);
}

.loading {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--ap-muted);
}

.loading.visible {
    display: block;
}

.loading i {
    margin-bottom: 10px;
    font-size: 32px;
    color: var(--ap-pink);
    animation: appt-spin 1s linear infinite;
}

@keyframes appt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Summary ---------- */

.confirm-summary {
    margin-bottom: 22px;
    padding: 18px 22px;
    border-radius: 12px;
    background: var(--ap-pink-soft);
}

.confirm-summary h4 {
    margin-bottom: 6px;
    font-family: var(--ap-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ap-pink);
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(210, 35, 133, 0.15);
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-label {
    color: var(--ap-muted);
}

.confirm-value {
    font-weight: 700;
    color: var(--ap-ink);
    text-align: right;
}

.appt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.appt-actions.is-start {
    justify-content: flex-start;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .type-cards {
        grid-template-columns: 1fr;
    }

    .week-nav {
        flex-wrap: wrap;
    }

    .week-title {
        order: -1;
        width: 100%;
    }

    .week-nav button {
        flex: 1;
    }

    .step {
        font-size: 13px;
    }
}

/* ---------- Portal appointment pages ---------- */

.booking-section {
    padding: 28px 30px;
}

.booking-section h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.booking-section h3 i {
    color: var(--ap-pink);
}

.confirm-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
