/**
 * 수강신청 페이지 CSS
 * Figma 디자인 기반
 */

/* =========================================================================
   페이지 기본 설정
   ========================================================================= */
.course-apply-page {
    background-color: #f8f9fa;
}

/* 배경 이미지: .course-info-page .content-container 에서 pages.css로 처리 */

/* =========================================================================
   메인 콘텐츠
   ========================================================================= */
.course-apply-content {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.course-apply-content .es-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================================
   목록으로 버튼
   ========================================================================= */
.course-apply-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 16px;
    width: 100%;
    max-width: 500px;
    transition: color 0.2s;
}

.course-apply-back:hover {
    color: #9333ea;
}

/* =========================================================================
   수강신청 카드
   ========================================================================= */
.course-apply-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 카드 헤더 - 다크 배경 */
.course-apply-card__header {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #fff;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

/* 선택된 상품 정보 배너 (수강안내에서 넘어온 경우) */
.selected-product-banner {
    background: linear-gradient(135deg, #8105ed 0%, #a855f7 100%);
    color: white;
    padding: 12px 20px;
    margin: 0;
}

.selected-product-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.selected-product-info i {
    font-size: 18px;
}

.product-divider {
    opacity: 0.5;
}

.product-type {
    font-weight: 600;
}

.product-schedule {
    color: #fef08a;
    font-weight: 600;
    font-size: 13px;
}

/* 카드 바디 */
.course-apply-card__body {
    padding: 24px;
}

/* =========================================================================
   섹션 공통
   ========================================================================= */
.course-apply-section {
    margin-bottom: 24px;
}

.course-apply-section:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   섹션 구분선 (수업 선택 ↔ 수업 정보 사이)
   ========================================================================= */
.course-apply-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 50px 0;
}

.course-apply-section__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

/* =========================================================================
   라디오 버튼 그룹 (수업 타입)
   ========================================================================= */
.course-apply-radio-group {
    display: flex;
    gap: 12px;
}

.course-apply-radio {
    flex: 1;
    cursor: pointer;
}

.course-apply-radio input[type="radio"] {
    display: none;
}

.course-apply-radio__box {
    display: block;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-align: center;
    transition: all 0.2s;
}

.course-apply-radio--active .course-apply-radio__box,
.course-apply-radio input[type="radio"]:checked + .course-apply-radio__box {
    background: #9333ea;
    border-color: #9333ea;
    color: #fff;
}

/* =========================================================================
   라디오 그리드 (수업 요일)
   ========================================================================= */
.course-apply-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* =========================================================================
   레벨 선택
   ========================================================================= */
.course-apply-level-scroll {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.course-apply-level-scroll::-webkit-scrollbar {
    display: none;
}

.course-apply-level-list {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}

.course-apply-level-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.course-apply-level-btn:hover {
    border-color: #9333ea;
    color: #9333ea;
}

.course-apply-level-btn--active {
    background: #9333ea;
    border-color: #9333ea;
    color: #fff;
}

.course-apply-level-notice {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #9333ea;
}

.course-apply-level-notice i {
    margin-right: 4px;
}

/* =========================================================================
   검색 입력
   ========================================================================= */
.course-apply-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.course-apply-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.course-apply-search__input:focus {
    border-color: #9333ea;
}

.course-apply-search__btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.course-apply-search__btn:hover {
    border-color: #9333ea;
    color: #9333ea;
}

/* =========================================================================
   수업 카드 목록 (Figma 디자인 정확 반영)
   ========================================================================= */
.course-apply-class-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 450px; /* 약 5개 카드 높이 */
    overflow-y: auto;
    padding-right: 4px; /* 스크롤바 공간 */
}

/* 스크롤바 스타일링 */
.course-apply-class-list::-webkit-scrollbar {
    width: 6px;
}

.course-apply-class-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.course-apply-class-list::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

.course-apply-class-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.course-apply-class-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.course-apply-class-card:hover {
    border-color: #c4a8ff;
    background: rgba(129, 5, 237, 0.02);
}

/* 선택된 카드 - Figma: border 2px #8105ed, bg rgba(129,5,237,0.05) */
.course-apply-class-card--selected {
    border: 2px solid #8105ed;
    background: rgba(129, 5, 237, 0.05);
    padding: 11px 17px; /* border 2px 보정 */
}

/* 강사 이미지 - 원형 (60x60px) */
.course-apply-class-card__img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    object-fit: cover;
    background: #f3f3f3;
}

.course-apply-class-card__info {
    flex: 1;
    min-width: 0;
}

/* 강사명 + 배지 한 줄 */
.course-apply-class-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

/* 강사명 - 18px Bold, #121212 */
.course-apply-class-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    line-height: normal;
}

/* 배지 그룹 */
.course-apply-class-card__badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 배지 공통 - Figma: 12px, padding 4px 6px, border-radius 50px */
.course-apply-class-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}

/* 수업 타입/요일 배지 - Figma: bg rgba(129,5,237,0.05), color #8105ed */
.course-apply-class-card__badge--type,
.course-apply-class-card__badge--schedule {
    background: rgba(129, 5, 237, 0.05);
    color: #8105ed;
}

/* 레벨 배지 */
.course-apply-class-card__badge--level {
    background: #fef3c7;
    color: #92400e;
}

/* 상세 정보 컨테이너 - Figma: gap 2px vertical */
.course-apply-class-card__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 상세 정보 행 - Figma: 12px Regular, #121212, icon 10px, gap 4px */
.course-apply-class-card__detail-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #121212;
    line-height: normal;
}

.course-apply-class-card__detail-row i {
    width: 10px;
    height: 10px;
    font-size: 10px;
    color: #121212;
}

/* [추가신청] 일할계산 가격 행 */
.course-apply-class-card__detail-row--prorated {
    margin-top: 2px;
    color: #333;
}

.course-apply-class-card__detail-row--prorated i {
    color: #8105ed;
}

.course-apply-class-card__original-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.85em;
}

.course-apply-class-card__prorated-price {
    color: #e74c3c;
    font-weight: 700;
}

.course-apply-class-card__remaining-count {
    color: #888;
    font-size: 0.85em;
    margin-left: 2px;
}

/* 정원 표시 - 숫자 bold */
.course-apply-class-card__slots-count {
    font-weight: 700;
}

/* 하위 호환용 클래스 */
.course-apply-class-card__detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #121212;
}

.course-apply-class-card__detail i {
    width: 10px;
    font-size: 10px;
    color: #121212;
}

.course-apply-class-card__period {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #121212;
}

.course-apply-class-card__period i {
    width: 10px;
    font-size: 10px;
    color: #121212;
}

/* =========================================================================
   선택된 수업 정보 (Figma 디자인 정확 반영)
   ========================================================================= */
.course-apply-selected-class {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f3f3f3;
    border-radius: 10px;
}

/* 강사 이미지 - 원형 (60x60px) */
.course-apply-selected-class__image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.course-apply-selected-class__image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    object-fit: cover;
    background: #f3f3f3;
}

.course-apply-selected-class__info {
    flex: 1;
}

/* 강사명 - Figma: 18px Bold, #121212 */
.course-apply-selected-class__name {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 2px;
    line-height: normal;
}

/* 배지 그룹 */
.course-apply-selected-class__header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

/* 상세 정보 - Figma: 12px, #121212, icon 10px */
.course-apply-selected-class__detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #121212;
    margin-bottom: 2px;
}

.course-apply-selected-class__detail i {
    width: 10px;
    font-size: 10px;
    color: #121212;
}

.course-apply-selected-class__period {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #121212;
}

.course-apply-selected-class__period i {
    width: 10px;
    font-size: 10px;
    color: #121212;
}

/* =========================================================================
   쿠폰 사용
   ========================================================================= */
.course-apply-coupon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-apply-coupon__select {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.course-apply-coupon__available {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

/* =========================================================================
   결제 수단
   ========================================================================= */
.course-apply-payment-method {
    display: flex;
    gap: 8px;
}

.course-apply-payment-btn {
    flex: 1;
    cursor: pointer;
}

.course-apply-payment-btn input[type="radio"] {
    display: none;
}

.course-apply-payment-btn span {
    display: block;
    padding: 12px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-align: center;
    transition: all 0.2s;
}

.course-apply-payment-btn--active span,
.course-apply-payment-btn input[type="radio"]:checked + span {
    background: #9333ea;
    border-color: #9333ea;
    color: #fff;
}

/* =========================================================================
   결제 정보 입력
   ========================================================================= */
.course-apply-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-apply-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-apply-input-label {
    flex-shrink: 0;
    width: 70px;
    font-size: 13px;
    color: #666;
}

.course-apply-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.course-apply-input:focus {
    border-color: #9333ea;
}

/* =========================================================================
   총 결제 금액
   ========================================================================= */
.course-apply-total {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.course-apply-total__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.course-apply-total__title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.course-apply-total__price {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
}

.course-apply-total__details {
    padding: 12px 16px;
}

.course-apply-total__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.course-apply-total__row--discount span:last-child {
    color: #dc2626;
}

/* =========================================================================
   결제하기 버튼
   ========================================================================= */
.course-apply-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-apply-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.course-apply-submit-btn:active {
    transform: translateY(0);
}

/* =========================================================================
   캐릭터 이미지 영역
   ========================================================================= */
.course-apply-characters {
    padding: 40px 0;
    text-align: center;
}

.course-apply-characters__images img {
    max-width: 300px;
    height: auto;
}

/* =========================================================================
   반응형 스타일
   ========================================================================= */

/* 태블릿 */
@media (max-width: 768px) {
    .course-apply-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .course-apply-card__body {
        padding: 20px;
    }

    .course-apply-radio-group {
        flex-direction: column;
    }

    .course-apply-radio-grid {
        grid-template-columns: 1fr;
    }

    .course-apply-payment-method {
        flex-direction: column;
    }

    .course-apply-input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .course-apply-input-label {
        width: auto;
    }

    .course-apply-input {
        width: 100%;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .course-apply-card__header {
        padding: 14px 16px;
        font-size: 14px;
    }

    .course-apply-card__body {
        padding: 16px;
    }

    .course-apply-section__title {
        font-size: 13px;
    }

    .course-apply-level-scroll {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .course-apply-class-card {
        padding: 10px 14px;
        gap: 8px;
    }

    .course-apply-class-card__img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .course-apply-class-card__name {
        font-size: 16px;
    }

    .course-apply-class-card__badge {
        font-size: 11px;
        padding: 3px 5px;
    }

    .course-apply-class-card__detail-row {
        font-size: 11px;
    }

    .course-apply-class-card__detail-row i {
        width: 9px;
        font-size: 9px;
    }

    .course-apply-selected-class {
        padding: 10px 14px;
        gap: 8px;
    }

    .course-apply-selected-class__image {
        width: 50px;
        height: 50px;
    }

    .course-apply-selected-class__image img {
        border-radius: 50%;
    }

    .course-apply-selected-class__name {
        font-size: 16px;
    }

    .course-apply-total__price {
        font-size: 18px;
    }

    .course-apply-submit-btn {
        padding: 14px;
        font-size: 15px;
    }

    .course-apply-discount-tabs {
        flex-wrap: wrap;
    }

    .course-apply-discount-tab {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* =========================================================================
   할인 탭 & 쿼터 배지
   ========================================================================= */
.course-apply-discount-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.course-apply-discount-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-apply-discount-tab:hover:not(.disabled) {
    border-color: var(--primary-color, #4a90d9);
    background: #f0f7ff;
}

.course-apply-discount-tab.active {
    border-color: var(--primary-color, #4a90d9);
    background: var(--primary-color, #4a90d9);
    color: #fff;
}

.course-apply-discount-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #dee2e6;
    background: #f8f9fa;
    color: #adb5bd;
}

/* 쿼터 배지 */
.quota-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    white-space: nowrap;
}

.course-apply-discount-tab.active .quota-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.quota-badge--closed {
    background: #ffebee;
    color: #c62828;
}

.course-apply-discount-tab.disabled .quota-badge--closed {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* =========================================================================
   고정 정보 배너 (할인/수업타입 - 변경 불가)
   ========================================================================= */
.course-apply-fixed-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.course-apply-fixed-info__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-apply-fixed-info__label {
    font-size: 13px;
    color: #6c757d;
}

.course-apply-fixed-info__value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

.course-apply-fixed-info__divider {
    width: 1px;
    height: 24px;
    background: #dee2e6;
}

.course-apply-fixed-info__change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.course-apply-fixed-info__change:hover {
    color: #9333ea;
}

/* =========================================================================
   패키지 선택 섹션
   ========================================================================= */
.course-apply-required {
    font-size: 12px;
    font-weight: 500;
    color: #dc2626;
    margin-left: 4px;
}

.course-apply-section__desc {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 12px 0;
}

.course-apply-package-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-apply-package-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.course-apply-package-card:hover {
    border-color: #d8b4fe;
    background: #faf5ff;
}

.course-apply-package-card--selected {
    border-color: #9333ea;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, #fff 100%);
}

.course-apply-package-card input[type="radio"] {
    display: none;
}

.course-apply-package-card__content {
    flex: 1;
}

.course-apply-package-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.course-apply-package-card__group {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e0e7ff;
    color: #4338ca;
}

.course-apply-package-card__day {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.course-apply-package-card__schedule {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 2px;
}

.course-apply-package-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #9333ea;
}

.course-apply-package-card__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #e5e7eb;
    font-size: 20px;
}

.course-apply-package-card--selected .course-apply-package-card__check {
    color: #9333ea;
}

/* =========================================================================
   레벨 선택 개선 (±1 제한)
   ========================================================================= */
.course-apply-member-level {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
}

.course-apply-member-level strong {
    color: #9333ea;
    font-weight: 600;
}

.course-apply-level-range {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
}

.course-apply-level-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa !important;
    border-color: #e5e7eb !important;
    color: #adb5bd !important;
}

.course-apply-level-btn--recommended {
    border: 2px solid #9333ea;
    background: #faf5ff;
    color: #9333ea;
}

.course-apply-level-btn--recommended.course-apply-level-btn--active {
    background: #9333ea;
    color: #fff;
}

/* =========================================================================
   반응형 - 고정 정보 배너
   ========================================================================= */
@media (max-width: 480px) {
    .course-apply-fixed-info {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .course-apply-fixed-info__item {
        flex-direction: column;
        gap: 4px;
    }

    .course-apply-fixed-info__divider {
        display: none;
    }

    .course-apply-fixed-info__change {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #dee2e6;
    }

    .course-apply-package-card {
        padding: 12px;
    }

    .course-apply-package-card__day {
        font-size: 13px;
    }

    .course-apply-package-card__price {
        font-size: 14px;
    }
}

/* =========================================================================
   수업 없음 메시지 강조
   ========================================================================= */
.course-apply-no-classes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border: 2px dashed #e74c3c;
    border-radius: 12px;
    text-align: center;
}

.course-apply-no-classes__icon {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 16px;
}

.course-apply-no-classes__title {
    font-size: 18px;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 8px 0;
}

.course-apply-no-classes__desc {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* 수업 정보 빈 상태 */
.course-apply-no-class-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-size: 14px;
}

.course-apply-no-class-info i {
    color: #9ca3af;
}

/* =========================================================================
   총 결제 금액 레이아웃 변경
   ========================================================================= */
.course-apply-total__details {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.course-apply-total__row--base {
    font-weight: 600;
    color: #333;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.course-apply-total__row--base span:last-child {
    font-size: 15px;
}

.course-apply-total__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.course-apply-total__footer .course-apply-total__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.course-apply-total__footer .course-apply-total__price {
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
}

/* 결제 버튼 비활성화 */
.course-apply-submit-btn--disabled {
    background: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.course-apply-submit-btn--disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================================================
   패키지 내 요일 선택 (Week Selection in Package Card)
   ========================================================================= */

.course-apply-week-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 0 12px 12px;
}

.course-apply-week-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #333;
    background: #fff;
}

.course-apply-week-option:hover {
    border-color: #d8b4fe;
    background: #faf5ff;
}

.course-apply-week-option--active {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
}

.course-apply-week-option input[type="radio"] {
    display: none;
}

.course-apply-week-option span {
    flex: 1;
}

/* 선택됨 표시 아이콘 (체크) */
.course-apply-week-option--active::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #9333ea;
    font-size: 12px;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .course-apply-week-select {
        gap: 4px;
    }

    .course-apply-week-option {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ===== 수업 목록 카운트 ===== */
.course-apply-class-count {
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.course-apply-class-count strong {
    color: #333;
    font-weight: 600;
}

/* ===== 더보기 버튼 ===== */
.course-apply-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.course-apply-load-more:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f8f9fa;
}

.course-apply-load-more i {
    font-size: 12px;
}

/* ===== 무한 스크롤 로딩 인디케이터 ===== */
.course-apply-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #999;
    font-size: 13px;
}

.course-apply-loading-more i {
    color: #9333ea;
}
