
/* ── Portal booking wizard: progress, calendar, time slots ─────────── */

.portal-progress-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.portal-pb-step {
    flex: 1;
    text-align: center;
}

.portal-pb-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0;
    border-bottom: 2px solid #e5e7eb;
}

.portal-pb-step.is-active .portal-pb-label {
    color: #1e73be;
    border-bottom-color: #1e73be;
}

.portal-pb-step.is-done .portal-pb-label {
    color: #059669;
    border-bottom-color: #059669;
}

.portal-pb-line {
    flex: 0 0 12px;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 18px;
}

.portal-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.portal-step-change {
    background: none;
    border: none;
    color: #1e73be;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.portal-chosen-val {
    font-size: 0.8125rem;
    font-weight: 600;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 999px;
    padding: 4px 12px;
    border: 1px solid #fed7aa;
}

.portal-calendar-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.portal-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.portal-cal-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    color: #374151;
}

.portal-cal-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.portal-cal-month-label {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.portal-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.portal-cal-weekdays span {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.portal-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.portal-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    color: #9ca3af;
    border: none;
    background: transparent;
    padding: 0;
}

.portal-cal-day.portal-day-available {
    color: #1e73be;
    background: #eff6ff;
    cursor: pointer;
}

.portal-cal-day.portal-day-available:hover {
    background: #dbeafe;
}

.portal-cal-day.portal-day-today {
    box-shadow: inset 0 0 0 2px #93c5fd;
}

.portal-cal-day.portal-day-selected {
    background: #1e73be !important;
    color: #fff !important;
}

.portal-cal-day.portal-day-filler {
    visibility: hidden;
}

.portal-cal-loading,
.portal-no-slots {
    text-align: center;
    padding: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.portal-time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

@media (min-width: 480px) {
    .portal-time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portal-time-slot {
    border: 1.5px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    min-height: 44px;
}

.portal-time-slot:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.portal-time-slot.portal-slot-selected {
    border-color: #1e73be;
    background: #1e73be;
    color: #fff;
}

.portal-step-cta {
    width: 100%;
    margin-top: 12px;
}

.portal-chosen-summary {
    font-size: 0.875rem;
    color: #374151;
    white-space: pre-line;
    margin: 12px 0;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.portal-form-error {
    color: #dc2626;
    font-size: 0.8125rem;
    margin: 8px 0;
    font-weight: 500;
}

.portal-consent-wrap {
    margin: 12px 0;
}

.portal-consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
    cursor: pointer;
}

.portal-consent-label input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.portal-booking-success {
    padding: 24px 16px 32px;
    text-align: center;
}

.portal-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.portal-booking-success h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.portal-success-datetime {
    font-weight: 700;
    color: #111827;
    margin: 12px 0;
}

.portal-success-ics {
    display: inline-block;
    margin: 8px 0 16px;
    color: #1e73be;
    font-weight: 600;
    text-decoration: none;
}

.portal-booking-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
}

.silva-booking-modal-inner {
    position: relative;
}

.req {
    color: #dc2626;
}

.portal-step[hidden] {
    display: none !important;
}

.portal-step.portal-step-visible {
    animation: portal-step-in 0.25s ease both;
}

@keyframes portal-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
