/*====================
*
* MODAL FORM
*
====================*/
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 50vw;
    max-height: 85vh;
    margin: 5vh auto;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #eee;
    border-radius: 20px 20px 0px 0px;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}


.modal-close {
   background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #a00000;
}

.modal-content h3 {
    color: #a00000;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* FORM */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group small {
    font-size: 12px;
    color: #777;
}

.form-check {
    font-size: 13px;
    margin: 14px 0;
}

.btn-submit {
    width: 100%;
    background: #a00000;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #7a0000;
}

.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: vertical;
}


.btn-disabled {
    opacity: 0.6;
    pointer-events: none;
}


/* ===== STATUS RESULT ===== */
.status-result {
    margin-top: 20px;
}

/* Card */
.status-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Row */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #1f2937;
}

.status-row + .status-row {
    border-top: 1px dashed #e5e7eb;
}

/* Label & Value */
.status-row .label {
    font-weight: 600;
    color: #6b7280;
}

.status-row .value {
    font-weight: 500;
    color: #111827;
    text-align: right;
}

/* Highlight row */
.status-highlight {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}



/* ===== STATUS BADGE ===== */
.badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Pending */
.badge-pending {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fed7aa;
}

/* Acc */
.badge-acc {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Not Acc */
.badge-notacc {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Error */
.status-error {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}


.status-info {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.status-info p {
    margin: 0;
    flex: 1;
}

.status-info i {
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Success info */
.status-info-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}





@media (max-width: 768px) {
    .modal-content {
        max-width: 90vw;
    }
}