/**
 * Small Business Fund Eligibility Checker Styles
 * 소상공인 정책자금 자격 검사기 전용 스타일
 *
 * @package Zipper
 */

/* ===== 2컬럼 레이아웃 (데스크탑) ===== */
.sbfe-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.sbfe-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sbfe-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 공통 섹션 ===== */
.sbfe-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.sbfe-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.sbfe-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbfe-section-title i {
    color: #d4af37;
    font-size: 15px;
}

/* ===== 입력 그룹 ===== */
.sbfe-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.sbfe-input-group:last-child {
    margin-bottom: 0;
}

.sbfe-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    margin-bottom: 6px;
}

.sbfe-input-label .sbfe-label-hint {
    font-weight: 400;
    color: #9e9a96;
    margin-left: 4px;
}

.sbfe-amount-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sbfe-amount-input:hover {
    border-color: #d4c67a;
}

.sbfe-amount-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.sbfe-amount-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

.sbfe-number-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sbfe-number-input:hover {
    border-color: #d4c67a;
}

.sbfe-number-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.sbfe-number-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

.sbfe-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235f5a56' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.sbfe-select:hover {
    border-color: #d4c67a;
}

.sbfe-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.sbfe-korean-amount {
    font-size: 11px;
    color: #d4af37;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

.sbfe-hint {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

/* ===== 라디오 버튼 ===== */
.sbfe-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sbfe-radio-horizontal {
    flex-direction: row;
}

.sbfe-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

.sbfe-radio-horizontal .sbfe-radio-label {
    flex: 1;
    justify-content: center;
}

.sbfe-radio-label:hover {
    border-color: #d4af37;
}

.sbfe-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.sbfe-radio-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
    font-weight: 500;
}

/* ===== 체크박스 ===== */
.sbfe-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.sbfe-checkbox-row:last-child {
    margin-bottom: 0;
}

.sbfe-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

.sbfe-checkbox-label:hover {
    border-color: #d4af37;
}

.sbfe-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.sbfe-checkbox-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
    font-weight: 500;
}

/* ===== 버튼 ===== */
.sbfe-btn-group {
    display: flex;
    gap: 8px;
}

.sbfe-calculate-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4af37, #c9a030);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.sbfe-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a030, #b8922a);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.sbfe-reset-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sbfe-reset-btn:hover {
    background: #eae7e3;
}

/* ===== 결과 - 대기 영역 ===== */
.sbfe-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
}

.sbfe-waiting i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: #d4af37;
    opacity: 0.4;
}

.sbfe-waiting p {
    font-size: 13px;
    margin: 0;
}

/* ===== 자격 판정 배지 ===== */
.sbfe-qual-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.sbfe-qual-badge.sbfe-qualified {
    background: linear-gradient(135deg, #f0faf0 0%, #e8f5e9 100%);
    border: 2px solid #4caf50;
}

.sbfe-qual-badge.sbfe-disqualified {
    background: linear-gradient(135deg, #fef5f5 0%, #ffebee 100%);
    border: 2px solid #e74c3c;
}

.sbfe-badge-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.sbfe-qualified .sbfe-badge-icon { color: #4caf50; }
.sbfe-disqualified .sbfe-badge-icon { color: #e74c3c; }

.sbfe-badge-text {
    font-size: 20px;
    font-weight: 700;
}

.sbfe-qualified .sbfe-badge-text { color: #2e7d32; }
.sbfe-disqualified .sbfe-badge-text { color: #c62828; }

.sbfe-qual-desc {
    font-size: 13px;
    color: #5f5a56;
    text-align: center;
}

/* ===== 결과 요약 카드 ===== */
.sbfe-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

/* ===== 요건 상세 ===== */
.sbfe-detail-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.sbfe-detail-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbfe-detail-title i { color: #d4af37; }

.sbfe-requirement {
    padding: 12px 0;
    border-bottom: 1px solid #f0ede8;
}

.sbfe-requirement:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sbfe-req-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sbfe-req-icon { font-size: 16px; flex-shrink: 0; }
.sbfe-req-name { flex: 1; font-size: 13px; font-weight: 600; color: #2d2a26; }

.sbfe-req-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.sbfe-req-status.sbfe-pass { background: #e8f5e9; color: #2e7d32; }
.sbfe-req-status.sbfe-fail { background: #ffebee; color: #c62828; }

.sbfe-req-reason {
    font-size: 12px;
    color: #7a756d;
    margin-top: 6px;
    padding-left: 24px;
}

/* ===== 프로그레스 바 ===== */
.sbfe-progress-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.sbfe-progress-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbfe-progress-title i { color: #d4af37; }

.sbfe-progress-item { margin-bottom: 14px; }
.sbfe-progress-item:last-child { margin-bottom: 0; }

.sbfe-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #5f5a56;
    margin-bottom: 6px;
}

.sbfe-progress-value { font-weight: 600; color: #2d2a26; }

.sbfe-progress-bar {
    height: 10px;
    background: #f0ede8;
    border-radius: 5px;
    overflow: hidden;
}

.sbfe-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
    background: #4caf50;
}

.sbfe-progress-fill.sbfe-progress-warn { background: #ff9800; }
.sbfe-progress-fill.sbfe-progress-danger { background: #e74c3c; }

/* ===== 정책자금 카드 목록 ===== */
.sbfe-fund-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.sbfe-fund-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbfe-fund-title i { color: #d4af37; }

.sbfe-fund-count {
    font-size: 12px;
    font-weight: 500;
    color: #d4af37;
    margin-left: auto;
}

.sbfe-fund-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sbfe-fund-card {
    padding: 14px 16px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sbfe-fund-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.08);
}

.sbfe-fund-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sbfe-fund-card-icon {
    font-size: 18px;
    color: #d4af37;
    flex-shrink: 0;
}

.sbfe-fund-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.sbfe-fund-card-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e8f5e9;
    color: #2e7d32;
}

.sbfe-fund-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sbfe-fund-detail-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
}

.sbfe-fund-detail-label {
    color: #9e9a96;
    white-space: nowrap;
}

.sbfe-fund-detail-value {
    font-weight: 600;
    color: #2d2a26;
}

.sbfe-fund-card-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0ede8;
    font-size: 11px;
    color: #7a756d;
    line-height: 1.5;
}

/* ===== 우대 혜택 ===== */
.sbfe-tips-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.sbfe-tips-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbfe-tips-title i { color: #d4af37; }

.sbfe-tips-list { display: flex; flex-direction: column; gap: 8px; }

.sbfe-tip-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #faf9f7;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sbfe-tip-card:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(45, 42, 38, 0.08); }
.sbfe-tip-icon { font-size: 16px; color: #d4af37; flex-shrink: 0; margin-top: 1px; }
.sbfe-tip-text strong { color: #2d2a26; }

/* ===== 면책 조항 ===== */
.sbfe-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.sbfe-disclaimer i { color: #d4af37; flex-shrink: 0; margin-top: 2px; }

/* ===== 유틸리티 ===== */
.sbfe-hidden { display: none !important; }

/* ===== 모션 감소 접근성 ===== */
@media (prefers-reduced-motion: reduce) {
    .sbfe-section, .sbfe-amount-input, .sbfe-number-input, .sbfe-select,
    .sbfe-calculate-btn, .sbfe-tip-card, .sbfe-fund-card,
    .sbfe-progress-fill { transition: none !important; }
    .sbfe-section:hover, .sbfe-tip-card:hover, .sbfe-fund-card:hover,
    .sbfe-calculate-btn:hover { transform: none !important; }
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .sbfe-main-layout { grid-template-columns: 1fr; }
    .sbfe-input-col { position: static; width: 100%; }
    .sbfe-result-col { width: 100%; }
    .sbfe-input-group input:not([type="radio"]):not([type="checkbox"]),
    .sbfe-input-group select { width: 100% !important; max-width: 100% !important; }
    .sbfe-fund-card-details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sbfe-section { padding: 12px; }
    .sbfe-result-summary { padding: 16px; }
    .sbfe-qual-badge { gap: 8px; padding: 12px; }
    .sbfe-badge-text { font-size: 17px; }
    .sbfe-fund-card { padding: 10px 12px; }
    .sbfe-checkbox-row { flex-direction: column; }
}
