/**
 * EITC Eligibility Calculator Styles
 * 근로장려금(EITC) 자격 계산기 전용 스타일
 *
 * @package Zipper
 */

.eec-hidden {
    display: none !important;
}

/* ===== 2컬럼 레이아웃 ===== */
.eec-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

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

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

/* ===== 공통 카드 ===== */
.eec-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;
}

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

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

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

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

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

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

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

.eec-amount-input {
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

.eec-select {
    font-size: 13px;
    cursor: pointer;
    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;
}

.eec-amount-input:hover,
.eec-select:hover {
    border-color: #d4c67a;
}

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

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

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

.eec-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.eec-property-guide {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #efe8d8;
    border-radius: 8px;
    background: #fffdf7;
}

.eec-property-guide-item {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

/* ===== 체크박스 ===== */
.eec-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eec-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    font-size: 12px;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}

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

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

.eec-checkbox-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
}

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

.eec-calculate-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #c49b2a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eec-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

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

.eec-reset-btn:hover {
    background: #ede9e3;
    border-color: #d8d2c8;
}

/* ===== 대기 화면 ===== */
.eec-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.eec-waiting i {
    font-size: 32px;
    color: #d4af37;
    opacity: 0.4;
}

.eec-waiting p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* ===== 결과 요약 ===== */
.eec-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 1px solid #efe8d8;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eec-eligibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.eec-eligibility-badge.eec-eligible {
    background: #edf8f0;
    border: 1px solid #cde8d4;
    color: #2f7b44;
}

.eec-eligibility-badge.eec-ineligible {
    background: #fff1f0;
    border: 1px solid #f0d2cd;
    color: #c14532;
}

.eec-badge-icon i {
    font-size: 14px;
}

.eec-badge-text {
    line-height: 1.2;
}

.eec-summary-desc {
    font-size: 13px;
    color: #5f5a56;
    line-height: 1.6;
}

.eec-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eec-summary-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f5f1e7;
    color: #7a6944;
    font-size: 11px;
    font-weight: 600;
}

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

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

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

.eec-requirement-item {
    border: 1px solid #ece8e1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eec-requirement-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eec-requirement-icon {
    color: #4caf50;
    font-size: 13px;
    line-height: 1;
}

.eec-requirement-name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #2d2a26;
}

.eec-requirement-status {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.eec-requirement-status.eec-pass {
    background: #edf8f0;
    color: #2f7b44;
}

.eec-requirement-status.eec-fail {
    background: #fff1f0;
    color: #c14532;
}

.eec-requirement-reason {
    padding-left: 21px;
    font-size: 12px;
    line-height: 1.5;
    color: #6e6761;
}

/* ===== 최대지급액 카드 ===== */
.eec-payment-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.eec-payment-title i {
    color: #d4af37;
}

.eec-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.eec-payment-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid #eee8da;
    border-radius: 8px;
    background: #fffdf8;
}

.eec-payment-label {
    font-size: 11px;
    color: #8d8578;
}

.eec-payment-value {
    font-size: 13px;
    color: #3a352f;
    line-height: 1.45;
}

.eec-expected-max {
    border-radius: 10px;
    padding: 12px;
    background: #faf5e8;
    border: 1px solid #ebdfbf;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eec-expected-label {
    font-size: 12px;
    color: #7c6a45;
}

.eec-expected-value {
    font-size: 24px;
    font-weight: 800;
    color: #b58913;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.eec-payment-note {
    font-size: 12px;
    color: #6e6761;
    line-height: 1.5;
}

/* ===== 다음 단계 ===== */
.eec-next-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.eec-next-title i {
    color: #d4af37;
}

.eec-next-lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #5f5a56;
}

.eec-next-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eec-next-list li {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.55;
}

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

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

/* ===== 반응형 ===== */
@media (max-width: 1100px) {
    .eec-main-layout {
        grid-template-columns: 1fr;
    }

    .eec-input-col {
        position: static;
    }
}

@media (max-width: 900px) {
    .eec-input-col,
    .eec-result-col,
    .eec-section,
    .eec-detail-section,
    .eec-payment-section,
    .eec-next-section {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .eec-input-group input:not([type="radio"]):not([type="checkbox"]),
    .eec-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .eec-payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .eec-main-layout,
    .eec-input-col,
    .eec-result-col,
    .eec-section,
    .eec-detail-section,
    .eec-payment-section,
    .eec-next-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .eec-btn-group {
        flex-direction: column;
    }

    .eec-expected-value {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eec-section,
    .eec-amount-input,
    .eec-select,
    .eec-checkbox-label,
    .eec-calculate-btn,
    .eec-reset-btn {
        transition: none !important;
    }

    .eec-section:hover,
    .eec-calculate-btn:hover {
        transform: none !important;
    }
}
