/**
 * 청약가점 계산기 스타일시트
 * us.pe.kr 블로그 디자인과 조화를 이루는 깔끔한 스타일
 */

.csc-calculator-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.csc-calculator-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

.csc-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.csc-description {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.csc-form {
    margin-top: 30px;
}

.csc-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.csc-section:last-of-type {
    border-bottom: none;
}

.csc-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #3498db;
}

.csc-form-group {
    margin-bottom: 25px;
}

.csc-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.csc-required {
    color: #e74c3c;
    font-weight: 600;
}

.csc-input,
.csc-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.csc-input:focus,
.csc-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.csc-input:hover,
.csc-select:hover {
    border-color: #bdc3c7;
}

.csc-help-text {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 6px;
    line-height: 1.5;
}

.csc-score-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: #ecf0f1;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.csc-submit-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8e8e8;
}

.csc-button {
    flex: 1;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.csc-button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.csc-button-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.csc-button-primary:active {
    transform: translateY(0);
}

.csc-button-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.csc-button-secondary:hover {
    background: #bdc3c7;
    color: #1a1a1a;
}

/* 결과 영역 */
.csc-result {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.csc-result-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 25px 0;
    text-align: center;
}

.csc-result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.csc-result-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csc-result-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.csc-result-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.csc-result-detail {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 4px;
}

.csc-result-total {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.csc-result-total .csc-result-label {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.csc-result-total .csc-result-value {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.csc-total-score {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .csc-calculator-container {
        padding: 25px 20px;
    }
    
    .csc-title {
        font-size: 24px;
    }
    
    .csc-section-title {
        font-size: 18px;
    }
    
    .csc-submit-group {
        flex-direction: column;
    }
    
    .csc-button {
        width: 100%;
    }
    
    .csc-result-total {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .csc-result-total .csc-result-value {
        font-size: 28px;
    }
}

/* 로딩 애니메이션 */
.csc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 입력 오류 스타일 */
.csc-input.error,
.csc-select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.csc-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}
