:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --card: #ffffff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --border: #e2e8f0;
    --disabled: #f1f5f9;
    --success: #10b981;
    --error: #ef4444;
}

* {
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.wrapper {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.main-container {
    background: var(--card);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none !important;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
}

.main-header p {
    color: var(--text-sub);
    margin: 0;
}

/* Sections */
.booking-section {
    margin-bottom: 48px;
    transition: all 0.3s ease;
    scroll-margin-top: 40px;
}

.booking-section.disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* Calendar */
.calendar-container {
    padding: 20px;
    background: #fcfdfe;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h4 {
    margin: 0;
    font-size: 16px;
}

.calendar-nav button {
    background: #eff6ff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary);
}

.calendar-grid-header,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.calendar-day:hover:not(.disabled) {
    background: #f1f5f9;
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: white !important;
}

.calendar-day.today {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-day.other-month {
    visibility: hidden;
}

/* Trainer Grid */
.trainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.trainer-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.trainer-card:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.trainer-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.trainer-avatar {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.trainer-info h4 {
    margin: 0;
    font-size: 15px;
}

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.time-slot.disabled {
    background: var(--disabled);
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: var(--disabled);
}

/* Survey Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: #fbfcfe;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-checkbox input {
    display: none;
}

.chip-checkbox span {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.chip-checkbox input:checked+span {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.selection-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
    border: 1px dashed var(--border);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.success-toast {
    background: var(--success);
}

.error-toast {
    background: var(--error);
}