/* ============================================
   SPMB STYLES - SMK CIJANGKAR
   ============================================ */

.spmb-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 100px 0 50px;
    color: var(--white);
    text-align: center;
}

.spmb-hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.spmb-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.spmb-section {
    padding: 50px 0;
}

.spmb-section.alt {
    background: var(--surface);
}

/* Info Cards */
.spmb-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spmb-info-card {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.spmb-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.spmb-info-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
}

.spmb-info-card h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.spmb-info-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Timeline Alur */
.spmb-timeline {
    display: grid;
    gap: 1.5rem;
}

.spmb-timeline-item {
    display: flex;
    gap: 1.5rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.spmb-timeline-number {
    width: 42px;
    height: 42px;
    background: var(--highlight);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.spmb-timeline-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.spmb-timeline-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Persyaratan */
.persyaratan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.persyaratan-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.persyaratan-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.persyaratan-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.persyaratan-card.wajib ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.persyaratan-card.opsional ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Form SPMB */
.spmb-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.spmb-form-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, var(--surface-muted) 0%, var(--surface) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.spmb-form-section:last-child {
    margin-bottom: 0;
}

.spmb-form-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(129, 182, 34, 0.12);
    border-left: 5px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 0.25rem;
}

.form-row.three {
    grid-template-columns: repeat(3, 1fr);
}

.form-row.four {
    grid-template-columns: repeat(4, 1fr);
}

/* Status Cek */
.status-cek {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
}

.status-cek label {
    display: flex;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.status-cek h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.status-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    display: none;
}

.status-result.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.status-result.pending {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.status-result.diterima {
    background: rgba(129, 182, 34, 0.1);
    border-left: 4px solid var(--secondary);
}

.status-result.ditolak {
    background: rgba(229, 62, 62, 0.1);
    border-left: 4px solid #e53e3e;
}

@media (max-width: 1024px) {
    .spmb-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .persyaratan-grid {
        grid-template-columns: 1fr;
    }

    .form-row.four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spmb-section {
        padding: 50px 0;
    }

    .spmb-info-grid {
        grid-template-columns: 1fr;
    }

    .spmb-form-container {
        padding: 1rem;
    }

    .spmb-form-section {
        padding: 1rem;
    }

    .spmb-form-section h3 {
        font-size: 1rem;
    }

    .form-row,
    .form-row.three,
    .form-row.four {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .spmb-timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group .required {
    color: #e53e3e;
    font-weight: 700;
}

.form-group small {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
    width: 100%;
    min-height: 42px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(129, 182, 34, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '⚠';
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(129, 182, 34, 0.12);
    border-left: 4px solid var(--secondary);
    color: var(--primary);
}

.alert-danger {
    background: rgba(229, 62, 62, 0.08);
    border-left: 4px solid #e53e3e;
    color: #c53030;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* Bukti card detail */
.bukti-card .form-group p {
    margin-top: 0.35rem;
    margin-bottom: 0;
    color: var(--text);
    font-size: 0.95rem;
}

/* Narrow centered alert */
.alert-narrow {
    max-width: 900px;
    margin: 0 auto 2rem;
}

/* Status check form row */
.status-form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.status-form-row .form-group {
    text-align: left;
    margin-bottom: 0;
}

.status-form-row .form-group-grow {
    flex: 1;
}

.error-list {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.error-list li {
    margin-bottom: 0.25rem;
}

.error-list li:last-child {
    margin-bottom: 0;
}

/* Print styles for bukti pendaftaran */
@media print {
    .navbar, .page-header, footer, .btn-print {
        display: none !important;
    }
    .bukti-card {
        box-shadow: none;
        border: 2px solid var(--primary);
    }
}

/* Tombol Samakan Alamat */
.label-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.label-with-action label {
    margin-bottom: 0;
}

.btn-link {
    background: transparent;
    color: #1e3a8a;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #2563eb;
}

.btn-sm {
    font-size: 0.8rem;
}
