/* 고교방문 입시설명회 페이지 전용 스타일 */

.text-highlight {
    display: none;
}

/* 메인 콘텐츠 영역 */
.admission-content {
    background: #f5f5f5;
    padding: 40px 20px;
}

.admission-content__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 733px 1fr;
    gap: 30px;
}

/* 반응형 */
@media (max-width: 1200px) {
    .admission-content__container {
        grid-template-columns: 1fr;
    }
}

/* 입시설명회 안내 카드 */
.admission-info-card {
    background: transparent;  /* 배경 제거 */
    border-radius: 0;  /* border-radius 제거 */
    overflow: visible;  /* overflow 변경 */
    box-shadow: none;  /* shadow 제거 */
}

.admission-info-card__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;  /* 이미지 자체에 border-radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);  /* shadow도 이미지로 이동 */
}

/* 기존 스타일 숨김 */
.admission-info-card__header,
.admission-info-card__body,
.admission-info-card__title,
.admission-notice,
.admission-schedule,
.admission-contact {
    display: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .admission-info-card__image {
        width: 100%;
        height: auto;
    }
}

/* 입시일정 */
.admission-schedule {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.admission-schedule__title {
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-section__title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

.schedule-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.schedule-card {
    background: #2a2a2a;
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

.schedule-card__step {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.schedule-card__text {
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
}

/* 연락처 */
.admission-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.admission-contact__text {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.8;
}

/* 사이드바 */
.admission-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 이벤트 안내 */
.event-notice {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-notice__title {
    background: #f5f5f5;
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

.event-notice__content {
    padding: 30px 20px;
    text-align: center;
}

.event-notice__date {
    font-size: 16px;
    color: #ff4757;
    font-weight: bold;
    margin-bottom: 10px;
}

.event-notice__time {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* ============================================
   신청 모달 - 2단계 시스템
   ============================================ */

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

/* 모달 컨테이너 */
.modal-container {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 모달 헤더 */
.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* 모달 바디 */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    background: #fafafa;
}

/* 폼 레이아웃 */
.application-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

/* 폼 스텝 전환 */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* 2컬럼 그리드 */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 폼 그룹 */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

/* 시간 입력 */
.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* 라디오 그룹 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.radio-option:hover {
    border-color: #6366f1;
    background-color: #f5f7ff;
}

.radio-option:has(.radio-input:checked) {
    border-color: #6366f1;
    background-color: #f5f7ff;
}

.radio-input {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
    flex-shrink: 0;
}

.radio-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.radio-text strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}

.text-sm {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* 체크박스 그룹 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.checkbox-option:hover {
    border-color: #6366f1;
    background-color: #f5f7ff;
}

.checkbox-option:has(.checkbox-input:checked) {
    border-color: #6366f1;
    background-color: #f5f7ff;
}

.checkbox-input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6366f1;
    flex-shrink: 0;
}

.checkbox-option span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* 참가자 인원 입력 */
.participant-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.participant-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.participant-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.form-input-small {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input-small:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 동의 체크박스 */
.checkbox-agreement {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-agreement:has(.checkbox-input:checked) {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.checkbox-agreement span {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

/* 모달 푸터 */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background-color: #fff;
}

.modal-footer-left {
    flex: 0 0 auto;
}

.modal-footer-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-cancel,
.btn-prev,
.btn-next,
.btn-submit,
.btn-cancel-edit-mode {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background-color: #e5e7eb;
}

.btn-prev {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-prev:hover {
    background-color: #f9fafb;
}

.btn-next {
    background-color: #6366f1;
    color: white;
}

.btn-next:hover {
    background-color: #4f46e5;
}

.btn-submit {
    background-color: #6366f1;
    color: white;
}

.btn-submit:hover {
    background-color: #4f46e5;
}

.btn-cancel-edit-mode {
    background-color: #dc2626;
    color: white;
}

.btn-cancel-edit-mode:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 검색 가능한 셀렉트 */
.searchable-select-wrapper {
    position: relative;
}

.searchable-select-input {
    cursor: pointer;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #495057;
}

.searchable-select-option:hover {
    background: #f8f9fa;
}

.searchable-select-option.selected {
    background: #e7f1ff;
    color: #0056b3;
}

.searchable-select-option.no-results {
    padding: 20px 15px;
    text-align: center;
    color: #999;
    cursor: default;
}

.searchable-select-option.no-results:hover {
    background: #fff;
}

.searchable-select-option-code {
    color: #6c757d;
    font-size: 12px;
    margin-left: 8px;
}

/* 반응형 */
@media (max-width: 1200px) {
    .admission-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .schedule-cards {
        grid-template-columns: 1fr;
    }

    .admission-info-card__body {
        padding: 20px;
    }

    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding: 20px;
    }

    .application-form {
        padding: 20px;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .participant-inputs {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-footer-left,
    .modal-footer-right {
        width: 100%;
    }

    .modal-footer-right {
        flex-direction: column-reverse;
    }

    .btn-cancel-edit-mode,
    .btn-cancel,
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .admission-info-card__header {
        padding: 20px;
    }

    .admission-info-card__title {
        font-size: 16px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    .application-form {
        padding: 15px;
    }

    .form-col {
        gap: 15px;
    }
}

/* 이벤트 안내 버튼 */
.event-notice__button {
    background: #00a8ff;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    max-width: 300px;
}

.event-notice__button:hover:not(:disabled) {
    background: #0097e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.event-notice__button:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================================
   신청 목록 팝업 스타일
   ================================================ */

/* 팝업 오버레이 */
.list-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.list-modal-overlay.hidden {
    display: none;
}

/* 팝업 컨테이너 */
.list-modal-container {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 팝업 헤더 */
.list-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.list-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.list-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.list-modal-close svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.list-modal-close:hover svg {
    color: #1f2937;
}

/* 팝업 바디 */
.list-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

/* 신청 목록 */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 신청 항목 */
.application-item {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.application-item:hover {
    border-color: #9b7fd6;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 127, 214, 0.2);
}

.application-item.selected {
    border-color: #9b7fd6;
    background: #f3f0ff;
}

/* 신청 항목 헤더 */
.application-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.application-item-school {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
}

.application-item-region {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 신청 항목 정보 */
.application-item-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.application-item-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.application-item-info-label {
    font-weight: 600;
    color: #374151;
}

/* 팝업 푸터 */
.list-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn-new-application {
    padding: 12px 28px;
    background: #9b7fd6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-new-application:hover {
    background: #8b6fc6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 127, 214, 0.3);
}

.btn-close-list {
    padding: 12px 28px;
    background: #6b7280;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-list:hover {
    background: #4b5563;
}

.btn-cancel-application {
    padding: 12px 28px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel-application:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 반응형 */
@media (max-width: 768px) {
    .list-modal-container {
        width: 95%;
        max-height: 85vh;
    }

    .list-modal-header,
    .list-modal-body,
    .list-modal-footer {
        padding: 15px;
    }

    .list-modal-title {
        font-size: 16px;
    }

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

    .list-modal-footer {
        flex-direction: column-reverse;
    }

    .btn-new-application,
    .btn-cancel-application,
    .btn-close-list {
        width: 100%;
    }
}

/* ================================================
   비밀번호 입력 모달 스타일
   ================================================ */

/* 비밀번호 모달 오버레이 */
.password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.password-modal-overlay.hidden {
    display: none;
}

/* 비밀번호 모달 컨테이너 */
.password-modal-container {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

/* 비밀번호 모달 헤더 */
.password-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.password-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.password-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.password-modal-close svg {
    width: 22px;
    height: 22px;
    color: #6b7280;
}

.password-modal-close:hover svg {
    color: #1f2937;
}

/* 비밀번호 모달 바디 */
.password-modal-body {
    padding: 25px;
}

.password-modal-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: white;
}

.password-input:focus {
    outline: none;
    border-color: #9b7fd6;
    box-shadow: 0 0 0 3px rgba(155, 127, 214, 0.1);
}

.password-error {
    margin-top: 10px;
    padding: 10px 15px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 13px;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.password-error.hidden {
    display: none;
}

/* 비밀번호 모달 푸터 */
.password-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.password-modal-footer button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.password-modal-footer button:first-child {
    background: #e5e7eb;
    color: #374151;
}

.password-modal-footer button:first-child:hover {
    background: #d1d5db;
}

.password-modal-footer button:last-child {
    background: #9b7fd6;
    color: #fff;
}

.password-modal-footer button:last-child:hover {
    background: #8b6fc6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 127, 214, 0.3);
}

/* 반응형 */
@media (max-width: 576px) {
    .password-modal-container {
        width: 95%;
    }

    .password-modal-header,
    .password-modal-body,
    .password-modal-footer {
        padding: 15px 20px;
    }

    .password-modal-title {
        font-size: 16px;
    }

    .password-modal-footer {
        flex-direction: column-reverse;
    }

    .password-modal-footer button {
        width: 100%;
    }
}