/* 레벨테스트 페이지 전용 스타일 */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5849C2;
    --secondary: #00D2D3;
    --accent: #FD79A8;
    --gold: #FDCB6E;
    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #B2BEC3;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
    --shadow-lg: 0 25px 60px rgba(108, 92, 231, 0.2);
    --kakao-yellow: #FEE500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
}

/* 헤더 스타일 */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    padding: 8px 0;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-top a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.header-top a:hover {
    color: white;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    color: var(--dark);
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
}

.nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 25px;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* 페이지 배너 */
.page-banner {
    background: var(--gradient);
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.page-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -50px;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    position: relative;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* 메인 컨텐츠 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* 사이드 메뉴 */
.side-menu {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.side-menu-title {
    background: var(--gradient);
    color: white;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    border-bottom: 1px solid #eee;
}

.side-menu li:last-child {
    border-bottom: none;
}

.side-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.side-menu a:hover,
.side-menu a.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.side-menu a i {
    width: 20px;
    text-align: center;
}

/* 카카오 상담 박스 */
.kakao-consult-box {
    background: var(--kakao-yellow);
    margin: 15px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.kakao-consult-box p {
    font-size: 13px;
    color: #3C1E1E;
    margin-bottom: 12px;
    font-weight: 500;
}

.kakao-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #3C1E1E;
    color: var(--kakao-yellow);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.kakao-consult-btn:hover {
    background: #2C0E0E;
    transform: translateY(-2px);
}

/* 폼 스타일 */
.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(162, 155, 254, 0.1) 100%);
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h2 i {
    color: var(--primary);
}

.form-header p {
    color: var(--gray);
    font-size: 15px;
}

.form-body {
    padding: 40px;
}

/* 프로모션 박스 */
.promo-box {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.1) 0%, rgba(253, 203, 110, 0.1) 100%);
    border: 1px solid rgba(253, 121, 168, 0.3);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 35px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.promo-box i {
    color: var(--accent);
    font-size: 28px;
    margin-top: 2px;
}

.promo-box-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.promo-box-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.promo-box-content strong {
    color: var(--accent);
}

/* 폼 테이블 */
.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table tr {
    border-bottom: 1px solid #eee;
}

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

.form-table th {
    width: 180px;
    padding: 20px;
    text-align: left;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    vertical-align: top;
}

.form-table th .required {
    color: var(--accent);
    margin-left: 3px;
}

.form-table td {
    padding: 20px;
}

.form-control {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-control::placeholder {
    color: var(--light-gray);
}

.form-control.full-width {
    max-width: 100%;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
}

/* 연락처 입력 */
.phone-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-inputs input,
.phone-inputs select {
    width: 110px;
    text-align: center;
}

.phone-inputs span {
    color: var(--gray);
    font-weight: 500;
}

/* 라디오/체크박스 그룹 */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-item label,
.checkbox-item label {
    font-size: 15px;
    cursor: pointer;
}

/* 시간 선택 버튼 스타일 */
.time-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-select-item {
    position: relative;
}

.time-select-item input {
    display: none;
}

.time-select-item label {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-select-item input:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-select-item label:hover {
    border-color: var(--primary);
}

/* 동의 섹션 */
.agreement-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.agreement-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agreement-section h4 i {
    color: var(--primary);
}

.agreement-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.agreement-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agreement-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.agreement-check label {
    font-size: 15px;
    cursor: pointer;
}

.agreement-check label .required-text {
    color: var(--accent);
    font-weight: 600;
}

.marketing-agreement {
    margin-top: 15px;
    padding: 20px 25px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
}

/* 버튼 */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 50px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: #eee;
    color: var(--gray);
}

.btn-secondary:hover {
    background: #ddd;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: block;
}

.btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 푸터 */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 20px 30px;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
}

.footer-logo span {
    color: var(--gold);
}

.footer-contact {
    display: flex;
    gap: 40px;
}

.footer-contact-item h4 {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-contact-item p {
    font-size: 18px;
    font-weight: 700;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00D2D3 0%, #00B894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 50px;
    color: white;
}

.modal h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal > p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.modal-btn.kakao {
    background: var(--kakao-yellow);
    color: #3C1E1E;
}

.modal-btn.kakao:hover {
    background: #E6CF00;
    transform: translateY(-2px);
}

.modal-btn.primary {
    background: var(--gradient);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.modal-btn.outline {
    background: white;
    color: var(--gray);
    border: 1px solid #ddd;
}

.modal-btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 플로팅 버튼 */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.kakao {
    background: var(--kakao-yellow);
    color: #3C1E1E;
}

.floating-btn.phone {
    background: var(--secondary);
}

.floating-btn.top {
    background: var(--primary);
}

/* 반응형 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .side-menu {
        position: static;
        display: none;
    }

    .form-table th {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-banner {
        padding: 40px 20px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .main-content {
        padding: 30px 15px;
    }

    .form-body {
        padding: 25px 20px;
    }

    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table th {
        padding: 15px 0 8px;
        background: transparent;
    }

    .form-table td {
        padding: 0 0 20px;
    }

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

    .phone-inputs {
        flex-wrap: wrap;
    }

    .phone-inputs input,
    .phone-inputs select {
        flex: 1;
        min-width: 80px;
    }

    .time-select-group {
        gap: 8px;
    }

    .time-select-item label {
        padding: 8px 14px;
        font-size: 13px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 15px;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .modal {
        padding: 40px 25px;
    }

    .modal h2 {
        font-size: 22px;
    }

    .floating-buttons {
        bottom: 20px;
        right: 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 모바일 메뉴 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 10px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.mobile-nav-menu a.active {
    color: var(--primary);
}
