/* ===== Brand Guidelines Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #0069D6;        /* Trust Blue - CTA, 핵심 배경 */
    --primary-dark: #0041BA;         /* Deep Blue - Hover, 강조선 */
    --accent-color: #04EDF5;         /* Digital Aqua - 하이라이트, 진행률 바 */
    --text-color: #1F1D20;           /* Readable Black - 본문 텍스트 */
    --header-height: 70px;           /* Default header height */
    
    /* Secondary Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --bg-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-light: #64748b;
    
    /* Dark Theme Colors */
    --dark-bg: #0a0e1a;
    --dark-card: #1a1f35;
    --dark-text: #e5e7eb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 105, 214, 0.3);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
    min-height: 100vh;
    color: var(--dark-text);
    line-height: 1.6;
    font-weight: 400;
}

/* ===== Progress Bar ===== */
.progress-container {
    position: fixed;
    /* top will be set dynamically by JavaScript to match header height */
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 50; /* keep below header/nav dropdowns */
    pointer-events: none; /* prevent closing dropdown when hovered */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(4, 237, 245, 0.8), 0 0 40px rgba(0, 105, 214, 0.5);
}

/* ===== Container & Section ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    display: none;
    min-height: 100vh;
    padding-top: 60px;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Common Animations ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 105, 214, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 105, 214, 0.6);
    }
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 105, 214, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 105, 214, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 105, 214, 0.05);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.3rem;
}

/* Button icon alignment fix */
.btn-primary i,
.btn-secondary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== Form Common Styles ===== */
.form-group {
    margin-bottom: 35px;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-label i {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    color: var(--white);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 105, 214, 0.3), 0 0 20px rgba(4, 237, 245, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
}

.other-input-container {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

/* ===== Radio Buttons ===== */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.radio-item {
    position: relative;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-item span {
    display: block;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.radio-item input[type="radio"]:checked + span {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 105, 214, 0.5), 0 0 30px rgba(4, 237, 245, 0.3);
    font-weight: 600;
}

.radio-item:hover span {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 105, 214, 0.2);
}

/* ===== Checkbox ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 18px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 105, 214, 0.2);
}

.checkbox-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-item span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-item input[type="checkbox"]:checked ~ span {
    color: var(--white);
    font-weight: 600;
}

.checkbox-item input[type="checkbox"]:checked {
    filter: drop-shadow(0 0 5px rgba(4, 237, 245, 0.8));
}

.checkbox-item-none {
    /* Use same styling as regular checkbox items */
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .form-label {
        font-size: 1rem;
    }

    .radio-item span,
    .checkbox-item span {
        font-size: 0.9rem;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    padding-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Logo */
.footer-logo {
    height: 22px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Footer Links Wrapper */
.footer-links-wrapper {
    margin-bottom: 24px;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-link-column {
    width: calc(50% - 12px);
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link-list li {
    margin: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-external-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Footer Company Info */
.footer-company-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 12px;
}

.footer-company-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer-company-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.footer-company-text span {
    display: block;
}

.footer-company-spacing {
    margin-top: 4px;
}

/* Footer Copyright */
.footer-copyright {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
    font-size: 1rem;
    color: #888;
}

.footer-copyright p {
    margin: 0;
}

/* Footer Responsive */
@media (min-width: 768px) {
    .footer-link-column {
        width: 200px;
    }
    
    .footer-links-grid {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 30px;
        padding-bottom: 20px;
        margin-top: 0;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-links-grid {
        gap: 16px;
    }
    
    .footer-link-column {
        width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 25px;
        padding-bottom: 18px;
        margin-top: 0;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-column-title {
        font-size: 0.9375rem;
        margin-bottom: 10px;
    }
    
    .footer-link {
        font-size: 0.8125rem;
    }
    
    .footer-company-details {
        font-size: 0.8125rem;
    }
    
    .footer-copyright {
        font-size: 0.875rem;
    }
}
