/**
 * Property Tax Calculator Styles
 * 재산세 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== 체크박스 ===== */
.ptc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

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

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

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

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

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

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

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

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

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

.ptc-summary-title {
    font-size: 13px;
    font-weight: 600;
    color: #7a756d;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptc-summary-title i {
    color: #d4af37;
}

.ptc-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.ptc-compare-card {
    padding: 14px;
    border-radius: 10px;
    text-align: center;
}

.ptc-compare-card.ptc-card-general {
    background: #fff;
    border: 1px solid #e8e4dc;
}

.ptc-compare-card.ptc-card-special {
    background: #fdfbf5;
    border: 1px solid #d4af37;
}

.ptc-compare-card-label {
    font-size: 11px;
    font-weight: 500;
    color: #7a756d;
    margin-bottom: 8px;
}

.ptc-compare-card-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ptc-compare-card.ptc-card-special .ptc-compare-card-amount {
    color: #d4af37;
}

.ptc-compare-card-sub {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

.ptc-savings-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #d4af37;
}

.ptc-savings-label {
    font-size: 12px;
    color: #7a756d;
}

.ptc-savings-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4dabf7;
}

.ptc-special-note {
    font-size: 11px;
    color: #e74c3c;
    text-align: center;
    margin-top: 8px;
}

/* ===== 결과 - 세부 내역 테이블 ===== */
.ptc-detail-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

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

.ptc-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ptc-detail-table th {
    padding: 8px 10px;
    background: #faf9f7;
    border-bottom: 2px solid #e8e4dc;
    font-weight: 600;
    color: #5f5a56;
    text-align: center;
    font-size: 12px;
}

.ptc-detail-table th:first-child {
    text-align: left;
}

.ptc-detail-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0ede8;
    text-align: right;
    color: #2d2a26;
}

.ptc-detail-table td:first-child {
    text-align: left;
    color: #5f5a56;
    font-size: 12px;
}

.ptc-detail-table tbody tr:hover td {
    background: #faf9f7;
}

.ptc-detail-table tr.ptc-detail-total td {
    border-top: 2px solid #e8e4dc;
    border-bottom: none;
    font-weight: 700;
    font-size: 14px;
    padding-top: 10px;
}

.ptc-detail-table tr.ptc-detail-total td:nth-child(3) {
    color: #d4af37;
}

/* ===== 결과 - 도넛 차트 ===== */
.ptc-chart-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.ptc-chart-title i {
    color: #d4af37;
}

.ptc-chart-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ptc-donut-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.ptc-chart-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ptc-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.ptc-legend-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptc-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ptc-legend-label {
    color: #5f5a56;
}

.ptc-legend-value {
    font-weight: 600;
    color: #2d2a26;
}

/* ===== 결과 - 세부담 상한 ===== */
.ptc-burden-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.ptc-burden-title i {
    color: #d4af37;
}

.ptc-burden-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.ptc-burden-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.ptc-burden-row:nth-child(odd) {
    background: #faf9f7;
}

.ptc-burden-row-label {
    color: #5f5a56;
}

.ptc-burden-row-value {
    font-weight: 600;
    color: #2d2a26;
}

.ptc-burden-result {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ptc-burden-result.ptc-burden-applied {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1px solid #a5d6a7;
}

.ptc-burden-result.ptc-burden-not-applied {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
}

.ptc-burden-result-label {
    color: #5f5a56;
}

.ptc-burden-result-value {
    font-weight: 700;
    color: #27ae60;
    font-size: 14px;
}

.ptc-burden-result.ptc-burden-not-applied .ptc-burden-result-value {
    color: #9e9a96;
}

.ptc-burden-empty {
    text-align: center;
    padding: 16px;
    color: #9e9a96;
    font-size: 12px;
}

/* ===== 결과 - 납부 스케줄 ===== */
.ptc-schedule-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.ptc-schedule-title i {
    color: #d4af37;
}

.ptc-schedule-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ptc-schedule-card {
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
}

.ptc-schedule-card.ptc-schedule-active {
    border-color: #d4af37;
    background: #fdfbf5;
}

.ptc-schedule-month {
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 4px;
}

.ptc-schedule-period {
    font-size: 11px;
    color: #9e9a96;
    margin-bottom: 8px;
}

.ptc-schedule-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    letter-spacing: -0.02em;
}

.ptc-schedule-note {
    margin-top: 10px;
    padding: 8px 12px;
    background: #faf9f7;
    border-radius: 6px;
    font-size: 11px;
    color: #9e9a96;
    text-align: center;
}

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

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

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

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

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

    .ptc-input-col {
        position: static;
        width: 100%;
    }

    .ptc-result-col {
        width: 100%;
    }

    .tool-layout-input {
        max-width: 100%;
        overflow: hidden;
    }

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

    .ptc-compare-card-amount {
        font-size: 18px;
    }

    .ptc-detail-table {
        font-size: 12px;
    }

    .ptc-detail-table th,
    .ptc-detail-table td {
        padding: 6px 6px;
    }

    .ptc-chart-body {
        flex-direction: column;
    }

    .ptc-donut-wrap {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .tool-section,
    .tool-layout-split,
    .tool-layout-input,
    .tool-layout-result {
        max-width: 100%;
        overflow-x: hidden;
    }

    .ptc-section {
        padding: 12px;
    }

    .ptc-result-summary {
        padding: 14px;
    }

    .ptc-compare-grid {
        grid-template-columns: 1fr;
    }

    .ptc-compare-card-amount {
        font-size: 20px;
    }

    .ptc-schedule-cards {
        grid-template-columns: 1fr;
    }

    .ptc-savings-row {
        flex-direction: column;
        gap: 4px;
    }
}
