/**
 * Yellow Umbrella Deduction Calculator Styles
 * 노란우산공제 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

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

.nyuc-section,
.nyuc-result-summary,
.nyuc-visual-section,
.nyuc-guide-section,
.nyuc-detail-section,
.nyuc-warning-box,
.nyuc-disclaimer {
    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;
}

.nyuc-section:hover,
.nyuc-result-summary:hover,
.nyuc-visual-section:hover,
.nyuc-guide-section:hover,
.nyuc-detail-section:hover,
.nyuc-warning-box:hover,
.nyuc-disclaimer:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

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

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

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

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

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

.nyuc-label-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #d4af37;
    border: 1px solid #f3e6b0;
    background: #fef9e7;
}

.nyuc-label-badge-blue {
    color: #297db6;
    border-color: #c9e3f6;
    background: #eef7fd;
}

.nyuc-amount-input,
.nyuc-select,
.nyuc-number-input {
    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;
}

.nyuc-amount-input,
.nyuc-number-input {
    padding: 10px 12px;
    font-size: 14px;
}

.nyuc-amount-input {
    font-weight: 600;
    text-align: right;
}

.nyuc-select {
    padding: 10px 32px 10px 12px;
    font-size: 13px;
    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;
    cursor: pointer;
}

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

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

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

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

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

.nyuc-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

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

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

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

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

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

.nyuc-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#nyucRentalRatioInput {
    flex: 1;
    accent-color: #d4af37;
}

.nyuc-range-value {
    min-width: 42px;
    font-size: 12px;
    font-weight: 700;
    color: #7a6d4d;
    text-align: right;
}

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

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

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

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

.nyuc-reset-btn:hover {
    background: #ece8e1;
}

.nyuc-waiting {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #8c8984;
}

.nyuc-waiting-icon {
    font-size: 34px;
    color: #d4af37;
    opacity: 0.4;
}

.nyuc-waiting-title {
    font-size: 16px;
    font-weight: 700;
    color: #5f5a56;
}

.nyuc-waiting-desc {
    font-size: 13px;
    line-height: 1.55;
}

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

.nyuc-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0e6c8;
    color: #7b6430;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.nyuc-summary-title {
    font-size: 12px;
    font-weight: 600;
    color: #7a6f56;
    margin-bottom: 4px;
}

.nyuc-summary-main {
    font-size: 32px;
    font-weight: 800;
    color: #2d2a26;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.nyuc-summary-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #8c8578;
    line-height: 1.45;
}

.nyuc-summary-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nyuc-summary-item {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e8e0c8;
    background: rgba(255, 255, 255, 0.82);
}

.nyuc-summary-item.is-kpi {
    border-color: #d4af37;
    background: rgba(255, 250, 238, 0.95);
}

.nyuc-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b6558;
    margin-bottom: 4px;
}

.nyuc-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.35;
}

.nyuc-summary-item.is-kpi .nyuc-summary-value {
    font-size: 22px;
    color: #b58913;
}

.nyuc-summary-desc {
    margin-top: 4px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.4;
}

.nyuc-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nyuc-chart-card {
    border: 1px solid #ece4d1;
    border-radius: 10px;
    background: #faf9f7;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nyuc-chart-title {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.nyuc-chart-canvas-wrap {
    position: relative;
    height: 210px;
}

.nyuc-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.nyuc-chart-caption {
    font-size: 11px;
    color: #8f8a82;
    line-height: 1.45;
}

.nyuc-util-meter {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nyuc-util-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b665d;
}

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

.nyuc-util-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #ede8de;
    overflow: hidden;
}

.nyuc-util-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #d3c9ac, #cbbf9d);
    transition: width 0.3s ease;
}

.nyuc-util-fill.is-mid {
    background: linear-gradient(135deg, #d4af37, #c79f2f);
}

.nyuc-util-fill.is-high {
    background: linear-gradient(135deg, #c08f1d, #a67616);
}

.nyuc-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.nyuc-guide-card {
    border: 1px solid #ece4d1;
    border-radius: 10px;
    background: #faf9f7;
    padding: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nyuc-guide-label {
    font-size: 11px;
    color: #7f786d;
}

.nyuc-guide-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.3;
}

.nyuc-guide-desc {
    font-size: 11px;
    color: #9c968b;
    line-height: 1.45;
}

.nyuc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nyuc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee9dd;
    background: #faf9f7;
}

.nyuc-detail-label {
    font-size: 12px;
    color: #6b665f;
}

.nyuc-detail-value {
    font-size: 13px;
    color: #2d2a26;
    font-weight: 700;
    text-align: right;
}

.nyuc-divider {
    margin: 14px 0;
    border-top: 1px dashed #e2dbcb;
}

.nyuc-sim-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.nyuc-sim-card {
    background: #faf9f7;
    border: 1px solid #ece6d8;
    border-radius: 8px;
    padding: 10px;
}

.nyuc-sim-card-total {
    background: #fdf6e6;
    border-color: #e8d59c;
}

.nyuc-sim-label {
    font-size: 11px;
    color: #7d776e;
    margin-bottom: 4px;
}

.nyuc-sim-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
}

.nyuc-sim-card-total .nyuc-sim-value {
    color: #b58913;
}

.nyuc-sim-note {
    margin-top: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.45;
}

.nyuc-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border-color: #f2c8b9;
    background: #fff7f4;
    color: #a45a3c;
    font-size: 12px;
    line-height: 1.5;
}

.nyuc-warning-box i {
    margin-top: 1px;
    color: #d77b50;
}

.nyuc-disclaimer {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
    background: #faf9f7;
}

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

@media (max-width: 1100px) {
    .nyuc-main-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .nyuc-main-layout,
    .nyuc-input-col,
    .nyuc-result-col,
    .nyuc-input-section {
        max-width: 100%;
        overflow: hidden;
    }

    .nyuc-summary-grid,
    .nyuc-chart-grid,
    .nyuc-guide-grid,
    .nyuc-detail-grid,
    .nyuc-sim-grid,
    .nyuc-input-grid {
        grid-template-columns: 1fr;
    }

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

    .nyuc-radio-horizontal {
        flex-direction: column;
    }
}

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

    .nyuc-section,
    .nyuc-result-summary,
    .nyuc-visual-section,
    .nyuc-guide-section,
    .nyuc-detail-section,
    .nyuc-warning-box,
    .nyuc-disclaimer {
        padding: 14px;
    }

    .nyuc-chart-canvas-wrap {
        height: 190px;
    }

    .nyuc-summary-main {
        font-size: 26px;
    }

    .nyuc-summary-value {
        font-size: 16px;
    }

    .nyuc-summary-item.is-kpi .nyuc-summary-value {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nyuc-section,
    .nyuc-result-summary,
    .nyuc-visual-section,
    .nyuc-guide-section,
    .nyuc-detail-section,
    .nyuc-warning-box,
    .nyuc-disclaimer,
    .nyuc-amount-input,
    .nyuc-select,
    .nyuc-number-input,
    .nyuc-calculate-btn,
    .nyuc-reset-btn,
    .nyuc-radio-label,
    .nyuc-util-fill {
        transition: none !important;
    }

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