/**
 * Azharica PPDB Frontend Multi-Step Form Stylesheet
 * Brand: Forest Green (#0F5132), Gold (#D4AF37), White (#FFFFFF)
 */

.azh-ppdb-container {
    max-width: 820px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 81, 50, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

/* Header */
.azh-ppdb-wizard-header {
    background: linear-gradient(135deg, #0F5132 0%, #082d1c 100%);
    color: #ffffff;
    padding: 28px 32px;
    text-align: center;
}

.azh-ppdb-wizard-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.azh-ppdb-wizard-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 13px;
}

.azh-ppdb-badge {
    display: inline-block;
    background: #D4AF37;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Step Progress Indicator */
.azh-ppdb-steps-nav {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    overflow-x: auto;
}

.azh-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.azh-step-item .azh-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.azh-step-item.active {
    color: #0F5132;
    background: #e6f4ed;
}

.azh-step-item.active .azh-step-circle {
    background: #0F5132;
    color: #ffffff;
}

.azh-step-item.completed {
    color: #10B981;
}

.azh-step-item.completed .azh-step-circle {
    background: #10B981;
    color: #ffffff;
}

/* Step Content Sections */
.azh-ppdb-body {
    padding: 32px;
}

.azh-step-section {
    display: none;
}

.azh-step-section.active {
    display: block;
    animation: azhFadeIn 0.3s ease-out;
}

@keyframes azhFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.azh-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F5132;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.azh-section-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 24px 0;
}

/* Form Fields */
.azh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.azh-form-group {
    margin-bottom: 16px;
}

.azh-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.azh-form-group label .req {
    color: #dc2626;
}

.azh-input,
.azh-select,
.azh-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.azh-input:focus,
.azh-select:focus,
.azh-textarea:focus {
    outline: none;
    border-color: #0F5132;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
}

.azh-radio-group {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

.azh-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

/* Program Selector Cards */
.azh-program-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.azh-program-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.azh-program-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.azh-program-card.selected {
    border-color: #0F5132;
    background: #f0fdf4;
}

.azh-program-card input[type="radio"] {
    margin-top: 4px;
    accent-color: #0F5132;
}

.azh-program-card h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0F5132;
}

.azh-program-card p {
    margin: 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

/* Document Upload Card */
.azh-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px 20px;
    background: #f8fafc;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease;
}

.azh-upload-box:hover {
    border-color: #0F5132;
}

.azh-upload-info h5 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.azh-upload-info p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
}

/* Navigation Buttons */
.azh-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.azh-btn-prev {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.azh-btn-prev:hover {
    background: #e2e8f0;
}

.azh-btn-next {
    background: #0F5132;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.azh-btn-next:hover {
    background: #146c43;
}

.azh-btn-submit {
    background: linear-gradient(135deg, #F59E0B 0%, #D4AF37 100%);
    color: #1a1a1a;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.azh-btn-submit:hover {
    filter: brightness(1.05);
}

/* Success Card */
.azh-ppdb-success-card {
    text-align: center;
    padding: 30px 20px;
}

.azh-success-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.azh-reg-number-banner {
    background: #f0fdf4;
    border: 2px dashed #10B981;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 460px;
}

.azh-reg-number-banner .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #065f46;
}

.azh-reg-number-banner .number {
    font-size: 26px;
    font-weight: 900;
    color: #0F5132;
    font-family: monospace;
    letter-spacing: 1px;
    margin: 6px 0;
}

/* Closed state & Widgets */
.azh-ppdb-closed-alert {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.azh-ppdb-btn-wa {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .azh-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .azh-ppdb-body {
        padding: 20px;
    }
    .azh-step-item span {
        display: none;
    }
}

/* ==========================================================================
   Phase 6: Portal Hasil PPDB (/ppdb/hasil/) Styles
   ========================================================================== */
.azh-hasil-wrapper {
    max-width: 860px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 81, 50, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.azh-hasil-card-header {
    background: linear-gradient(135deg, #0F5132 0%, #06301e 100%);
    color: #ffffff;
    padding: 32px 24px;
    text-align: center;
}

.azh-hasil-badge {
    display: inline-block;
    background: #D4AF37;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.azh-hasil-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0;
}

.azh-hasil-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0;
}

.azh-hasil-search-box {
    padding: 24px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.azh-search-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #0F5132;
    margin-bottom: 8px;
}

.azh-search-bar {
    display: flex;
    gap: 10px;
}

.azh-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.2s;
}

.azh-search-input:focus {
    border-color: #0F5132;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.15);
}

.azh-btn-search {
    background: #0F5132;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.azh-btn-search:hover {
    background: #146c43;
}

.azh-search-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* Applicant Info Card */
.azh-applicant-info-card {
    padding: 24px 30px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.azh-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.azh-info-item {
    display: flex;
    flex-direction: column;
}

.azh-info-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.azh-info-value {
    font-size: 15px;
    color: #1e293b;
}

.azh-info-name {
    font-size: 17px;
    color: #0F5132;
}

.azh-program-tag {
    color: #0F5132;
    font-weight: 700;
}

.azh-status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    width: fit-content;
}

.azh-status-lulus {
    background: #dcfce7;
    color: #166534;
}

.azh-status-cadangan {
    background: #fef3c7;
    color: #92400e;
}

.azh-status-tidak-lulus {
    background: #fee2e2;
    color: #991b1b;
}

.azh-status-baru, .azh-status-terverifikasi {
    background: #e0f2fe;
    color: #0369a1;
}

/* Box Accepted View */
.azh-box-accepted {
    padding: 30px;
    background: #fafaf9;
}

.azh-accepted-celebration {
    background: linear-gradient(135deg, #0F5132 0%, #083320 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(15, 81, 50, 0.2);
    border: 2px solid #D4AF37;
}

.azh-accepted-badge-gold {
    display: inline-block;
    background: #D4AF37;
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.azh-accepted-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.azh-accepted-h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #D4AF37;
    margin: 0;
}

.azh-accepted-highlight {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 14px 0;
    color: #ffffff;
}

.azh-accepted-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 16px auto;
    line-height: 1.6;
}

.azh-sk-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: #fef08a;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.azh-accepted-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0;
}

.azh-btn-download-letter {
    flex: 1;
    min-width: 260px;
    background: #D4AF37;
    color: #111827 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    transition: all 0.2s;
}

.azh-btn-download-letter:hover {
    background: #e5b93d;
    transform: translateY(-2px);
}

.azh-btn-wa-confirm {
    flex: 1;
    min-width: 260px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.2s;
}

.azh-btn-wa-confirm:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.azh-rereg-deadline-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.azh-deadline-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.azh-deadline-header .azh-icon {
    font-size: 28px;
}

.azh-deadline-title {
    margin: 0;
    color: #92400e;
    font-size: 15px;
    font-weight: 700;
}

.azh-deadline-date {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: #78350f;
}

.azh-deadline-note {
    font-size: 12px;
    color: #b45309;
    margin: 8px 0 0 0;
    border-top: 1px dashed #fcd34d;
    padding-top: 8px;
}

.azh-rereg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.azh-rereg-col {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.azh-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.azh-col-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0F5132;
}

.azh-instructions-content, .azh-docs-content {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

/* Box Cadangan, Box Rejected, Box Process */
.azh-box-cadangan, .azh-box-rejected, .azh-box-process, .azh-result-notfound, .azh-hasil-box-closed {
    padding: 36px 30px;
    text-align: center;
}

.azh-cadangan-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.azh-cadangan-info-box {
    text-align: left;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px 20px;
    max-width: 600px;
    margin: 16px auto;
    font-size: 13px;
}

.azh-rejected-text {
    max-width: 620px;
    margin: 12px auto;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.azh-rejected-quote {
    background: #f8fafc;
    border-left: 4px solid #0F5132;
    padding: 14px 20px;
    margin: 20px auto;
    max-width: 620px;
    font-style: italic;
    font-size: 13px;
    color: #334155;
    text-align: left;
}

.azh-quote-surah {
    display: block;
    font-style: normal;
    font-weight: bold;
    color: #0F5132;
    margin-top: 6px;
}

