/**
 * Dependent Qualification Calculator Styles
 * 피부양자 자격 판정 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

/* ===== 공통 섹션 ===== */
.dqc-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;
}

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

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

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

/* ===== 탭 시스템 ===== */
.dqc-tabs {
    display: flex;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 3px;
}

.dqc-tab {
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9e9a96;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dqc-tab:hover {
    color: #5f5a56;
}

.dqc-tab.active {
    background: #fff;
    color: #d4af37;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
}

.dqc-tab i {
    font-size: 14px;
}

.dqc-tab-content {
    display: none;
}

.dqc-tab-content.active {
    display: contents;
}

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

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

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

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

.dqc-label-hint {
    font-weight: 400;
    color: #9e9a96;
    font-size: 12px;
}

.dqc-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;
}

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

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

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

.dqc-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;
}

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

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

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

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

.dqc-warning-text {
    color: #e74c3c;
}

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

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

.dqc-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;
}

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

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

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

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

.dqc-radio-desc {
    font-size: 11px;
    color: #9e9a96;
    margin-left: auto;
}

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

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

.dqc-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;
}

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

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

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

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

.dqc-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);
}

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

.dqc-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;
}

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

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

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

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

/* ===== 결과 - 요약 카드 ===== */
.dqc-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);
}

.dqc-summary-title {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 8px;
}

.dqc-summary-main {
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dqc-summary-label {
    font-size: 13px;
    color: #5f5a56;
    margin-bottom: 16px;
}

.dqc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #e8e4dc;
    font-size: 13px;
}

.dqc-summary-row-label {
    color: #7a756d;
}

.dqc-summary-row-value {
    font-weight: 600;
    color: #2d2a26;
}

.dqc-annual-highlight {
    color: #d4af37;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== 부부 동반 탈락 경고 ===== */
.dqc-couple-warning {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px solid #ffcc80;
    border-radius: 12px;
    font-size: 13px;
    color: #5f5a56;
}

.dqc-couple-warning > i { color: #ff9800; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.dqc-couple-warning strong { display: block; color: #e65100; margin-bottom: 4px; }
.dqc-couple-warning p { margin: 0; font-size: 12px; line-height: 1.5; }

/* ===== 팁 섹션 ===== */
.dqc-tips-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

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

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

.dqc-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;
}

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

/* ===== 보험료 산정 내역 ===== */
.dqc-breakdown-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.dqc-breakdown-title i { color: #d4af37; }
.dqc-breakdown-steps { display: flex; flex-direction: column; }

.dqc-breakdown-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 13px;
}

.dqc-breakdown-label { color: #5f5a56; }
.dqc-breakdown-value { font-weight: 600; color: #2d2a26; text-align: right; }
.dqc-breakdown-detail { font-size: 11px; color: #9e9a96; padding: 0 12px 8px; }

.dqc-breakdown-total {
    margin-top: 4px;
    border-top: 2px solid #e8e4dc;
    background: #fdfbf5;
    border-radius: 6px;
}

.dqc-breakdown-total .dqc-breakdown-value { color: #d4af37; font-size: 15px; font-weight: 700; }

/* ===== 비교 카드 ===== */
.dqc-compare-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.dqc-compare-title i { color: #d4af37; }

.dqc-compare-cards { display: flex; align-items: center; gap: 12px; }

.dqc-compare-card { flex: 1; padding: 16px; border-radius: 10px; text-align: center; }
.dqc-compare-before { background: #e8f5e9; border: 1px solid #a5d6a7; }
.dqc-compare-after { background: #ffebee; border: 1px solid #ef9a9a; }

.dqc-compare-card-title { font-size: 11px; font-weight: 600; color: #5f5a56; margin-bottom: 8px; }
.dqc-compare-card-amount { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.dqc-compare-before .dqc-compare-card-amount { color: #2e7d32; }
.dqc-compare-after .dqc-compare-card-amount { color: #c62828; }
.dqc-compare-card-annual { font-size: 12px; color: #7a756d; }
.dqc-compare-arrow { font-size: 20px; color: #9e9a96; flex-shrink: 0; }

.dqc-compare-diff {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fef5f5 0%, #ffebee 100%);
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    font-size: 13px;
    color: #5f5a56;
}

.dqc-compare-diff strong { font-weight: 700; color: #c62828; font-size: 16px; }

/* ===== 면책 조항 ===== */
.dqc-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;
}

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

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

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

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .dqc-main-layout { grid-template-columns: 1fr; }
    .dqc-input-col { position: static; width: 100%; }
    .dqc-result-col { width: 100%; }
    .dqc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .dqc-input-group select { width: 100% !important; max-width: 100% !important; }
    .dqc-summary-main { font-size: 26px; }
    .dqc-compare-cards { flex-direction: column; }
    .dqc-compare-arrow { transform: rotate(90deg); }
}

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