/**
 * Basic Pension Eligibility Calculator Styles
 * 기초연금 수급자격 계산기
 *
 * @package Zipper
 */

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

.bpec-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.bpec-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

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

.bpec-section,
.bpec-result-summary,
.bpec-visual-section,
.bpec-checklist-section,
.bpec-detail-section,
.bpec-pension-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;
}

.bpec-section:hover,
.bpec-result-summary:hover,
.bpec-visual-section:hover,
.bpec-checklist-section:hover,
.bpec-detail-section:hover,
.bpec-pension-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.bpec-input-section {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.bpec-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

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

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

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

.bpec-number-input,
.bpec-amount-input {
    padding: 10px 12px;
}

.bpec-number-input {
    font-size: 14px;
    font-weight: 600;
}

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

.bpec-select {
    padding: 10px 32px 10px 12px;
    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;
}

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

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

.bpec-amount-input::placeholder,
.bpec-number-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

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

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

.bpec-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.bpec-radio-horizontal .bpec-radio-label {
    flex: 1;
}

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

.bpec-checklist-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

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

.bpec-criteria-list li {
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
}

.bpec-btn-group {
    display: flex;
    gap: 8px;
}

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

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

.bpec-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: border-color 0.2s, background-color 0.2s;
}

.bpec-reset-btn:hover {
    border-color: #d4c67a;
    background: #fff;
}

.bpec-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.bpec-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.bpec-summary-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #7b6521;
    background: rgba(212, 175, 55, 0.16);
    margin-bottom: 8px;
}

.bpec-summary-badge.bpec-pass {
    color: #1f7a3f;
    background: rgba(32, 161, 84, 0.14);
}

.bpec-summary-badge.bpec-fail {
    color: #b24d3c;
    background: rgba(226, 84, 58, 0.14);
}

.bpec-summary-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
}

.bpec-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bpec-summary-item {
    padding: 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #fff;
}

.bpec-summary-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #8c8578;
}

.bpec-summary-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.25;
    word-break: keep-all;
}

.bpec-progress-card,
.bpec-threshold-card,
.bpec-composition-card {
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #faf9f7;
    padding: 12px;
}

.bpec-threshold-card,
.bpec-composition-card {
    margin-top: 10px;
}

.bpec-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6f685d;
}

.bpec-progress-head strong {
    font-size: 13px;
    color: #2d2a26;
}

.bpec-progress-track,
.bpec-threshold-track,
.bpec-composition-track,
.bpec-pension-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #ece9e3;
    overflow: hidden;
}

.bpec-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4af37 0%, #c49a1f 100%);
    transition: width 0.35s ease;
}

.bpec-threshold-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.bpec-threshold-values span {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    color: #8c8578;
}

.bpec-threshold-values strong {
    font-size: 13px;
    color: #2d2a26;
}

.bpec-threshold-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20a154 0%, #3abf74 100%);
    transition: width 0.35s ease, background-color 0.25s ease;
}

.bpec-threshold-fill.is-over {
    background: linear-gradient(90deg, #e05b43 0%, #f08b7a 100%);
}

.bpec-threshold-status {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #5f5a56;
}

.bpec-composition-track {
    display: flex;
}

.bpec-composition-segment {
    height: 100%;
    min-width: 0;
    transition: width 0.35s ease;
}

.bpec-composition-income {
    background: linear-gradient(90deg, #5f8dd3 0%, #7aa6e8 100%);
}

.bpec-composition-asset {
    background: linear-gradient(90deg, #d4af37 0%, #e2c35d 100%);
}

.bpec-composition-legend {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bpec-composition-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5f5a56;
}

.bpec-composition-item strong {
    color: #2d2a26;
    font-size: 12px;
}

.bpec-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bpec-income-dot {
    background: #6b96da;
}

.bpec-asset-dot {
    background: #d4af37;
}

.bpec-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bpec-check-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
}

.bpec-check-item.bpec-pass {
    border-color: rgba(32, 161, 84, 0.35);
    background: rgba(32, 161, 84, 0.06);
}

.bpec-check-item.bpec-fail {
    border-color: rgba(226, 84, 58, 0.35);
    background: rgba(226, 84, 58, 0.06);
}

.bpec-check-icon {
    margin-top: 1px;
    font-size: 15px;
}

.bpec-check-item.bpec-pass .bpec-check-icon {
    color: #20a154;
}

.bpec-check-item.bpec-fail .bpec-check-icon {
    color: #e2543a;
}

.bpec-check-content strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #2d2a26;
}

.bpec-check-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #5f5a56;
}

.bpec-check-status {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

.bpec-check-item.bpec-pass .bpec-check-status {
    color: #1f7a3f;
}

.bpec-check-item.bpec-fail .bpec-check-status {
    color: #b24d3c;
}

.bpec-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bpec-detail-item {
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
}

.bpec-detail-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #8c8578;
}

.bpec-detail-item strong {
    font-size: 13px;
    color: #2d2a26;
}

.bpec-formula-box {
    margin-top: 12px;
    border: 1px dashed #d9d2c3;
    border-radius: 8px;
    background: #fffdf8;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bpec-formula-box p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #5f5a56;
}

.bpec-pension-section {
    border-color: #e4d7ae;
    background: linear-gradient(135deg, #fffdf5 0%, #fdf8e9 100%);
}

.bpec-pension-amount {
    font-size: 24px;
    font-weight: 800;
    color: #2d2a26;
    line-height: 1.2;
    margin-bottom: 6px;
}

.bpec-pension-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
}

.bpec-pension-compare {
    margin: 8px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bpec-pension-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6f685d;
}

.bpec-pension-label {
    line-height: 1.35;
}

.bpec-pension-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.bpec-single-fill {
    background: linear-gradient(90deg, #2f8fcb 0%, #63b2e0 100%);
}

.bpec-couple-fill {
    background: linear-gradient(90deg, #c49a1f 0%, #dcb44a 100%);
}

.bpec-pension-row strong {
    font-size: 12px;
    color: #2d2a26;
    white-space: nowrap;
}

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

.bpec-disclaimer i {
    margin-top: 1px;
    color: #d4af37;
}

@media (max-width: 960px) {
    .bpec-main-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

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

@media (max-width: 768px) {
    .bpec-section,
    .bpec-result-summary,
    .bpec-visual-section,
    .bpec-checklist-section,
    .bpec-detail-section,
    .bpec-pension-section {
        padding: 14px;
    }

    .bpec-summary-grid,
    .bpec-detail-grid {
        grid-template-columns: 1fr;
    }

    .bpec-threshold-values {
        grid-template-columns: 1fr;
    }

    .bpec-pension-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .bpec-reset-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bpec-main-layout,
    .bpec-input-col,
    .bpec-result-col,
    .bpec-section,
    .bpec-result-summary,
    .bpec-visual-section,
    .bpec-checklist-section,
    .bpec-detail-section,
    .bpec-pension-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .bpec-waiting {
        padding: 30px 14px;
    }

    .bpec-pension-amount {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpec-section,
    .bpec-result-summary,
    .bpec-visual-section,
    .bpec-checklist-section,
    .bpec-detail-section,
    .bpec-pension-section,
    .bpec-number-input,
    .bpec-amount-input,
    .bpec-select,
    .bpec-calculate-btn,
    .bpec-reset-btn,
    .bpec-progress-fill,
    .bpec-threshold-fill,
    .bpec-composition-segment,
    .bpec-pension-fill {
        transition: none !important;
    }

    .bpec-calculate-btn:hover {
        transform: none !important;
    }
}
