/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #0D1B4B;
    --primary-gold: #C9A84C;
    --background: #F7F9FC;
    --text-dark: #2C3E50;
    --text-light: #6B7280;
    --border-light: #E5E7EB;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 120px;
}

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2b5f 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
    text-align: center;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.progress-step {
    flex: 1;
    min-width: 70px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--primary-gold);
    color: var(--primary-navy);
    font-weight: 600;
}

/* 메인 컨테이너 */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* 타이틀 섹션 */
.title-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.sub-title {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.intro-text {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* 기본 정보 입력 */
.basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.info-field {
    text-align: left;
}

.info-field label {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.info-field .required {
    color: #EF4444;
}

.info-field input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s ease;
}

.info-field input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* 섹션 스타일 */
.part-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.part-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-gold);
}

.part-icon {
    font-size: 2rem;
}

.part-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* 질문 블록 */
.question-block {
    margin-bottom: 2rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* 제출 섹션 */
.submit-section {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.submit-notice {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2b5f 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 27, 75, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 27, 75, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.success-icon {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1rem;
}

.modal-content h2 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.modal-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-navy);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--primary-gold);
    color: var(--primary-navy);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding-top: 160px;
    }

    .header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .progress-bar {
        gap: 0.3rem;
    }

    .progress-step {
        font-size: 0.75rem;
        padding: 0.4rem;
        min-width: 60px;
    }

    .main-container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1.1rem;
    }

    .part-section {
        padding: 1.5rem;
    }

    .part-title {
        font-size: 1.2rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 180px;
    }

    .progress-step {
        font-size: 0.65rem;
        padding: 0.3rem;
        min-width: 50px;
    }

    .main-title {
        font-size: 1.5rem;
    }

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