/* Auto Loan Calculator — style.css v1.0 */

.alc-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* Header */
.alc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.alc-icon { font-size: 32px; line-height: 1; }
.alc-title {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 0 3px !important; padding: 0 !important;
    border: none !important; color: #1a1a1a !important;
}
.alc-sub { font-size: 13px; color: #666; margin: 0; }

/* Tabs */
.alc-tabs {
    display: flex;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.alc-tab {
    flex: 1;
    padding: 11px 10px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-right: 1px solid #d0d0d0;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background .13s, color .13s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
    text-align: center;
}
.alc-tab:last-child { border-right: none; }
.alc-tab:hover:not(.act) { background: #fdf8f0; }
.alc-tab.act { background: #faeeda; color: #633806; }
.alc-tab-sub { font-size: 11px; font-weight: 400; opacity: .75; }

/* Panels */
.alc-panel { display: none; }
.alc-panel.act { display: block; }

/* Section labels */
.alc-section-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
    margin-top: 16px;
}

/* Grid */
.alc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 4px;
}
@media (max-width: 500px) { .alc-grid { grid-template-columns: 1fr; } }

/* Labels */
.alc-lbl {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}
.alc-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e8e8e8;
    font-size: 10px;
    color: #777;
    cursor: help;
    flex-shrink: 0;
    font-style: normal;
}

/* Inputs */
.alc-iw { position: relative; }
.alc-iw input[type="number"],
.alc-iw select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 44px 9px 26px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.alc-iw input::-webkit-inner-spin-button,
.alc-iw input::-webkit-outer-spin-button { -webkit-appearance: none; }
.alc-iw input:focus { border-color: #BA7517; box-shadow: 0 0 0 3px rgba(186,117,23,.1); }
.alc-pre {
    position: absolute; left: 9px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px; color: #999; pointer-events: none;
}
.alc-suf {
    position: absolute; right: 9px; top: 50%;
    transform: translateY(-50%);
    font-size: 12px; color: #999; pointer-events: none;
}

/* Term buttons */
.alc-term-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
}
.alc-term-btn {
    padding: 7px 14px;
    font-size: 13px;
    border: 1px solid #d0d0d0;
    border-radius: 7px;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background .13s, color .13s;
}
.alc-term-btn:hover:not(.act) { background: #fdf8f0; }
.alc-term-btn.act { background: #faeeda; color: #633806; border-color: #EF9F27; font-weight: 600; }
.alc-custom-term { width: 90px; }
.alc-custom-term input { padding: 7px 30px 7px 10px !important; }

/* Checkbox row */
.alc-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 2px;
    font-size: 13px;
    color: #555;
}
.alc-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #BA7517;
    flex-shrink: 0;
}

/* Result card */
.alc-result-card {
    background: #fdf5e6;
    border: 1px solid #f0c97a;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 20px;
    margin-bottom: 16px;
    animation: alc-in .22s ease;
}
@keyframes alc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.alc-main-pay {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0c97a;
    margin-bottom: 14px;
}
.alc-pay-val { font-size: 34px; font-weight: 700; color: #4A2A00; line-height: 1.2; }
.alc-pay-lbl { font-size: 13px; color: #8B5A00; margin-top: 4px; }

/* Breakdown list */
.alc-bitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0d8a0;
    font-size: 13px;
}
.alc-bitem:last-child { border-bottom: none; font-weight: 600; font-size: 14px; }
.alc-bitem-lbl { color: #7A5200; }
.alc-bitem-val { color: #3A2000; }

/* Bars */
.alc-bars { margin-top: 12px; border-top: 1px solid #f0c97a; padding-top: 12px; }
.alc-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.alc-bar-row:last-child { margin-bottom: 0; }
.alc-blbl { font-size: 12px; color: #7A5200; width: 80px; flex-shrink: 0; }
.alc-track { flex: 1; height: 7px; background: #f0d8a0; border-radius: 4px; overflow: hidden; }
.alc-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.alc-bamt { font-size: 12px; color: #3A2000; width: 110px; text-align: right; flex-shrink: 0; }

/* Amortization */
.alc-amort { margin-bottom: 14px; }
.alc-amort-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.alc-amort-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.alc-abtns { display: flex; gap: 6px; }
.alc-abtn {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background .13s;
}
.alc-abtn.act { background: #faeeda; color: #633806; border-color: #EF9F27; font-weight: 600; }

table.alc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.alc-table th {
    padding: 8px 10px;
    text-align: right;
    color: #888;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}
table.alc-table th:first-child { text-align: left; }
table.alc-table td {
    padding: 7px 10px;
    text-align: right;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
}
table.alc-table td:first-child { text-align: left; color: #555; font-weight: 500; }
table.alc-table tr.alc-year-row td {
    background: #fdf8f0;
    font-size: 11px;
    font-weight: 600;
    color: #BA7517;
    text-transform: uppercase;
    letter-spacing: .3px;
}
table.alc-table tr:hover:not(.alc-year-row) td { background: #fffaf0; }
table.alc-table tr:last-child td { border-bottom: none; }

.alc-more-btn {
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    font-size: 13px;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .13s;
}
.alc-more-btn:hover { background: #fdf8f0; }

.alc-reset-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    font-size: 13px;
    color: #999;
    background: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: background .13s;
}
.alc-reset-btn:hover { background: #f5f5f5; color: #333; }
