/* apply.css - 수강 신청 페이지 전용 스타일 */

/* ... (기존 CSS 코드는 그대로 유지) ... */

/* 메인 컨테이너 */
.apply-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.apply-container h1 {
    font-size: 2.5rem;
    color: #1E3A5E; /* Deep Blue */
    margin-bottom: 0.5rem;
}

.apply-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* 폼 그룹 스타일 */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E3A5E;
    margin-bottom: 1rem;
}

/* 수강 과정 선택 카드 */
.course-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-card {
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: #1E3A5E;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(30, 58, 94, 0.1);
}

.course-card.selected {
    border-color: #E67E22; /* Point Orange */
    background-color: #fef8f2;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(230, 126, 34, 0.2);
}

.course-card h4 {
    font-size: 1.3rem;
    color: #1E3A5E;
    margin: 0 0 0.5rem 0;
}

.course-card p {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}


/* 시간표 선택 옵션 */
#time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.time-option {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.time-option:hover {
    background-color: #f0f0f0;
}

.time-option.selected {
    background-color: #1E3A5E;
    color: #ffffff;
    border-color: #1E3A5E;
}


/* 입력 필드 스타일 */
input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #1E3A5E;
    outline: none;
}

textarea {
    resize: vertical;
}


/* 제출 버튼 */
.submit-button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #E67E22; /* Point Orange */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #d35400; /* Darker Orange */
    transform: translateY(-3px);
}

/* 반응형 */
@media (max-width: 768px) {
    .apply-container {
        margin: 2rem 1rem;
        padding: 2rem;
    }

    .course-selection {
        grid-template-columns: 1fr; /* 모바일에서는 1열로 */
    }
}

/* --- 신청 완료 모달 스타일 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-header h2 {
    font-size: 2rem;
    color: #1E3A5E;
    margin: 0 0 1rem 0;
}

.modal-body p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-footer {
    margin-top: 2rem;
}

.modal-button {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #E67E22;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #d35400;
}
