
/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-dark: #0a1628;
    --primary-navy: #0d1f3c;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --accent-blue: #2d7dd2;
    --accent-teal: #17a2b8;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6c757d;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    /* UI Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --border-gold: rgba(212, 175, 55, 0.4);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(13, 31, 60, 0.9) 100%);
    
    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    /* Fonts */
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-display: 'Outfit', 'Noto Sans KR', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======================================
   Main Layout
   ====================================== */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* ======================================
   Left Content Section
   ====================================== */
.content-section {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: var(--text-white);
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/content-bg.jpg') center/cover no-repeat;
    z-index: -2;
}

.content-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: -1;
}

.content-wrapper {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.badge i {
    font-size: 0.8rem;
}

/* Main Title */
.main-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-white);
}

.main-title .highlight {
    color: var(--accent-gold);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.subtitle strong {
    color: var(--text-white);
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-white);
}

.feature-icon {
    color: var(--accent-gold);
}

/* Benefits Box */
.benefits-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.benefits-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.benefits-list li i {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* Stats Row */
.stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-unit {
    font-size: 0.9rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
}

/* ======================================
   Right Form Section
   ====================================== */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Decorative Wave Background */
.form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: url('../images/form-bg.jpg') center/cover no-repeat;
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.form-container {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

/* Form Header */
.form-header {
    margin-bottom: 1.5rem;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 33.33%;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.progress-text span:first-child {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Questions Container */
.questions-container {
    min-height: 380px;
    position: relative;
}

.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.question-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.question-slide.exit {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px);
}

.question-number {
    display: none;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

/* Options - Card Grid Style */
.options-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.option-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    box-shadow: var(--shadow-card);
}

.option-btn:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-card-hover);
}

.option-btn.selected {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 208, 63, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.option-btn.selected .option-letter {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-gold);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.option-text {
    font-weight: 500;
    line-height: 1.4;
}

/* Next Button */
.next-btn-container {
    margin-top: 1.5rem;
}

.next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
}

.next-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Success Screen */
.success-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.success-screen.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    animation: successPulse 1s ease infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.success-message {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Form Disclaimer */
.form-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-gray);
}

.form-disclaimer i {
    color: var(--accent-gold);
    margin-top: 2px;
}

/* ======================================
   Footer
   ====================================== */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 3rem;
    z-index: 10;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-normal);
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: color var(--transition-normal);
}

.footer-social a:hover {
    color: var(--accent-gold);
}

/* Mobile Footer */
.mobile-footer {
    display: none;
    background: var(--primary-dark);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.mobile-footer .footer-content {
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-footer .footer-social {
    justify-content: center;
}

.mobile-footer .footer-social a {
    color: rgba(255, 255, 255, 0.6);
}

/* ======================================
   Modal
   ====================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-header h3 i {
    color: var(--accent-gold);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 1.25rem 0 0.5rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 0.75rem;
}

.modal-body ul li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.modal-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.disclaimer-highlight,
.disclaimer-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.disclaimer-highlight {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
}

.disclaimer-warning {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.disclaimer-highlight i {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 2px;
}

.disclaimer-warning i {
    color: #dc3545;
    font-size: 1.1rem;
    margin-top: 2px;
}

.disclaimer-highlight p,
.disclaimer-warning p {
    margin: 0;
}

/* ======================================
   Responsive Design
   ====================================== */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .content-section {
        flex: none;
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }
    
    .content-wrapper {
        max-width: none;
    }
    
    .form-section {
        padding: 2rem 1.5rem;
    }
    
    /* Hide desktop footer on tablet/mobile */
    .footer {
        display: none;
    }
    
    /* Show mobile footer */
    .mobile-footer {
        display: block;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .content-section {
        padding: 2rem 1.25rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .features {
        gap: 0.5rem;
    }
    
    .feature-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .benefits-box {
        padding: 1rem;
    }
    
    .stats-row {
        gap: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem 1.25rem;
    }
    
    .form-container {
        max-width: none;
    }
    
    .options-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .option-btn {
        padding: 0.875rem 1rem;
    }
    
    .option-letter {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .questions-container {
        min-height: 340px;
    }
    
    .mobile-footer {
        padding: 1rem 1.25rem;
    }
}

/* ======================================
   Utility Classes
   ====================================== */
.hidden {
    display: none !important;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
