/* ==========================================================================
   PORTAL PENDAFTARAN - PESANTREN PUTRI AL-MAWADDAH
   Clean, Lightweight & Modern Multi-Step Form Styling
   ========================================================================== */

:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --success: #059669;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-page: #f8fafc;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* Navbar */
.form-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* Stepper Progress Bar (Compact & To the Point) */
.form-stepper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
}

.stepper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stepper-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
}

.stepper-percent {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stepper-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.stepper-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.stepper-links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.step-link-item {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.step-link-item.active {
    color: var(--primary);
    font-weight: 700;
}

.step-link-item.completed {
    color: var(--success);
}

.step-link-item:hover {
    color: var(--primary);
}

@media (max-width: 640px) {
    .stepper-links {
        display: none;
    }
    .form-stepper {
        padding: 12px 16px;
        margin-bottom: 18px;
    }
}

/* Form Container Card */
.form-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 28px 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .form-box {
        padding: 36px 40px;
    }
}

/* Form Header (Clean, Direct, Non-AI-Slop) */
.form-heading {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.form-heading h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 4px;
}

.form-heading p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* Section Subhead */
.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 24px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--primary);
}

/* Form Controls */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-label .req {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

.form-control, .form-select {
    font-size: 0.925rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.form-control[readonly], .form-control:disabled {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.form-text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
}

/* Registration strip info */
.reg-strip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.reg-strip-item {
    font-size: 0.85rem;
    color: #64748b;
}

.reg-strip-item strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Upload Document Cards */
.upload-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    background: #ffffff;
    margin-bottom: 16px;
    transition: border-color 0.15s ease;
}

.upload-card:hover {
    border-color: #cbd5e1;
}

.upload-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.upload-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

.upload-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* Review Tables for Step 5 */
.review-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.review-card-head {
    background: #f8fafc;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.review-table th {
    width: 35%;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background-color: #fbfcfe;
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.review-table td {
    font-size: 0.88rem;
    color: var(--text-main);
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* Footer Action Buttons */
.form-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 576px) {
    .form-footer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .form-footer-actions .btn {
        width: 100%;
    }
}
