/* Schedule booking — Betopia partner portal theme (teal, matches agreement portal) */
:root {
    --btp-schedule-teal: #0f766e;
    --btp-schedule-teal-dark: #0b5a54;
    --btp-schedule-navy: #1e4f7a;
    --btp-schedule-text: #0f172a;
    --btp-schedule-muted: #64748b;
    --btp-schedule-border: #dbe7ee;
    --btp-schedule-bg: #edf3f6;
    --btp-schedule-card: #ffffff;
    --btp-schedule-radius: 14px;
}

#betopia_schedule_page {
    background: var(--btp-schedule-bg);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-bottom: 3rem;
    min-height: 70vh;
}

#betopia_schedule_page .btp-hero--schedule {
    background: linear-gradient(125deg, #0f766e 0%, #127b8d 52%, #1e4f7a 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 32px calc(50vw - 50% + 24px) 28px;
    position: relative;
    overflow: hidden;
}

#betopia_schedule_page .btp-hero--schedule::before,
#betopia_schedule_page .btp-hero--schedule::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

#betopia_schedule_page .btp-hero--schedule::before {
    width: 280px;
    height: 280px;
    top: -100px;
    right: -60px;
}

#betopia_schedule_page .btp-hero--schedule::after {
    width: 160px;
    height: 160px;
    bottom: -50px;
    left: -40px;
}

#betopia_schedule_page .btp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
}

#betopia_schedule_page .btp-hero__greeting {
    font-size: 0.95rem;
    color: rgba(241, 250, 255, 0.86);
    margin: 0 0 6px;
}

#betopia_schedule_page .btp-hero__title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

#betopia_schedule_page .btp-hero__sub {
    font-size: 0.92rem;
    color: rgba(241, 250, 255, 0.8);
    margin: 0;
}

.betopia-schedule-content {
    max-width: 1140px;
    margin-top: 1.5rem;
}

.betopia-schedule-card {
    background: var(--btp-schedule-card);
    border: 1px solid var(--btp-schedule-border);
    border-radius: var(--btp-schedule-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.betopia-schedule-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--btp-schedule-teal);
    margin-bottom: 0.25rem;
}

.betopia-schedule-subtitle {
    color: var(--btp-schedule-muted);
    margin-bottom: 1.25rem;
}

.betopia-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.85rem;
}

.betopia-calendar-grid .cal-dow {
    text-align: center;
    font-weight: 600;
    color: var(--btp-schedule-muted);
    padding: 4px 0;
}

.betopia-calendar-grid .cal-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--btp-schedule-text);
}

.betopia-calendar-grid .cal-day:hover:not(:disabled) {
    background: #ecfeff;
}

.betopia-calendar-grid .cal-day.selected {
    background: linear-gradient(135deg, var(--btp-schedule-teal), var(--btp-schedule-navy));
    color: #fff;
    font-weight: 600;
}

.betopia-calendar-grid .cal-day:disabled,
.betopia-calendar-grid .cal-day.empty {
    color: #cbd5e1;
    cursor: default;
}

.betopia-calendar-nav .btn-outline-secondary {
    border-color: var(--btp-schedule-border);
    color: var(--btp-schedule-teal);
}

.betopia-calendar-nav .btn-outline-secondary:hover {
    background: #ecfeff;
    border-color: var(--btp-schedule-teal);
    color: var(--btp-schedule-teal-dark);
}

.betopia-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.betopia-slot-btn {
    border: 1px solid var(--btp-schedule-border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--btp-schedule-text);
}

.betopia-slot-btn:hover {
    border-color: var(--btp-schedule-teal);
    background: #f0fdfa;
}

.betopia-slot-btn.selected {
    background: linear-gradient(135deg, var(--btp-schedule-teal), var(--btp-schedule-navy));
    border-color: var(--btp-schedule-teal);
    color: #fff;
}

#betopia_schedule_page .form-control:focus {
    border-color: var(--btp-schedule-teal);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.betopia-schedule-submit {
    background: linear-gradient(135deg, var(--btp-schedule-teal), var(--btp-schedule-navy)) !important;
    border: none !important;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
}

.betopia-schedule-submit:hover:not(:disabled) {
    filter: brightness(0.95);
}

.betopia-schedule-submit:disabled {
    opacity: 0.6;
}

.betopia-schedule-legal {
    line-height: 1.4;
    color: var(--btp-schedule-muted);
}

#betopia_schedule_page .alert-info {
    background: linear-gradient(120deg, #ecfeff 0%, #f0f9ff 100%);
    border-color: #bae6fd;
    color: #0f4c5c;
}
