/* EmiratesADZ Loan Calculator */
.eadz-loan-calculator {
    max-width: 1100px;
    margin: 30px auto;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    color: #1f2937;
    font-family: inherit;
}
.eadz-lc-header h2 { margin: 0 0 6px; font-size: 28px; }
.eadz-lc-header p { margin: 0 0 22px; color: #6b7280; }
.eadz-lc-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}
.eadz-lc-full { grid-column: 1 / -1; }
.eadz-lc-field label { display:block; font-weight:600; margin-bottom:7px; }
.eadz-lc-field input, .eadz-lc-field select {
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:#fff;
    box-sizing:border-box;
}
.eadz-lc-inline { display:grid; grid-template-columns:1fr 120px; gap:8px; }
.eadz-lc-field small { color:#6b7280; display:block; margin-top:5px; }
.eadz-lc-actions, .eadz-report-toolbar { display:flex; gap:10px; flex-wrap:wrap; }
.eadz-btn {
    border:0;
    border-radius:8px;
    padding:11px 18px;
    cursor:pointer;
    font-weight:700;
}
.eadz-primary { background:#0b63ce; color:#fff; }
.eadz-secondary { background:#eef2f7; color:#111827; }
.eadz-error { color:#b91c1c; margin-top:14px; font-weight:600; }
.eadz-result { margin-top:26px; }
.eadz-summary-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-bottom:20px;
}
.eadz-summary-card {
    padding:16px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#f8fafc;
}
.eadz-summary-card span { display:block; color:#6b7280; font-size:13px; }
.eadz-summary-card strong { display:block; margin-top:6px; font-size:19px; }
.eadz-report-toolbar { margin:15px 0 22px; }
.eadz-report-head { border-bottom:2px solid #111827; margin-bottom:18px; padding-bottom:12px; }
.eadz-report-head h3 { margin:0 0 4px; }
.eadz-report-head p { margin:0; color:#6b7280; }
.eadz-details-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-bottom:22px;
}
.eadz-details-grid div { padding:10px; background:#f8fafc; border-radius:8px; }
.eadz-details-grid b, .eadz-details-grid span { display:block; }
.eadz-details-grid span { margin-top:4px; }
.eadz-table-wrap { overflow-x:auto; margin-bottom:25px; }
.eadz-table { width:100%; border-collapse:collapse; font-size:13px; }
.eadz-table th, .eadz-table td {
    border:1px solid #e5e7eb;
    padding:8px;
    text-align:right;
    white-space:nowrap;
}
.eadz-table th:first-child, .eadz-table td:first-child { text-align:left; }
.eadz-table th { background:#f3f4f6; }
.eadz-disclaimer {
    padding:14px;
    border-left:4px solid #9ca3af;
    background:#f9fafb;
    font-size:13px;
    line-height:1.55;
    margin-top:20px;
}
.eadz-generated { text-align:center; font-size:12px; color:#6b7280; margin-top:15px; }

@media (max-width: 700px) {
    .eadz-loan-calculator { padding:16px; }
    .eadz-lc-form, .eadz-summary-grid, .eadz-details-grid { grid-template-columns:1fr; }
    .eadz-lc-full { grid-column:auto; }
}

@media print {
    body * { visibility:hidden !important; }
    .eadz-loan-calculator, .eadz-loan-calculator * { visibility:visible !important; }
    .eadz-loan-calculator {
        position:absolute;
        left:0;
        top:0;
        width:100%;
        max-width:none;
        margin:0;
        padding:0;
        border:0;
        box-shadow:none;
    }
    .eadz-lc-header, .eadz-lc-form, .eadz-error, .eadz-report-toolbar { display:none !important; }
    .eadz-result { margin:0; }
    .eadz-table { font-size:9px; }
    .eadz-table th, .eadz-table td { padding:4px; }
    .eadz-report { display:block !important; }
}


.eadz-chart-section {
    margin: 22px 0 26px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.eadz-chart-section h4 { margin-top: 0; }
.eadz-chart-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.eadz-chart-tab {
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 7px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}
.eadz-chart-tab.active {
    background: #0b63ce;
    color: #fff;
    border-color: #0b63ce;
}
.eadz-chart-wrap {
    height: 340px;
    position: relative;
}
@media (max-width: 700px) {
    .eadz-chart-wrap { height: 280px; }
}
@media print {
    .eadz-chart-section { break-inside: avoid; }
    .eadz-chart-tabs { display:none !important; }
}

.eadz-lc-currency {
    margin-bottom:16px;
    padding:14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:10px;
}
.eadz-lc-currency label { display:block; font-weight:700; margin-bottom:7px; }
.eadz-lc-currency input { width:120px; text-transform:uppercase; min-height:42px; padding:8px 10px; border:1px solid #d1d5db; border-radius:8px; }
.eadz-slider-field { padding:12px 0; }
.eadz-slider-label { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-bottom:8px; }
.eadz-slider-label label { margin:0; }
.eadz-slider-label strong { font-size:18px; }
.eadz-slider-field input[type="range"] { width:100%; accent-color:#0b63ce; cursor:pointer; }
.eadz-range-limits { display:flex; justify-content:space-between; color:#6b7280; font-size:12px; }
@media (max-width:700px) {
    .eadz-slider-label { align-items:flex-start; flex-direction:column; gap:3px; }
}
