/* 강사 예약 공개 페이지 스타일 */
.msfah-booking {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    color: #1e293b;
}

.msfah-booking * {
    box-sizing: border-box;
}

/* 헤더 */
.msfah-booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.msfah-booking-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.msfah-booking-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* 뒤로가기 버튼 */
.msfah-booking-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.msfah-booking-back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* 강사 카드 그리드 */
.msfah-booking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    background: #e8f0fe;
    border-radius: 20px;
}

.msfah-booking-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 24px 20px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.msfah-booking-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 카드 내부 사진 배경 곡선 */
.msfah-booking-card-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 8px;
    margin-bottom: 16px;
}

.msfah-booking-card-photo-wrap::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 80%;
    background: #e8edf3;
    border-radius: 50% 50% 20px 20px;
    z-index: 0;
}

.msfah-booking-card-photo {
    width: 180px;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
    object-position: top;
    margin: 0 auto;
    display: block;
    border: none;
    position: relative;
    z-index: 1;
}

.msfah-booking-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.msfah-booking-card-bio {
    font-size: 13px;
    color: #8892a4;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 일정 선택 뷰 */
.msfah-booking-schedule {
    max-width: 900px;
    margin: 0 auto;
}

.msfah-booking-instructor-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.msfah-booking-instructor-info img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.msfah-booking-instructor-info h3 {
    font-size: 20px;
    margin: 0 0 4px;
}

.msfah-booking-instructor-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 시간표 그리드 */
.msfah-booking-timetable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    user-select: none;
}

.msfah-booking-timetable th {
    background: #f1f5f9;
    padding: 10px 8px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.msfah-booking-timetable td {
    border: 1px solid #e2e8f0;
    padding: 0;
    height: 36px;
    text-align: center;
    vertical-align: middle;
    transition: background 0.15s;
}

.msfah-booking-timetable td.time-label {
    background: #f8fafc;
    font-weight: 600;
    font-size: 12px;
    color: #64748b;
    width: 60px;
    padding: 4px;
}

.msfah-booking-timetable td.slot-available {
    background: #dcfce7;
    cursor: pointer;
}

.msfah-booking-timetable td.slot-available:hover {
    background: #bbf7d0;
}

.msfah-booking-timetable td.slot-selected {
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.msfah-booking-timetable td.slot-selected:hover {
    background: #2563eb;
}

.msfah-booking-timetable td.slot-empty {
    background: #f8fafc;
    color: #cbd5e1;
}

/* 선택 요약 */
.msfah-booking-summary {
    margin-top: 24px;
    padding: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}

.msfah-booking-summary-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1e40af;
}

.msfah-booking-summary-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.msfah-booking-slot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #93c5fd;
    border-radius: 20px;
    font-size: 13px;
    color: #1e40af;
}

.msfah-booking-slot-tag .remove {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
}

.msfah-booking-tier-info {
    font-size: 15px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msfah-booking-tier-label {
    font-weight: 700;
    color: #1e40af;
    font-size: 18px;
}

/* 결제 버튼 */
.msfah-booking-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.msfah-booking-submit:hover {
    background: #2563eb;
}

.msfah-booking-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* 범례 */
.msfah-booking-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}

.msfah-booking-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.msfah-booking-legend-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* 로딩 */
.msfah-booking-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

/* 메시지 */
.msfah-booking-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.msfah-booking-message--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.msfah-booking-message--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 반응형 */
@media (max-width: 768px) {
    .msfah-booking {
        padding: 12px;
    }

    .msfah-booking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .msfah-booking-card {
        padding: 16px 14px 14px;
    }

    .msfah-booking-card-photo {
        width: 120px;
        height: 150px;
    }

    .msfah-booking-card-name {
        font-size: 16px;
    }

    .msfah-booking-timetable {
        font-size: 11px;
    }

    .msfah-booking-timetable td {
        height: 30px;
    }

    .msfah-booking-legend {
        flex-wrap: wrap;
        gap: 12px;
    }

    .msfah-booking-summary-slots {
        gap: 6px;
    }
}
