/* ============================================================
   UL Eviction Calculators — CSS
   Color system: #AADDFF / #88ccff / #0a3d5f / #E5F3FF
   ============================================================ */

.ul-calc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto 40px;
    border: 2px solid #AADDFF;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(26,42,58,0.08);
}

/* ── Header ── */
.ul-calc-header {
    background: linear-gradient(135deg, #E5F3FF 0%, #d4ecff 100%);
    padding: 24px 28px 20px;
    border-bottom: 2px solid #AADDFF;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ul-calc-logo {
    height: 36px;
    width: auto;
}
.ul-calc-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0a3d5f;
}

/* ── Intro ── */
.ul-calc-intro {
    padding: 16px 28px 0;
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* ── Form ── */
.ul-calc-form {
    padding: 20px 28px 24px;
}
.ul-calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.ul-calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ul-calc-field label {
    font-size: 12px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ul-calc-select,
.ul-calc-input {
    padding: 10px 14px;
    border: 2px solid #AADDFF;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.ul-calc-select:focus,
.ul-calc-input:focus {
    outline: none;
    border-color: #88ccff;
    box-shadow: 0 0 0 3px rgba(170,221,255,0.3);
}

/* ── Button ── */
.ul-calc-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #AADDFF, #88ccff);
    border: 1px solid #77bbee;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #0a3d5f;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.ul-calc-btn:hover {
    background: linear-gradient(135deg, #88ccff, #77bbee);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136,204,255,0.4);
}
.ul-calc-btn-large {
    padding: 14px 36px;
    font-size: 16px;
    width: 100%;
    border-radius: 10px;
}

/* ── Results ── */
.ul-calc-results {
    padding: 0 28px 28px;
    border-top: 2px solid #E5F3FF;
    margin-top: 4px;
}

/* Result Header */
.ul-calc-result-header {
    background: linear-gradient(135deg, #0a3d5f, #2271b1);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0 16px;
}
.ul-calc-result-state {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.ul-calc-result-sub {
    font-size: 13px;
    color: #AADDFF;
}

/* Stat row (readiness tool) */
.ul-calc-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.ul-calc-stat-box {
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #AADDFF;
}
.ul-calc-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #0a3d5f;
    margin-bottom: 4px;
}
.ul-calc-stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Total display */
.ul-calc-total-display {
    text-align: center;
    padding: 20px;
    background: #E5F3FF;
    border-radius: 10px;
    margin-bottom: 20px;
}
.ul-calc-total-num {
    font-size: 42px;
    font-weight: 800;
    color: #0a3d5f;
    line-height: 1.1;
}
.ul-calc-total-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Sections */
.ul-calc-section {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fbff;
    border: 1px solid #E5F3FF;
    border-radius: 10px;
}
.ul-calc-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #AADDFF;
}

/* Milestones */
.ul-calc-milestones {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 16px 0;
}
.ul-calc-milestone {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #E5F3FF;
    align-items: flex-start;
}
.ul-calc-milestone:last-child { border-bottom: none; }
.ul-calc-milestone-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.ul-calc-milestone-label {
    font-size: 12px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ul-calc-milestone-date {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 2px 0;
}
.ul-calc-milestone-sub {
    font-size: 12px;
    color: #666;
}

/* Timeline bar */
.ul-calc-timeline-bar {
    display: flex;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid #AADDFF;
}
.ul-calc-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #0a3d5f;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 4px;
    min-width: 0;
}
.ul-calc-bar-segment span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail grid */
.ul-calc-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}
.ul-calc-detail-box {
    background: #f8fbff;
    border: 1px solid #E5F3FF;
    border-radius: 8px;
    padding: 12px;
}
.ul-calc-detail-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.ul-calc-detail-value {
    font-size: 13px;
    font-weight: 700;
    color: #0a3d5f;
    line-height: 1.4;
}

/* Badges */
.ul-calc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.ul-calc-badge.green { background: #d4edda; color: #155724; }
.ul-calc-badge.red   { background: #f8d7da; color: #721c24; }

/* Cost breakdown */
.ul-calc-cost-breakdown {
    background: #f8fbff;
    border: 1px solid #E5F3FF;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}
.ul-calc-cost-title {
    font-size: 12px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.ul-calc-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E5F3FF;
    font-size: 14px;
}
.ul-calc-cost-row:last-child { border-bottom: none; }
.ul-calc-cost-label { color: #444; }
.ul-calc-cost-value { font-weight: 700; color: #0a3d5f; }

/* Gotcha */
.ul-calc-gotcha {
    background: #eef6ff;
    border-left: 3px solid #AADDFF;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: #1a2a3a;
    line-height: 1.6;
}

/* Info box */
.ul-calc-info-box {
    background: linear-gradient(135deg, #fff8e6, #fff3d4);
    border: 1px solid #d4a843;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #3d2a00;
}
.ul-calc-info-box a { color: #8b6914; font-weight: 600; }
.ul-calc-info-box a:hover { text-decoration: underline; }

/* Links row */
.ul-calc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}
.ul-calc-link {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #88ccff;
    color: #0a3d5f;
    background: #E5F3FF;
    transition: all 0.2s;
}
.ul-calc-link:hover {
    background: #AADDFF;
    transform: translateY(-1px);
    color: #0a3d5f;
}
.ul-calc-link.highlight {
    background: linear-gradient(135deg, #1a3c5e, #2271b1);
    color: #fff;
    border-color: #1a3c5e;
}
.ul-calc-link.highlight:hover {
    background: linear-gradient(135deg, #2271b1, #1a3c5e);
    color: #fff;
}

/* Disclaimer */
.ul-calc-disclaimer {
    margin: 16px 28px 20px;
    padding: 12px 16px;
    background: #f8fbff;
    border: 1px solid #E5F3FF;
    border-radius: 8px;
    font-size: 11px;
    color: #5a6a7a;
    line-height: 1.6;
}
.ul-calc-disclaimer strong { color: #1a2a3a; }

/* Error */
.ul-calc-error {
    padding: 16px 28px;
    color: #721c24;
    background: #f8d7da;
    border-radius: 8px;
    margin: 16px 28px;
    font-size: 14px;
}

/* Branding */
.ul-calc-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #E5F3FF, #d4ecff);
    border-top: 2px solid #AADDFF;
    font-size: 13px;
    font-weight: 700;
    color: #0a3d5f;
}
.ul-calc-branding img { height: 24px; width: auto; }

/* Stub */
.ul-calc-stub .ul-calc-stub-body {
    padding: 24px 28px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ul-calc-header { padding: 18px 20px 16px; }
    .ul-calc-title { font-size: 18px; }
    .ul-calc-form,
    .ul-calc-results { padding-left: 16px; padding-right: 16px; }
    .ul-calc-row { grid-template-columns: 1fr; }
    .ul-calc-stat-row { grid-template-columns: repeat(2, 1fr); }
    .ul-calc-total-num { font-size: 30px; }
    .ul-calc-timeline-bar { display: none; }
    .ul-calc-detail-grid { grid-template-columns: 1fr 1fr; }
    .ul-calc-disclaimer { margin-left: 16px; margin-right: 16px; }
}
