/* ==========================================================================
   Planet Interim — Shared form confirmation modal
   Used by every generic form (Contact, Payroll, Factoring, CV-OK, Wellness…)
   through the FormConfirmationModal.ascx user control, which the shared
   MICMS_GenericForm code-behind loads once per page after a successful submit.

   This is the single source of truth for the confirmation popup — do NOT inline
   these rules per form. Aligned with the shared modal system (SPoT, June 15 2026):
   680px width, rgba(42,74,110,0.18) overlay, title behaves like H2 in navy.
   ========================================================================== */
.pi-form-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(42, 74, 110, 0.18); /* SPoT shared modal overlay */
    overflow-y: auto;
    font-family: Montserrat, Arial, sans-serif;
}

.pi-form-confirm-overlay.is-open {
    display: flex;
}

.pi-form-confirm {
    width: 100%;
    max-width: 680px; /* SPoT shared modal width */
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E6E9EF;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
    overflow: hidden;
}

.pi-form-confirm-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 30px 22px 30px;
    border-bottom: 1px solid #E6E9EF;
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 65%, #eef5fb 100%);
}

.pi-form-confirm-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #365A8F; /* SPoT modal title = H2 navy */
    text-transform: none;
    letter-spacing: 0;
}

.pi-form-confirm-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #ffffff;
    color: #8c919b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pi-form-confirm-close:hover {
    background: #f5f7fa;
    color: #365A8F;
}

.pi-form-confirm-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 30px 28px 30px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pi-form-confirm-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: #339A63; /* green check — positive confirmation */
}

.pi-form-confirm-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

@media (max-width: 767px) {
    .pi-form-confirm-overlay {
        padding: 16px;
    }

    .pi-form-confirm-head {
        padding: 24px 20px 20px 20px;
    }

    .pi-form-confirm-title {
        font-size: 22px;
    }

    .pi-form-confirm-body {
        padding: 22px 20px 24px 20px;
    }
}
