/**
 * 시험 선택 페이지 스타일
 */

/* 학생 정보 입력 페이지 스타일 */
.student-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 767px) {
    .student-info-container {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 479px) {
    .student-info-container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
}

.student-info-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.student-info-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.student-info-subtitle {
    color: #666;
    margin: 0;
}

.application-summary-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.application-summary-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.summary-info-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.summary-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.summary-detail-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    width: 100%;
}

.summary-detail-label {
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 60px;
    text-align: left;
}

.summary-detail-value {
    color: #333;
    white-space: nowrap;
    text-align: left;
    flex: 1;
}

.summary-price {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    margin-left: 1rem;
    flex-shrink: 0;
    text-align: right;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    flex-wrap: nowrap;
    gap: 1rem;
}

.total-label {
    white-space: nowrap;
    flex-shrink: 0;
}

.total-amount {
    white-space: nowrap;
    flex-shrink: 0;
}

.student-info-form-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: visible !important;
    position: relative;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
    overflow: visible !important;
    position: relative;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #1a1f3c;
    box-shadow: 0 0 0 3px rgba(26, 31, 60, 0.1);
}

/* exam-inquiry-block 스타일 - 드롭다운이 아래로 나타나도록 */
.exam-inquiry-block {
    overflow: visible !important;
    position: relative;
}

.exam-inquiry-block .form-group {
    position: relative;
    overflow: visible !important;
}

.exam-inquiry-block select.form-control {
    position: relative;
    z-index: 1;
}

/* 탐구2 드롭다운이 아래로 나타나도록 추가 스타일 */
.exam-inquiry-block .inquiry2-select {
    position: relative;
    z-index: 1;
}

.form-section .exam-inquiry-block {
    overflow: visible !important;
}

.form-section .form-group {
    overflow: visible !important;
}

.gender-options {
    display: flex;
    gap: 1rem;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.subject-checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.required {
    color: #dc3545;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 0;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.payment-summary-item.payment-total {
    font-size: 1.25rem;
    font-weight: 600;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #dee2e6;
    color: #333;
}

.btn-payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.btn-payment-primary {
    background: #1a1f3c;
    color: #fff;
}

.btn-payment-primary:hover {
    background: #2d3561;
    color: #fff;
}

.btn-payment-secondary {
    background: #f1f3f5;
    color: #333;
}

.btn-payment-secondary:hover {
    background: #e9ecef;
    color: #333;
}

.test-select-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    margin-bottom: 100px;
}

/* 제목 영역 */
.test-select-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.test-select-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 메인 컨텐츠 영역 */
.test-select-main {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 선택 영역 */
.test-select-area {
    margin-bottom: 2rem;
}

/* 컬럼 헤더 (탭으로 활용) */
.test-select-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
    min-width: 0;
    /* flexbox/grid 오버플로우 방지 */
}

.column-header.tab-header {
    font-weight: 600;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 0;
    /* grid 아이템 줄바꿈 방지 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 텍스트 줄바꿈 방지 */
}

.column-header.tab-header:hover {
    color: #1a1f3c;
    background: #f0f2f5;
}

.column-header.tab-header.active {
    color: #1a1f3c;
    border-bottom-color: #1a1f3c;
    background: #f0f2f5;
}


.btn-edit,
.btn-delete {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #1a1f3c;
    color: #fff;
}

.btn-edit:hover {
    background: #2d3561;
}

.btn-delete {
    background: #dc3545;
    color: #fff;
}

.btn-delete:hover {
    background: #c82333;
}

/* 탭 영역 */
.test-tabs-container {
    margin-top: 0;
}

.test-tabs {
    margin-bottom: 0;
}

.tab-panel {
    display: none;
    padding: 1.5rem 0;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* 시험 목록 */
.exam-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exam-item {
    padding: 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.exam-item:hover {
    border-color: #1a1f3c;
    background: #f0f2f5;
}

.exam-item.selected {
    border-color: #1a1f3c;
    background: #e3e8f0;
    border-width: 3px;
}

.exam-date {
    font-weight: 600;
    color: #1a1f3c;
    margin-bottom: 0.5rem;
}

.exam-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.exam-school {
    font-size: 0.9rem;
    color: #666;
}

.exam-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1f3c;
    margin-top: 0.5rem;
}

/* 일정 목록 */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule-date-group {
    margin-bottom: 1.5rem;
}

.schedule-date-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1f3c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    padding: 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-item:hover {
    border-color: #1a1f3c;
    background: #f0f2f5;
}

.schedule-item.selected {
    border-color: #1a1f3c;
    background: #e3e8f0;
    border-width: 3px;
}

.schedule-item-disabled {
    opacity: 0.6;
    background: #f5f5f5 !important;
    cursor: not-allowed;
    pointer-events: auto;
}

.schedule-item-disabled:hover {
    border-color: #e5e5e5;
    background: #f5f5f5 !important;
}

.schedule-date {
    font-weight: 600;
    color: #1a1f3c;
    font-size: 1.1rem;
    min-width: 60px;
}

.schedule-info {
    flex: 1;
}

.schedule-region {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.schedule-capacity {
    font-size: 0.9rem;
    color: #666;
}

/* 학교(지역) 정보 */
.school-info {
    max-width: 600px;
}

.school-selected {
    padding: 1.5rem;
    border: 2px solid #1a1f3c;
    border-radius: 8px;
    background: #e3e8f0;
}

.school-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1f3c;
    margin-bottom: 1rem;
}

.school-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.school-details>div {
    font-size: 1rem;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.school-details>div:last-child {
    border-bottom: none;
}

/* 지역 목록 */
.region-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.region-item {
    padding: 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.region-item:hover {
    border-color: #1a1f3c;
    background: #f0f2f5;
    color: #1a1f3c;
}

.region-item.selected {
    border-color: #1a1f3c;
    background: #e3e8f0;
    color: #1a1f3c;
    border-width: 3px;
}

/* 도시락 선택 */
.lunch-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lunch-item {
    padding: 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.lunch-item:hover {
    border-color: #1a1f3c;
    background: #f0f2f5;
}

.lunch-item.selected {
    border-color: #1a1f3c;
    background: #e3e8f0;
    border-width: 3px;
}

.lunch-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lunch-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.lunch-price {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

/* 학생정보 입력 폼 */
.student-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #1a1f3c;
    box-shadow: 0 0 0 3px rgba(26, 31, 60, 0.1);
}

.gender-options {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.gender-options label:hover {
    border-color: #1a1f3c;
    background: #f0f2f5;
}

.gender-options label input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: #1a1f3c;
    flex-shrink: 0;
}

.gender-options label input[type="radio"]:checked {
    accent-color: #1a1f3c;
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex !important;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 모든 탭 패널에서 tab-navigation이 동일하게 표시되도록 */
.test-tabs .tab-navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 학생정보 탭에서도 tab-navigation이 정상 표시되도록 */
#tab-student~.tab-navigation,
.tab-panel.active~.tab-navigation,
.test-tabs-container .tab-navigation {
    display: flex !important;
}

/* 학생정보 탭에서도 버튼 스타일이 적용되도록 */
.test-tabs .tab-navigation .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #1a1f3c;
    color: #fff;
}

.btn-primary:hover {
    background: #2d3561;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 하단 영역 */
.test-select-footer {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.application-summary {
    flex: 1;
}

.application-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.summary-list {
    min-height: 60px;
}

.empty-summary {
    color: #999;
    font-size: 0.9rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f0f2f5;
    border: 2px solid #1a1f3c;
    border-radius: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.summary-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.summary-detail-label {
    font-weight: 600;
    color: #666;
    min-width: 0;
}

.summary-detail-value {
    color: #333;
}

.summary-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-price {
    font-weight: 600;
    color: #1a1f3c;
    font-size: 1.1rem;
}

.total-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 120px;
}

.total-label {
    font-size: 0.9rem;
    color: #666;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* test/index.php의 결제 버튼 스타일은 별도로 유지 */
.test-select-footer .btn-payment {
    padding: 0.875rem 2.5rem;
    background: #1a1f3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.test-select-footer .btn-payment:hover:not(:disabled) {
    background: #2d3561;
}

.test-select-footer .btn-payment:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* 과목 선택 그룹 */
.subject-selection-group {
    margin-top: 0.5rem;
}

.subject-checkbox-group,
.subject-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.subject-radio-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.checkbox-label:hover,
.radio-label:hover {
    border-color: #1a1f3c;
    background: #f0f2f5;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: #1a1f3c;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+span,
.radio-label input[type="radio"]:checked+span {
    font-weight: 600;
    color: #1a1f3c;
}

.checkbox-label span,
.radio-label span {
    font-size: 0.9375rem;
    color: #333;
    user-select: none;
    line-height: 1.5;
}

/* 동의 체크박스 (단일 항목) - gap만 다르게 설정 */
.form-group .checkbox-label {
    gap: 0.75rem;
    font-weight: normal;
    margin-bottom: 0;
}

.form-group .checkbox-label .view-link {
    color: #1a1f3c;
    text-decoration: underline;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

.form-group .checkbox-label .view-link:hover {
    color: #2d3561;
    text-decoration: none;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

/* 디바이스별 반응형 디자인 */
/* 태블릿 세로 (768px ~ 1023px) */
@media (max-width: 1023px) {
    .test-select-container {
        padding: 1.25rem;
    }
}

/* 모바일 중형 (480px ~ 767px) */
@media (max-width: 767px) {
    /* student-info-container 최적화 */
    .student-info-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.25rem 1rem;
    }

    .student-info-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.875rem;
    }

    .student-info-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .student-info-subtitle {
        font-size: 0.9375rem;
    }

    .application-summary-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .application-summary-section h2 {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }

    .summary-item {
        padding: 0.875rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .summary-info-wrapper {
        width: 100%;
    }

    .summary-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .summary-details {
        gap: 0.5rem;
        width: 100%;
    }

    .summary-detail-item {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .summary-detail-label {
        min-width: 0;
        width: auto;
        text-align: left;
        font-size: 0.875rem;
    }

    .summary-detail-value {
        text-align: left;
        font-size: 0.875rem;
        word-break: break-word;
    }

    .summary-price {
        font-size: 1rem;
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: left;
    }

    .summary-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        font-size: 1rem;
    }

    .total-label {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.9375rem;
    }

    .total-amount {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 1.125rem;
    }

    .student-info-form-section {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .form-section-title {
        font-size: 1.0625rem;
        margin-bottom: 0.875rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.875rem;
        min-height: 48px;
        border-radius: 8px;
    }

    .gender-options {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gender-options label {
        width: 100%;
        padding: 0.875rem 1rem;
        min-height: 48px;
    }

    .subject-checkbox-group,
    .subject-radio-group {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.625rem;
    }

    .checkbox-label,
    .radio-label,
    .form-group .checkbox-label {
        gap: 0.5rem;
        padding: 0.75rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .form-actions {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        gap: 0.875rem;
    }

    .btn-payment-primary,
    .btn-payment-secondary {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .payment-summary {
        padding: 1.25rem;
    }

    .payment-summary-item {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .payment-summary-item.payment-total {
        font-size: 1.125rem;
        padding-top: 0.875rem;
        margin-top: 0.875rem;
    }

    /* test-select-container 최적화 */
    .test-select-container {
        padding: 1.25rem 1rem;
        margin-bottom: 2rem;
    }

    .test-select-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.875rem;
    }

    .test-select-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .test-select-main {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .test-select-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .column-header.tab-header {
        font-size: 1rem;
        padding: 1rem;
        min-height: 48px;
        border-radius: 8px;
    }

    .tab-panel {
        padding: 1.25rem 0;
    }

    .tab-panel h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }

    .exam-item,
    .schedule-item,
    .region-item,
    .lunch-item {
        padding: 1.25rem;
        border-radius: 12px;
        min-height: 60px;
    }

    .exam-date,
    .schedule-date {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .exam-name,
    .schedule-region {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .exam-price {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .schedule-date {
        min-width: auto;
    }

    .schedule-info {
        width: 100%;
    }

    .lunch-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .lunch-name {
        font-size: 0.95rem;
    }

    .lunch-price {
        font-size: 0.875rem;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1.25rem;
    }

    .tab-navigation .btn,
    #tab-student~.tab-navigation .btn,
    .tab-panel.active~.tab-navigation .btn {
        width: 100% !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 8px !important;
    }

    .selected-item {
        grid-template-columns: 1fr;
    }

    .student-form {
        max-width: 100%;
    }

    .test-select-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
        border-radius: 12px;
    }

    .application-summary {
        width: 100%;
    }

    .application-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }

    .summary-item {
        gap: 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .summary-info {
        width: 100%;
        order: 1;
    }

    .summary-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .summary-detail {
        width: 100%;
    }

    .summary-detail-item {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .summary-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 0.75rem;
        order: 2;
    }

    .summary-price {
        font-size: 1rem;
        text-align: left;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 0.25rem;
    }

    .summary-actions .btn-edit,
    .summary-actions .btn-delete {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
        border-radius: 8px;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .total-amount {
        align-items: flex-start;
        width: 100%;
        margin-top: 0.75rem;
    }

    .total-label {
        font-size: 0.9rem;
    }

    .total-value {
        font-size: 1.25rem;
    }

    .test-select-footer .btn-payment {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
    }

    /* 추가 모바일 최적화 */
    .schedule-date-group {
        margin-bottom: 1.25rem;
    }

    .schedule-date-header {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.5rem;
    }

    .schedule-items {
        gap: 0.875rem;
    }

    .school-info {
        max-width: 100%;
    }

    .school-selected {
        padding: 1.25rem;
    }

    .school-name {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }

    .school-details {
        gap: 0.5rem;
    }

    .school-details > div {
        font-size: 0.9375rem;
        padding: 0.5rem 0;
    }

    .exam-inquiry-block {
        padding: 1rem !important;
        margin-bottom: 0.875rem !important;
    }

    .exam-inquiry-block .form-group {
        margin-bottom: 0.875rem;
    }

    .exam-inquiry-block strong {
        font-size: 0.9375rem !important;
    }
}

/* 모바일 소형 (320px ~ 479px) */
@media (max-width: 479px) {
    /* student-info-container 최적화 */
    .student-info-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem 0.875rem;
    }

    .student-info-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .student-info-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .student-info-subtitle {
        font-size: 0.875rem;
    }

    .application-summary-section {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .application-summary-section h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .summary-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        gap: 0.625rem;
        flex-direction: column;
        align-items: stretch;
    }

    .summary-info {
        width: 100%;
        order: 1;
    }

    .summary-name {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .summary-detail {
        width: 100%;
    }

    .summary-detail-item {
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    .summary-detail-label {
        font-size: 0.8125rem;
    }

    .summary-detail-value {
        font-size: 0.8125rem;
    }

    .summary-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        margin-top: 0.75rem;
        order: 2;
    }

    .summary-price {
        font-size: 0.9375rem;
        text-align: left;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 0.25rem;
    }

    .summary-actions .btn-edit,
    .summary-actions .btn-delete {
        width: 100%;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
        border-radius: 8px;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .summary-total {
        font-size: 0.9375rem;
        padding: 0.875rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .total-label {
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .total-amount {
        font-size: 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .student-info-form-section {
        padding: 1.25rem 1rem;
    }

    .form-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .form-section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem;
        min-height: 48px;
    }

    .gender-options {
        gap: 0.625rem;
    }

    .gender-options label {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        min-height: 48px;
    }

    .subject-checkbox-group,
    .subject-radio-group {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .checkbox-label,
    .radio-label,
    .form-group .checkbox-label {
        gap: 0.4rem;
        padding: 0.625rem;
        font-size: 0.8125rem;
        min-height: 44px;
    }

    .checkbox-label span,
    .radio-label span,
    .form-group .checkbox-label span {
        font-size: 0.8125rem;
    }

    .form-actions {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        gap: 0.75rem;
    }

    .btn-payment-primary,
    .btn-payment-secondary {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .payment-summary {
        padding: 1rem;
    }

    .payment-summary-item {
        font-size: 0.875rem;
    }

    .payment-summary-item.payment-total {
        font-size: 1.0625rem;
    }

    /* test-select-container 최적화 */
    .test-select-container {
        padding: 1rem 0.875rem;
        margin-bottom: 2rem;
    }

    .test-select-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .test-select-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .test-select-main {
        padding: 1.25rem 1rem;
    }

    .test-select-columns {
        gap: 0.4rem;
    }

    .column-header.tab-header {
        font-size: 0.9rem;
        padding: 0.875rem 0.75rem;
        min-height: 48px;
    }

    .tab-panel {
        padding: 1rem 0;
    }

    .tab-panel h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .exam-item,
    .schedule-item,
    .region-item,
    .lunch-item {
        padding: 1rem;
        border-radius: 12px;
        min-height: 56px;
    }

    .exam-date,
    .schedule-date {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .exam-name,
    .schedule-region {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .exam-price {
        font-size: 0.95rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .schedule-date {
        min-width: auto;
    }

    .lunch-name {
        font-size: 0.9rem;
    }

    .lunch-price {
        font-size: 0.8125rem;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0.625rem;
        padding-top: 1rem;
    }

    .tab-navigation .btn,
    .test-tabs .tab-navigation .btn,
    #tab-student~.tab-navigation .btn {
        width: 100% !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
        min-height: 48px !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 8px !important;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem;
        min-height: 48px;
    }

    .test-select-footer {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }

    .application-summary h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .summary-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .summary-name {
        font-size: 0.9375rem;
    }

    .summary-detail-item {
        font-size: 0.875rem;
    }

    .summary-detail-label {
        font-size: 0.8125rem;
    }

    .summary-detail-value {
        font-size: 0.8125rem;
    }

    .summary-price {
        font-size: 0.9375rem;
    }

    .total-value {
        font-size: 1.15rem;
    }

    .test-select-footer .btn-payment {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .btn-edit,
    .btn-delete {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* 추가 모바일 소형 최적화 */
    .schedule-date-group {
        margin-bottom: 1rem;
    }

    .schedule-date-header {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .schedule-items {
        gap: 0.75rem;
    }

    .school-selected {
        padding: 1rem;
    }

    .school-name {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .school-details > div {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }

    .exam-inquiry-block {
        padding: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }

    .exam-inquiry-block .form-group {
        margin-bottom: 0.75rem;
    }

    .exam-inquiry-block strong {
        font-size: 0.875rem !important;
    }

    .form-section-desc {
        font-size: 0.8125rem !important;
    }
}

/* ============================================
   환불정책 및 시험유의사항 섹션 스타일
   ============================================ */
.policy-notice-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.policy-section,
.notice-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.policy-title,
.notice-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.policy-article {
    margin-bottom: 1.5rem;
}

.policy-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.policy-intro {
    font-size: 1rem;
    color: #666;
    margin: 0 0 0.75rem 0;
}

.policy-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.policy-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

.policy-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 2rem 0;
}

.notice-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.notice-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}

.notice-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* 태블릿 세로 (768px ~ 1023px) */
@media (max-width: 1023px) {
    .policy-notice-section {
        padding: 0 1.25rem;
    }
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    .policy-notice-section {
        margin: 2rem auto 1.5rem;
        padding: 0 1rem;
    }

    .policy-section,
    .notice-section {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .policy-title,
    .notice-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.875rem;
        line-height: 1.3;
    }

    .policy-article {
        margin-bottom: 1.25rem;
    }

    .policy-article-title {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
        line-height: 1.4;
    }

    .policy-intro {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }

    .policy-list {
        padding-left: 1.25rem;
        line-height: 1.7;
    }

    .policy-list li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .policy-divider {
        margin: 1.5rem 0;
    }

    .notice-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .notice-item-title {
        font-size: 1rem;
        margin-bottom: 0.625rem;
        line-height: 1.4;
    }

    .notice-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

@media (max-width: 479px) {
    .policy-notice-section {
        padding: 0 0.875rem;
        margin: 1.5rem auto 1.25rem;
    }

    .policy-section,
    .notice-section {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }

    .policy-title,
    .notice-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        line-height: 1.3;
    }

    .policy-article {
        margin-bottom: 1rem;
    }

    .policy-article-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .policy-intro {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
        line-height: 1.6;
    }

    .policy-list {
        padding-left: 1rem;
        line-height: 1.6;
    }

    .policy-list li {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    .policy-divider {
        margin: 1.25rem 0;
    }

    .notice-item {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }

    .notice-item-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .notice-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* ============================================
   환불정책 및 시험유의사항 모달 스타일
   ============================================ */
.policy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.policy-modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.policy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e5e5e5;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

.policy-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
}

.policy-modal-close:hover {
    color: #333;
}

.policy-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.policy-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.policy-modal-body .policy-article {
    margin-bottom: 1.5rem;
}

.policy-modal-body .policy-article:last-child {
    margin-bottom: 0;
}

.policy-modal-body .policy-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}

.policy-modal-body .policy-intro {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.policy-modal-body .policy-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #555;
    line-height: 1.7;
}

.policy-modal-body .policy-list li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.policy-modal-body .policy-list li:last-child {
    margin-bottom: 0;
}

.policy-modal-body .policy-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 1.5rem 0;
}

.policy-modal-body .notice-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.policy-modal-body .notice-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-modal-body .notice-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.policy-modal-body .notice-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    .policy-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .policy-modal-content {
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .policy-modal-header {
        padding: 1.25rem 1rem;
        position: sticky;
        top: 0;
    }

    .policy-modal-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .policy-modal-close {
        font-size: 1.75rem;
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
    }

    .policy-modal-body {
        padding: 1.25rem 1rem;
        max-height: calc(90vh - 140px);
        overflow-y: auto;
    }

    .policy-modal-footer {
        padding: 1rem;
        position: sticky;
        bottom: 0;
    }

    .policy-modal-body .policy-article {
        margin-bottom: 1.25rem;
    }

    .policy-modal-body .policy-article-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .policy-modal-body .policy-intro {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    .policy-modal-body .policy-list {
        padding-left: 1rem;
        line-height: 1.6;
    }

    .policy-modal-body .policy-list li {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    .policy-modal-body .policy-divider {
        margin: 1.25rem 0;
    }

    .policy-modal-body .notice-item {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }

    .policy-modal-body .notice-item-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .policy-modal-body .notice-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* ============================================
   아코디언 스타일 (student_info.php용)
   ============================================ */
.policy-accordion {
    margin-top: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #f8f9fa;
    overflow: hidden;
    transition: all 0.3s ease;
}

.policy-accordion-content {
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.policy-accordion .policy-article {
    margin-bottom: 1.5rem;
}

.policy-accordion .policy-article:last-child {
    margin-bottom: 0;
}

.policy-accordion .policy-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}

.policy-accordion .policy-intro {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.policy-accordion .policy-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #555;
    line-height: 1.7;
}

.policy-accordion .policy-list li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.policy-accordion .policy-list li:last-child {
    margin-bottom: 0;
}

.policy-accordion .policy-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 1.5rem 0;
}

.policy-accordion .notice-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.policy-accordion .notice-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-accordion .notice-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.policy-accordion .notice-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    .policy-accordion {
        border-radius: 12px;
    }

    .policy-accordion-content {
        padding: 1.25rem 1rem;
        max-height: 500px;
        overflow-y: auto;
    }

    .policy-accordion .policy-article {
        margin-bottom: 1.25rem;
    }

    .policy-accordion .policy-article-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .policy-accordion .policy-intro {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    .policy-accordion .policy-list {
        padding-left: 1rem;
        line-height: 1.6;
    }

    .policy-accordion .policy-list li {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    .policy-accordion .policy-divider {
        margin: 1.25rem 0;
    }

    .policy-accordion .notice-item {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }

    .policy-accordion .notice-item-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .policy-accordion .notice-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

@media (max-width: 479px) {
    .policy-accordion-content {
        padding: 1rem 0.875rem;
        max-height: 450px;
    }

    .policy-accordion .policy-article {
        margin-bottom: 1rem;
    }

    .policy-accordion .policy-article-title {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }

    .policy-accordion .policy-intro {
        font-size: 0.8125rem;
    }

    .policy-accordion .policy-list {
        padding-left: 0.875rem;
    }

    .policy-accordion .policy-list li {
        font-size: 0.8125rem;
    }

    .policy-accordion .notice-item-title {
        font-size: 0.875rem;
    }

    .policy-accordion .notice-content {
        font-size: 0.8125rem;
    }
}