.wl-sched {
    --wl-purple: #4F1E60;
    --wl-purple-soft: #6b2d7a;
    --wl-yellow: #f5c518;
    --wl-yellow-hover: #e0b10f;
    --wl-text: #3d2a48;
    --wl-muted: #6b5a74;
    --wl-line: rgba(79, 30, 96, 0.12);
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
    min-height: 70vh;
}

.wl-sched__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(245, 197, 24, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(79, 30, 96, 0.12), transparent 50%),
        linear-gradient(165deg, #faf6fc 0%, #f0e4f5 45%, #e8d5ef 100%);
    z-index: 0;
}

.wl-sched .container {
    position: relative;
    z-index: 1;
}

.wl-sched__header {
    text-align: center;
    margin-bottom: 36px;
}

.wl-sched__brand {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 900;
    color: var(--wl-purple);
    letter-spacing: -0.02em;
}

.wl-sched__title {
    margin: 0 0 12px;
    color: var(--wl-purple);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.wl-sched__subtitle {
    margin: 0 auto;
    max-width: 560px;
    color: var(--wl-muted);
    font-size: 15px;
    line-height: 1.85;
}

.wl-sched__panel {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--wl-line);
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(79, 30, 96, 0.1);
    padding: 28px 26px 32px;
    backdrop-filter: blur(8px);
    animation: wlSchedIn 0.45s ease both;
}

@keyframes wlSchedIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.wl-sched__disabled {
    text-align: center;
    color: var(--wl-muted);
    margin: 24px 0;
}

.wl-sched__steps {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.wl-sched__step {
    font-size: 12px;
    font-weight: 700;
    color: var(--wl-muted);
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3ebf7;
    transition: background 0.25s, color 0.25s;
}

.wl-sched__step.is-active {
    background: var(--wl-purple);
    color: #fff;
}

.wl-sched__step.is-done {
    background: rgba(79, 30, 96, 0.18);
    color: var(--wl-purple);
}

.wl-sched__view-title {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--wl-purple);
    font-weight: 800;
}

.wl-sched__back {
    border: 0;
    background: transparent;
    color: var(--wl-purple);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 0;
}

.wl-sched__dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.wl-sched__date-btn {
    border: 1px solid var(--wl-line);
    background: #fcfafd;
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wl-sched__date-btn:hover,
.wl-sched__date-btn.is-selected {
    border-color: var(--wl-purple);
    box-shadow: 0 8px 20px rgba(79, 30, 96, 0.12);
    transform: translateY(-2px);
}

.wl-sched__date-btn .dow {
    display: block;
    font-weight: 800;
    color: var(--wl-purple);
    font-size: 14px;
    margin-bottom: 4px;
}

.wl-sched__date-btn .ymd {
    display: block;
    font-size: 12px;
    color: var(--wl-muted);
    direction: ltr;
}

.wl-sched__date-btn .cnt {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--wl-purple-soft);
}

.wl-sched__selected-date,
.wl-sched__summary {
    margin: 0 0 16px;
    color: var(--wl-muted);
    font-size: 14px;
}

.wl-sched__times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wl-sched__time-chip {
    border: 1px solid var(--wl-line);
    background: #fff;
    color: var(--wl-purple);
    border-radius: 12px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    direction: ltr;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.wl-sched__time-chip:hover,
.wl-sched__time-chip.is-selected {
    background: var(--wl-purple);
    color: #fff;
    border-color: var(--wl-purple);
    transform: scale(1.04);
}

.wl-sched__form {
    text-align: right;
}

.wl-sched__field {
    margin-bottom: 14px;
}

.wl-sched__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wl-purple);
}

.wl-sched__field input,
.wl-sched__field textarea {
    width: 100%;
    border: 1px solid #dccfe4;
    border-radius: 12px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    background: #fcfafd;
    color: var(--wl-text);
    box-sizing: border-box;
}

.wl-sched__field input:focus,
.wl-sched__field textarea:focus {
    outline: none;
    border-color: var(--wl-purple);
    box-shadow: 0 0 0 3px rgba(79, 30, 96, 0.12);
}

.wl-sched__feedback {
    min-height: 1.4em;
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--wl-muted);
}

.wl-sched__feedback.is-error {
    color: #b42318;
}

.wl-sched__feedback.is-success {
    color: #067647;
}

.wl-sched__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.wl-sched__btn--primary {
    background: var(--wl-yellow);
    color: var(--wl-purple);
    width: 100%;
}

.wl-sched__btn--primary:hover {
    background: var(--wl-yellow-hover);
    transform: translateY(-1px);
}

.wl-sched__btn--primary:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.wl-sched__btn--ghost {
    background: #f3ebf7;
    color: var(--wl-purple);
}

.wl-sched__success {
    text-align: center;
    padding: 20px 8px;
    animation: wlSchedIn 0.4s ease both;
}

.wl-sched__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--wl-purple);
    color: var(--wl-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.wl-sched__success h2 {
    margin: 0 0 10px;
    color: var(--wl-purple);
}

.wl-sched__success-meta {
    color: var(--wl-muted);
    font-size: 14px;
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 640px) {
    .wl-sched {
        padding: 48px 0 64px;
    }

    .wl-sched__panel {
        padding: 20px 16px 24px;
        border-radius: 18px;
    }

    .wl-sched__dates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
