* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

header p {
    color: #666;
    font-size: 15px;
}

.week-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.week-selector::-webkit-scrollbar {
    display: none;
}

.day-tab {
    position: relative;
    flex-shrink: 0;
    padding: 16px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 100px;
}

.day-tab:hover {
    border-color: #0a0a0a;
}

.day-tab.active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: white;
}

.day-tab .day-name {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.day-tab .day-date {
    font-size: 20px;
    font-weight: 600;
}

.day-tab.active .day-name,
.day-tab.active .day-date {
    color: white;
}

.schedule-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
}

.selected-day {
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
}

.period {
    margin-bottom: 28px;
}

.period:last-child {
    margin-bottom: 0;
}

.period-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 14px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #0a0a0a;
    background: #fafafa;
}

.time-slot.selected {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: white;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
    text-decoration: line-through;
}

.time-slot.unavailable:hover {
    border-color: #f0f0f0;
    background: #f5f5f5;
}

.confirm-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.selected-info {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
}

.selected-info.visible {
    display: block;
}

.selected-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.selected-info strong {
    font-size: 18px;
    color: #0a0a0a;
}

.confirm-btn {
    width: 100%;
    padding: 16px 24px;
    background: #0a0a0a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.confirm-btn:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.back-btn {
    width: 100%;
    padding: 16px 24px;
    background: #ce0909;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #9b0101;
    transform: translateY(-1px);
}

.form-section {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

@media (max-width: 600px) {
    .container {
        padding: 16px;
    }

    header h1 {
        font-size: 24px;
    }

    .day-tab {
        padding: 12px 16px;
        min-width: 80px;
    }

    .day-tab .day-date {
        font-size: 18px;
    }

    .schedule-section {
        padding: 16px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-slot {
        padding: 12px 6px;
        font-size: 14px;
    }
}