/* CSS Variables for this page (No Banner) */
:root {
    --paddingTop: 78px;
    --mobilePaddingTop: 68px;
}

body {
    background-color: #ffffff !important;
}

/* Scoped styles to override global CSS from index.DzQNTLrm.css */
/* Container */
.apply-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* 폼이 화면 전체 너비를 사용하도록 설정 */
    min-height: calc(100vh - 126px);
    padding: 40px 20px;
    background: transparent; /* Let body background show */
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .apply-container {
        min-height: calc(100vh - 116px);
    }
}

.apply-container .form-card {
    width: 100%;
    /* 폼 가로 너비 설정 - 필요시 여기서 조절 */
    max-width: 600px;
    padding: 60px 50px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-sizing: border-box;
}

/* Progress */
.apply-container .progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
    box-sizing: border-box;
}

.apply-container .progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.apply-container .progress-step.active {
    background: #10b981; /* 진행 중 - 초록색 */
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.apply-container .progress-step.completed {
    background: #006bf9; /* 완료됨 - 파란색 */
    color: white;
}

.apply-container .progress-line {
    flex: 1;
    height: 4px;
    background: #f1f5f9;
    margin: 0 -5px;
    z-index: 1;
    transition: background 0.3s ease;
}

.apply-container .progress-line.completed {
    background: #006bf9;
}

/* Step Content */
.apply-container .step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.apply-container .step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.apply-container .step-indicator {
    color: #10b981; /* 진행 중 표시 - 초록색 */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.apply-container .step-title {
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
}

/* Form Elements - High Specificity */
.apply-container .form-group {
    margin-bottom: 24px;
}

.apply-container .form-label {
    display: block;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.apply-container .form-label span {
    color: #ef4444;
}

.apply-container .form-input, 
.apply-container .form-textarea {
    width: 100%;
    padding: 18px 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    background: #f8fafc !important;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    color: #1e293b;
    font-family: inherit;
    line-height: normal;
    height: auto;
}

.apply-container .form-textarea {
    min-height: 140px;
    resize: vertical;
}

.apply-container .form-input:focus,
.apply-container .form-textarea:focus {
    border-color: #006bf9 !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(0, 107, 249, 0.1) !important;
}

.apply-container .form-input::placeholder,
.apply-container .form-textarea::placeholder {
    color: #94a3b8;
}

/* Radio Options */
.apply-container .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.apply-container .radio-option {
    flex: 1;
    min-width: calc(33.333% - 8px); 
}

.apply-container .radio-option.full-width {
    min-width: 100%;
}

.apply-container .radio-option input {
    display: none;
}

.apply-container .radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.apply-container .radio-option input:checked + .radio-label {
    background: #eef6ff !important;
    border-color: #006bf9 !important;
    color: #0052cc !important;
    font-weight: 700;
}

.apply-container .radio-label:hover {
    border-color: #006bf9;
    background: #ffffff;
}

/* Buttons - Specific Overrides */
.apply-container .btn-group {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.apply-container .btn {
    flex: 1 !important;
    padding: 18px 24px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    line-height: normal !important;
}

.apply-container .btn-prev {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.apply-container .btn-prev:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.apply-container .btn-next, 
.apply-container .btn-submit {
    background: #006bf9 !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 107, 249, 0.2), 0 2px 4px -1px rgba(0, 107, 249, 0.1);
}

.apply-container .btn-next:hover, 
.apply-container .btn-submit:hover {
    background: #0052cc !important;
    box-shadow: 0 10px 15px -3px rgba(0, 107, 249, 0.3), 0 4px 6px -2px rgba(0, 107, 249, 0.1);
    transform: translateY(-2px);
}

/* Hover Inversion for Next Button */
.apply-container .btn-next:hover {
    background: white !important;
    color: #006bf9 !important;
    border: 1px solid #006bf9 !important;
}

/* Glow Effect for Valid Steps */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 107, 249, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 107, 249, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 107, 249, 0); }
}

.apply-container .btn-next.ready {
    animation: pulseGlow 1.5s infinite;
    background: #006bf9 !important; /* Ensure generic color is kept or use specific */
}

.apply-container .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Warning Text */
.apply-container .warning-text {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

/* Success State */
.apply-container .success-view {
    text-align: center;
    padding: 40px 0;
}

.apply-container .success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.apply-container .success-icon i {
    font-size: 36px;
    color: #16a34a;
}

.apply-container .success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.apply-container .success-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 640px) {
    .apply-container .form-card {
        padding: 32px 24px;
    }
    
    .apply-container .step-title {
        font-size: 24px;
    }
    
    .apply-container .progress-step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .apply-container .radio-option {
        min-width: 100%;
    }
}
