/**
 * ABSIH LOMS — Form Core Styles
 * (Common: progress bar, wrapper, nav, buttons, errors, calc box)
 */

@charset "UTF-8";

/* ============ Form Wrapper ============ */
.absih-form-wrapper {
    max-width: 210mm;
    margin: 20px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #0a1e5e;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* ============ Progress Bar ============ */
.absih-progress {
    display: flex;
    justify-content: space-around;
    background: #f5f7fb;
    padding: 15px 10px;
    border-bottom: 1px solid #d0d7e5;
}
.absih-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.absih-progress-step.active,
.absih-progress-step.completed {
    opacity: 1;
}
.absih-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d0d7e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
.absih-progress-step.active .absih-progress-circle {
    background: #0a1e5e;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(10, 30, 94, 0.15);
}
.absih-progress-step.completed .absih-progress-circle {
    background: #16a34a;
}
.absih-progress-label {
    font-size: 11px;
    font-weight: 600;
    color: #0a1e5e;
}

/* ============ Form Container ============ */
.absih-form-container {
    padding: 20px 25px;
}
.absih-page {
    display: none;
}
.absih-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ Generic Section Title ============ */
.absih-section-title {
    background: #e8ecf5;
    color: #0a1e5e;
    font-size: 15px;
    font-weight: bold;
    padding: 8px 12px;
    margin: 15px 0 10px;
    border-left: 5px solid #0a1e5e;
    border-radius: 3px;
}

/* ============ Navigation ============ */
.absih-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px 20px;
    border-top: 1px solid #e8ecf5;
    gap: 10px;
}
.absih-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.absih-btn-prev {
    background: #e8ecf5;
    color: #0a1e5e;
}
.absih-btn-prev:hover {
    background: #d0d7e5;
}
.absih-btn-next,
.absih-btn-submit {
    background: #0a1e5e;
    color: #ffffff;
    margin-left: auto;
}
.absih-btn-next:hover,
.absih-btn-submit:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 30, 94, 0.3);
}
.absih-btn-submit {
    background: #16a34a;
}
.absih-btn-submit:hover {
    background: #15803d;
}

/* ============ Error Box ============ */
.absih-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 5px;
    padding: 12px 16px;
    margin: 0 25px 15px;
    color: #991b1b;
    font-size: 13px;
}
.absih-error-box ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

/* ============ Calc Box (Generic) ============ */
.absih-calc-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 15px 0;
}
.absih-calc-box h4 {
    margin: 0 0 10px;
    color: #0a1e5e;
    font-size: 14px;
}
.absih-calc-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #bfdbfe;
    font-size: 13px;
}
.absih-calc-row:last-child {
    border-bottom: none;
}
.absih-calc-value {
    font-weight: bold;
    color: #0a1e5e;
}

/* ============ Auto-calc Highlight ============ */
@keyframes absih-highlight {
    0%   { background-color: rgba(22, 163, 74, 0.15); }
    100% { background-color: rgba(255, 255, 255, 0.5); }
}
.absih-updated {
    animation: absih-highlight 1s ease;
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
    .absih-form-wrapper {
        margin: 10px;
        border-radius: 6px;
    }
    .absih-form-container {
        padding: 15px;
    }
    .absih-form-header-title {
        font-size: 18px;
    }
    .absih-progress-label {
        font-size: 9px;
    }
    .absih-progress-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}