/* Scheduling flow - matches contact/confirm pages */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.schedule-container {
    max-width: 680px;
    margin: 90px auto 40px;
    padding: 0 24px;
}

.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 12px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    transition: color 0.3s ease;
}

.progress-step.active {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed {
    color: var(--text);
}

.progress-divider {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

.schedule-header {
    text-align: center;
    margin-bottom: 24px;
}

.schedule-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.schedule-header p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.schedule-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.field-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
    width: 100%;
}

.date-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.date-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.date-nav:hover {
    border-color: var(--primary);
    background: rgba(181, 123, 255, 0.1);
    color: var(--primary);
}

.date-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    min-width: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-row.sliding {
    transform: scale(0.98);
    opacity: 0.7;
}

.date-row {
    scrollbar-width: none;
}

.date-row::-webkit-scrollbar {
    display: none;
}

.date-cell {
    min-height: 56px;
    min-width: 56px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.date-cell.is-selected {
    background: rgba(181, 123, 255, 0.15);
    border: 1px solid rgba(181, 123, 255, 0.5);
}

.date-cell.is-past {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.date-cell.is-past .date-num,
.date-cell.is-past .date-day {
    color: var(--muted);
}

.booked-label {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.date-cell:hover:not(.is-selected):not(.is-past) {
    background: rgba(181, 123, 255, 0.08);
    border-color: rgba(181, 123, 255, 0.3);
}

.date-cell:hover:not(.is-selected) .date-num,
.date-cell:hover:not(.is-selected) .date-day {
    color: var(--primary);
}

.date-cell:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.date-day {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.date-num {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.date-cell.is-selected .date-num,
.date-cell.is-selected .date-day {
    color: var(--primary);
}

.time-group {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.time-group.is-visible {
    display: flex;
}

.time-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.time-row::-webkit-scrollbar {
    display: none;
}

.time-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 8px 6px;
    min-width: 32px;
}

.time-cell {
    min-height: 44px;
    min-width: 60px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.time-cell:hover:not(.is-selected) {
    background: rgba(181, 123, 255, 0.08);
    border-color: rgba(181, 123, 255, 0.3);
    color: var(--primary);
}

.time-cell.is-selected {
    color: var(--primary);
    background: rgba(181, 123, 255, 0.15);
    border-color: rgba(181, 123, 255, 0.5);
}

.action-buttons {
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.action-buttons .btn {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #b57bff, var(--primary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(181, 123, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Form styling for contact step */

.step-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-row label {
    font-size: 0.9rem;
    font-weight: 600;
}

.input-row input {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.input-row input:focus {
    outline: none;
    border-bottom-color: #b57bff;
}

.input-row small {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Confirmation summary */

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.summary-value {
    font-weight: 600;
}

.summary-action {
    min-width: 70px;
    text-align: right;
    display: inline-flex;
    justify-content: flex-end;
}

.summary-sub {
    font-size: 0.95rem;
    color: var(--muted);
}

.confirm-note {
    margin: 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .schedule-container {
        margin-top: 70px;
        padding: 0 16px;
    }

    .schedule-header h1 {
        font-size: 16px;
    }

    .schedule-form {
        padding: 16px;
    }

    .progress-tracker {
        font-size: 11px;
        padding: 6px;
    }

    .progress-divider {
        width: 12px;
    }

    .action-buttons {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .date-cell {
        min-width: 50px;
        min-height: 50px;
    }

    .time-cell {
        min-width: 54px;
        min-height: 40px;
    }
}
