/* qna.css - 문의/신청 페이지 전용 스타일 */

.qna-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.qna-container {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 80%;
    margin: 0 auto;
}

/* 헤더 스타일 */

.qna-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 127, 42, 0.05);
    letter-spacing: -2px;
    font-family: 'NanumSquare', sans-serif;
    width: 100%;
    text-align: center;
    z-index: 0;
    white-space: nowrap;
    animation: fadeIn 1.2s ease forwards;
}


.big-message {
    font-size: 48px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
    font-family: 'NanumSquare', sans-serif;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
}


.qna-header h2 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-15px);
    animation: fadeInDown 0.8s ease 0.2s forwards;
    position: relative;
    z-index: 1;
}

.header-description {
    font-size: 16px;
    color: var(--text-sub1);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.8s ease 0.4s forwards;
    position: relative;
    z-index: 1;
}

.header-description {
    font-size: 16px;
    color: var(--text-sub1);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.8s ease 0.4s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 입학 대상 스타일 */
.eligibility-info {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid var(--main-color);
}

.eligibility-info h3, .process-info h3, .qnament-form h3, .contact-info h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.eligibility-info h3:after, .process-info h3:after, .qnament-form h3:after, .contact-info h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
}

.eligibility-info ul {
    list-style-type: none;
    padding: 0;
}

.eligibility-info li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--text-sub1);
    line-height: 1.6;
}

.eligibility-info li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

.eligibility-info strong {
    color: var(--text-main);
    margin-right: 5px;
}

/* 입학 절차 스타일 */
.process-info {
    margin-bottom: 40px;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.step {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    width: 18%;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 18px;
}

.step h4 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-sub1);
    margin: 0;
}

.step-arrow {
    color: var(--text-sub2);
}

/* 입학 신청 폼 스타일 */
.qnament-form {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.required {
    color: #ff4b4b;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(255, 127, 42, 0.1);
    outline: none;
}

.textarea-group textarea {
    resize: vertical;
    min-height: 120px;
}

.consent-group {
    margin-top: 30px;
}

.consent-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--main-color);
}

.privacy-btn {
    margin-left: 10px;
    background: none;
    border: none;
    color: var(--main-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.submit-btn,
.cancel-btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background-color: var(--main-color);
    color: white;
    border: none;
}

.submit-btn:hover {
    background-color: var(--sub-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 127, 42, 0.3);
}

.cancel-btn {
    background-color: #f0f0f0;
    color: var(--text-sub1);
    border: 1px solid #e0e0e0;
}

.cancel-btn:hover {
    background-color: #e5e5e5;
}

/* 문의 안내 스타일 */
.contact-info {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-right: 4px solid var(--main-color);
}

.contact-info p {
    font-size: 15px;
    color: var(--text-sub1);
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: var(--text-sub1);
    line-height: 1.6;
}

.contact-info li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
    font-size: 18px;
}

.contact-info strong {
    color: var(--text-main);
    margin-right: 5px;
    display: inline-block;
    min-width: 60px;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    background-color: var(--main-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-sub1);
}

.modal-body h4 {
    margin: 20px 0 10px;
    font-size: 16px;
    color: var(--text-main);
}

.modal-body ul {
    margin: 0 0 15px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 5px;
    font-size: 15px;
    color: var(--text-sub1);
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f5f5f5;
    text-align: right;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.agree-btn {
    padding: 8px 20px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agree-btn:hover {
    background-color: var(--sub-color);
}

.sub-nav {
    width: 20%;
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .qna-container {
        width: 90%;
        padding: 30px;
    }

    .background-text {
        font-size: 100px;
    }

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .step {
        width: 45%;
        margin-bottom: 20px;
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .qna-container {
        width: 100%;
        padding: 25px;
    }

    .background-text {
        font-size: 80px;
    }

    .qna-header h2 {
        font-size: 24px;
    }

    .step {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn, .cancel-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .qna-header {
        margin-bottom: 30px;
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .background-text {
        font-size: 60px;
    }

    .qna-header h2 {
        font-size: 20px;
    }

    .header-description {
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .eligibility-info, .contact-info {
        padding: 15px;
    }
}