/*
 * =====================================================
 * PAUD Ar Rayyan - Pendaftaran CRUD Stylesheet
 * =====================================================
 * Styling khusus untuk halaman pendaftaran (CRUD)
 * Menggunakan variabel CSS yang sama dengan style.css
 * =====================================================
 */

/* =====================================================
   SECTION UTAMA PENDAFTARAN
   ===================================================== */
.pendaftaran-section {
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-light);
}

/* =====================================================
   HEADER PENDAFTARAN
   ===================================================== */
.pendaftaran-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.pendaftaran-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pendaftaran-title i {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.pendaftaran-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 4px;
}

/* =====================================================
   ALERT SUKSES
   ===================================================== */
.alert-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #E8F8EF, #D4F1E2);
    border: 1px solid rgba(126, 212, 166, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: #1a7a4c;
    font-weight: 600;
    animation: slideDown 0.4s ease-out;
}

.alert-success i:first-child {
    font-size: 1.3rem;
    color: var(--color-accent-dark);
}

.alert-success span {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    color: #1a7a4c;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* =====================================================
   ALERT ERROR
   ===================================================== */
.alert-error {
    padding: 20px 24px;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    animation: slideDown 0.4s ease-out;
}

.alert-error-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #991B1B;
    font-size: 0.95rem;
}

.alert-error-header i {
    font-size: 1.2rem;
    color: #DC2626;
}

.alert-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-error li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #991B1B;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-error li i {
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* =====================================================
   TABLE WRAPPER & DATA TABLE
   ===================================================== */
.table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid rgba(91, 188, 240, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.data-table thead th {
    padding: 16px 18px;
    text-align: left;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.data-table tbody tr:hover {
    background: rgba(91, 188, 240, 0.05);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 14px 18px;
    font-size: 0.92rem;
    color: var(--text-medium);
    vertical-align: middle;
}

/* Cell styles */
.nama-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.avatar-blue {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.avatar-pink {
    background: linear-gradient(135deg, var(--color-pink), #E879A8);
}

.badge-gender {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-male {
    background: rgba(91, 188, 240, 0.15);
    color: var(--color-primary-dark);
}

.badge-female {
    background: rgba(249, 168, 212, 0.2);
    color: #C2185B;
}

.phone-cell,
.email-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
}

.phone-cell i,
.email-cell i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-edit {
    background: rgba(91, 188, 240, 0.12);
    color: var(--color-primary-dark);
}

.btn-edit:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 188, 240, 0.35);
}

.btn-preview {
    background: rgba(91, 188, 240, 0.12);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.btn-preview:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 188, 240, 0.35);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.btn-delete:hover {
    background: #DC2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-pdf {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    text-decoration: none;
}

.btn-pdf:hover {
    background: #DC2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.form-delete {
    display: inline;
}

/* =====================================================
   DETAIL PENDAFTARAN
   ===================================================== */
.detail-header {
    align-items: flex-end;
    padding: 2px 0 4px;
}

.detail-title {
    margin-top: 16px;
    margin-bottom: 2px;
    letter-spacing: 0;
}

.detail-page-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-success {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(126, 212, 166, 0.35);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(126, 212, 166, 0.45);
}

.btn-sm-detail {
    padding: 9px 18px;
    font-size: 0.9rem;
}

.detail-container {
    max-width: 1320px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    width: 100%;
}

.detail-layout .card {
    background: var(--bg-white);
    border: 1px solid rgba(91, 188, 240, 0.16);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.07);
}

.detail-summary-card {
    display: none;
    padding: 22px;
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.summary-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(91, 188, 240, 0.14);
}

.detail-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.summary-heading h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.18rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 3px;
    overflow-wrap: anywhere;
}

.summary-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(91, 188, 240, 0.14);
}

.summary-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.summary-row span {
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.summary-row strong {
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.detail-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    text-align: left;
}

.detail-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-size: 0.88rem;
    font-weight: 700;
}

.detail-nav a:hover,
.detail-nav a.active {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.detail-nav i {
    color: var(--color-primary-dark);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: 100%;
}

.detail-card {
    overflow: hidden;
}

.detail-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fbfdff, #eff8ff);
    border-bottom: 1px solid rgba(91, 188, 240, 0.18);
}

.detail-card .card-header i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-white);
    font-size: 0.98rem;
    box-shadow: 0 6px 14px rgba(91, 188, 240, 0.26);
    flex-shrink: 0;
}

.detail-card .card-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: 0;
}

.detail-card .card-body {
    padding: 24px 26px 26px;
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.detail-list-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.78fr) 12px minmax(0, 1.32fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    line-height: 1.45;
}

.detail-row span {
    color: #365174;
    font-size: 0.92rem;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.detail-row em {
    color: var(--color-primary-dark);
    font-style: normal;
    font-weight: 800;
}

.detail-row strong {
    color: var(--text-dark);
    font-size: 0.94rem;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.detail-grid-single {
    grid-template-columns: 1fr;
}

.detail-item {
    display: grid;
    grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.4fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.detail-item-wide {
    grid-column: 1 / -1;
}

.detail-item span {
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 700;
}

.detail-item strong {
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.detail-card-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-light), #E8F4FD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--color-primary);
}

.empty-state h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* =====================================================
   FORM CARD
   ===================================================== */
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(91, 188, 240, 0.1);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.form-card-header i {
    font-size: 1.5rem;
}

.form-card-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    font-weight: 700;
}

.form-card form {
    padding: 32px;
}

/* =====================================================
   FORM GRID & INPUTS
   ===================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.required {
    color: #DC2626;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(91, 188, 240, 0.2);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(91, 188, 240, 0.15);
}

.form-input.input-error {
    border-color: #DC2626;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.checkbox-group.input-error {
    border: 2px solid #DC2626;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

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

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234A5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.error-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #DC2626;
    font-weight: 600;
}

.error-text i {
    font-size: 0.8rem;
}

/* =====================================================
   DESKTOP VALIDATION STATE
   ===================================================== */
@media (min-width: 769px) {
    .pendaftaran-section .form-input.input-error,
    .pendaftaran-section .form-input[aria-invalid="true"] {
        border-color: #DC2626;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    }

    .pendaftaran-section .form-input.input-error:focus,
    .pendaftaran-section .form-input[aria-invalid="true"]:focus {
        border-color: #DC2626;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    }

    .pendaftaran-section .checkbox-group.input-error,
    .pendaftaran-section .checkbox-group[aria-invalid="true"] {
        border: 2px solid #DC2626;
        border-radius: var(--radius-sm);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    }

    .pendaftaran-section .error-text {
        display: flex;
    }
}

/* =====================================================
   FORM ACTIONS
   ===================================================== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* =====================================================
   BACK LINK
   ===================================================== */
.back-link {
    margin-top: 24px;
    text-align: center;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   STEP PROGRESS INDICATOR
   ===================================================== */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, #f0f9ff, #e8f4fd);
    border-bottom: 1px solid rgba(91, 188, 240, 0.15);
    gap: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    border: 2.5px solid #cbd5e1;
    color: #94a3b8;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step-line {
    width: 48px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Active step */
.step-item.active .step-circle {
    border-color: var(--color-primary, #5bbcf0);
    background: var(--color-primary, #5bbcf0);
    color: white;
    box-shadow: 0 4px 14px rgba(91, 188, 240, 0.4);
}

.step-item.active .step-label {
    color: var(--color-primary-dark, #3a9fd8);
    font-weight: 800;
}

.step-item.active .step-item-content {
    background: rgba(91, 188, 240, 0.08);
}

/* Completed step */
.step-item.completed .step-circle {
    border-color: var(--color-accent, #7ed4a6);
    background: var(--color-accent, #7ed4a6);
    color: white;
    box-shadow: 0 4px 14px rgba(126, 212, 166, 0.35);
}

.step-item.completed .step-label {
    color: var(--color-accent-dark, #4caf80);
    font-weight: 700;
}

.step-item.completed + .step-item .step-line,
.step-line.completed {
    background: var(--color-accent, #7ed4a6);
}

/* =====================================================
   FORM STEP VISIBILITY
   ===================================================== */
.form-step {
    display: none;
    animation: stepFadeIn 0.35s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   FORM NAVIGATION BUTTONS
   ===================================================== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.form-navigation .btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
}

.form-navigation .btn-nav-next {
    background: linear-gradient(135deg, var(--color-primary, #5bbcf0), var(--color-primary-dark, #3a9fd8));
    color: white;
    box-shadow: 0 4px 16px rgba(91, 188, 240, 0.35);
    margin-left: auto;
}

.form-navigation .btn-nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91, 188, 240, 0.45);
}

.form-navigation .btn-nav-back {
    background: white;
    color: var(--text-medium, #6b7280);
    border: 2px solid #e2e8f0;
}

.form-navigation .btn-nav-back:hover {
    border-color: var(--color-primary, #5bbcf0);
    color: var(--color-primary-dark, #3a9fd8);
    transform: translateY(-2px);
}

.form-navigation .btn-nav-submit {
    background: linear-gradient(135deg, var(--color-accent, #7ed4a6), var(--color-accent-dark, #4caf80));
    color: white;
    box-shadow: 0 4px 16px rgba(126, 212, 166, 0.35);
    margin-left: auto;
}

.form-navigation .btn-nav-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(126, 212, 166, 0.45);
}

/* NIK validation error hint */
.nik-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: -2px;
}

.nik-hint.error {
    color: #DC2626;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-summary-card {
        position: static;
    }

    .detail-nav {
        display: none;
    }

    .detail-card-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pendaftaran-section {
        padding-top: calc(var(--navbar-height) + 24px);
        padding-bottom: 60px;
    }

    .pendaftaran-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pendaftaran-title {
        font-size: 1.6rem;
    }

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

    .form-group.full-width {
        grid-column: 1;
    }

    .form-card form {
        padding: 20px;
    }

    .form-card-header {
        padding: 20px 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-header {
        align-items: flex-start;
    }

    .detail-page-actions {
        width: 100%;
    }

    .detail-page-actions .btn {
        flex: 1;
        justify-content: center;
        min-width: 150px;
    }

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

    .detail-list-two {
        grid-template-columns: 1fr;
    }

    .detail-card .card-body {
        padding: 22px;
    }

    .detail-row {
        grid-template-columns: minmax(158px, 0.72fr) 12px minmax(0, 1.28fr);
    }

    .detail-item {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    /* Step progress responsive */
    .step-progress {
        padding: 20px 16px 16px;
    }

    .step-label {
        display: none;
    }

    .step-item-content {
        padding: 6px 10px;
    }

    .step-line {
        width: 32px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }

    /* Form navigation responsive */
    .form-navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-navigation .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .form-navigation .btn-nav-next,
    .form-navigation .btn-nav-submit {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .pendaftaran-title {
        font-size: 1.3rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .detail-nav {
        display: none;
        grid-template-columns: 1fr;
    }

    .detail-page-actions {
        flex-direction: column;
    }

    .detail-page-actions .btn {
        width: 100%;
    }

    .summary-heading {
        align-items: flex-start;
    }

    .summary-row,
    .detail-row {
        grid-template-columns: minmax(118px, 0.82fr) 10px minmax(0, 1.18fr);
        gap: 8px;
    }

    .detail-row em {
        display: block;
    }

    .detail-card .card-header {
        padding: 16px 18px;
    }

    .detail-card .card-body {
        padding: 18px;
    }

    .detail-row span,
    .detail-row strong {
        font-size: 0.88rem;
    }
}
