
#loan-calculator {
    min-height: 100vh;
    padding: 1rem;
}

.main-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* 헤더 스타일 */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.header-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

/* 콘텐츠 섹션 */
.content-section {
    padding: 2rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.input-field, .input-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-field:focus, .input-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    margin: 0;
    color: #374151;
}

.calculate-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 1.5rem;
}

.calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
}

/* 정보 박스 스타일 */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
}

.info-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 0.875rem;
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
}

/* 결과 표시 스타일 */
.results-container {
    background: #e0e7ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: #1f2937;
    border: 1px solid #c7d2fe;
}

.results-container.hidden {
    display: none;
}

.results-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-header svg {
    color: #1f2937;
}

.main-result {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.main-result-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.main-result-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #4f46e5;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.result-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
}

/* 경고 박스 스타일 */
.warning-box {
    background: #fffbeb;
    border: 1px solid #fde047;
    border-left: 4px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.warning-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box h4::before {
    content: "⚠️";
    font-size: 1.125rem;
}

.warning-box p {
    font-size: 0.875rem;
    color: #a16207;
    line-height: 1.5;
    margin: 0;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.error-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-box h4::before {
    content: "❌";
    font-size: 1.125rem;
}

.error-box p {
    font-size: 0.875rem;
    color: #991b1b;
    line-height: 1.5;
    margin: 0;
}

/* 설명 카드 스타일 */
.explanation-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #f1f5f9;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.explanation-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.explanation-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 단계별 가이드 스타일 */
.step-guide {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid #4f46e5;
}

.step-number {
    background: #4f46e5;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 주의사항 섹션 */
.note-section {
    background: #fffbeb;
    border: 1px solid #fde047;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.note-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1rem;
}

.note-section ul {
    color: #a16207;
    padding-left: 1.5rem;
    margin: 0;
}

.note-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #loan-calculator {
        padding: 0.5rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .main-card, .explanation-card {
        padding: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .header {
        padding: 1.5rem;
    }

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

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

    .step-number {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .main-result-value {
        font-size: 1.875rem;
    }
}