/**
 * Traffic Accident Settlement Calculator Styles
 * 교통사고 합의금 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

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

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

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

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

/* ===== 숨김 클래스 ===== */
.tasc-hidden {
    display: none !important;
}

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

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

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

/* ===== 금액 입력 ===== */
.tasc-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;
}

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

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

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

/* ===== 숫자 입력 ===== */
.tasc-number-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;
}

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

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

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

/* ===== 셀렉트 ===== */
.tasc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    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 fill='%235f5a56' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

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

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

/* ===== 한글 금액 표시 ===== */
.tasc-korean-amount {
    font-size: 11px;
    color: #d4af37;
    margin-top: 4px;
    min-height: 16px;
    font-weight: 500;
}

/* ===== 힌트 텍스트 ===== */
.tasc-hint {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

/* ===== 슬라이더 ===== */
.tasc-slider-wrap {
    padding: 4px 0;
}

.tasc-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e8e4dc;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.tasc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.tasc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.tasc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9e9a96;
    margin-top: 4px;
}

.tasc-fault-display {
    font-size: 13px;
    color: #2d2a26;
    margin-top: 8px;
    text-align: center;
}

.tasc-fault-display strong {
    color: #d4af37;
    font-size: 15px;
}

/* ===== 계산 버튼 ===== */
.tasc-btn-group {
    margin-top: 0;
}

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

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

.tasc-calculate-btn:active {
    transform: scale(0.98);
}

/* ===== 대기 안내 ===== */
.tasc-waiting {
    text-align: center;
    padding: 40px 18px;
}

.tasc-waiting-icon {
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 12px;
}

.tasc-waiting-text {
    font-size: 14px;
    color: #9e9a96;
}

/* ===== 최종 합의금 카드 ===== */
.tasc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 1px solid #e8dcc0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.tasc-summary-label {
    font-size: 13px;
    font-weight: 500;
    color: #8a7a5a;
    margin-bottom: 8px;
}

.tasc-summary-amount {
    font-size: 36px;
    font-weight: 800;
    color: #2d2a26;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tasc-summary-unit {
    font-size: 18px;
    font-weight: 600;
    color: #5f5a56;
    margin-left: 2px;
}

.tasc-summary-sub {
    font-size: 12px;
    color: #9e9a96;
    margin-top: 8px;
}

/* ===== 항목별 카드 ===== */
.tasc-detail-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tasc-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

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

.tasc-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #faf6ec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: #d4af37;
}

.tasc-card-body {
    flex: 1;
    min-width: 0;
}

.tasc-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #9e9a96;
    margin-bottom: 4px;
}

.tasc-card-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    letter-spacing: -0.01em;
}

.tasc-card-desc {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 2px;
}

.tasc-card-formula {
    font-size: 11px;
    color: #8a7a5a;
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-all;
}

/* ===== 상세 계산 과정 ===== */
.tasc-calc-process {
    margin-top: 0;
}

.tasc-process-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tasc-process-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece4;
    font-size: 13px;
}

.tasc-process-row:last-child {
    border-bottom: none;
}

.tasc-process-label {
    color: #5f5a56;
    flex-shrink: 0;
}

.tasc-process-value {
    font-weight: 600;
    color: #2d2a26;
    text-align: right;
}

.tasc-process-formula {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 2px;
}

.tasc-process-total {
    background: #faf6ec;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    border-bottom: none;
}

.tasc-process-total .tasc-process-label {
    font-weight: 700;
    color: #2d2a26;
}

.tasc-process-total .tasc-process-value {
    font-weight: 800;
    color: #d4af37;
    font-size: 15px;
}

/* ===== 안내 문구 ===== */
.tasc-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tasc-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.tasc-notice i {
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 1px;
}

.tasc-notice-warning {
    background: #fef9e7;
    border: 1px solid #f5e6a3;
    color: #8a6d00;
}

.tasc-notice-warning i {
    color: #d4a017;
}

.tasc-notice-info {
    background: #f0f4f8;
    border: 1px solid #d0dce8;
    color: #4a6785;
}

.tasc-notice-info i {
    color: #5a8ab5;
}

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

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

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

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

    .tasc-summary-amount {
        font-size: 28px;
    }
}

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

    .tasc-detail-card {
        padding: 12px;
        gap: 10px;
    }

    .tasc-card-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .tasc-card-amount {
        font-size: 16px;
    }

    .tasc-summary-amount {
        font-size: 24px;
    }
}

/* ===== 접근성 ===== */
@media (prefers-reduced-motion: reduce) {
    .tasc-section,
    .tasc-amount-input,
    .tasc-number-input,
    .tasc-select,
    .tasc-calculate-btn,
    .tasc-detail-card {
        transition: none !important;
    }

    .tasc-section:hover,
    .tasc-detail-card:hover,
    .tasc-calculate-btn:hover {
        transform: none !important;
    }
}