/* ============================================================
   astro-modals.css
   ------------------------------------------------------------
   One shared overlay/open-close mechanism for every modal:
   kundali, marriage, and the verification popup.

   IMPORTANT — remove these now-duplicate rules from your existing
   stylesheet so they don't fight with the ones below:
     - .modal-overlay { ... }                  (kundali's old overlay)
     - #marriageModal's Tailwind-only open/close classes are replaced
       by .app-modal-overlay below (markup updated accordingly)
     - .vp-overlay / .vp-overlay.open          (verification popup's
       old overlay — superseded by .app-modal-overlay)
   Everything else in your existing modal CSS (.modal-wrap,
   .modal-left, .marriage-party, etc.) stays exactly as it was.
   ============================================================ */

.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(10, 8, 25, 0.75);
  backdrop-filter: blur(10px);
}

.app-modal-overlay.app-modal-open {
  display: flex;
}

/* Verification popup sits above the other two if it's ever opened
   while one is already showing (shouldn't normally happen, but it's
   one less thing to debug). */



.vp-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.65);
    display: none; align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    z-index: 1000;
}
.vp-overlay.open { display: flex; }
/* .vp-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%; max-width: 540px;
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    animation: vpPop .28s cubic-bezier(.34,1.56,.64,1) both;
} */
.vp-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%; max-width: 540px;
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    animation: vpPop .28s cubic-bezier(.34,1.56,.64,1) both;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vp-modal::-webkit-scrollbar {
    display: none;
}
@keyframes vpPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.vp-header {
    background: #f15a24;
    padding: 18px 22px;
    display: flex; align-items: center; gap: 12px;
    border-radius: 20px 20px 0 0;
}
.vp-header-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.vp-header-icon svg { color: #fff; }
.vp-header h2 { color:#fff; font-size:17px; font-weight:700; margin:0; }
.vp-header p  { color:rgba(255,255,255,0.8); font-size:12px; margin:3px 0 0;}
.vp-report-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    white-space: nowrap;
}
.vp-body { padding: 20px 22px; }
.vp-notice {
    background: #fff8f5;
    border: 1px solid rgba(241,90,36,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #b93d1a;
    margin-bottom: 18px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.vp-notice svg { flex-shrink: 0; color: #f15a24; }
.vp-section-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #f15a24;
    margin: 0 0 8px;
}
.vp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.vp-field {
    background: #fafafa;
    border: 1px solid #f0ece8;
    border-radius: 10px;
    padding: 10px 14px;
}
.vp-field.full { grid-column: 1 / -1; }
.vp-field label {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #aaa;
    display: block;
    margin-bottom: 3px;
}
.vp-field span {
    font-size: 14px; font-weight: 600; color: #1a1a1a;
}
.vp-divider {
    border: none;
    border-top: 1px solid #f0ece8;
    margin: 14px 0;
}
.vp-confirm-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 16px;
    background: #fff8f5;
    border: 1.5px solid rgba(241,90,36,0.25);
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s;
}
.vp-confirm-row:hover { border-color: #f15a24; }
.vp-checkbox {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #f15a24;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
    transition: background .2s;
}
.vp-checkbox.checked { background: #f15a24; }
.vp-checkbox svg { color: #fff; display: none; }
.vp-checkbox.checked svg { display: block; }
.vp-confirm-row p {
    font-size: 13px; color: #444; margin: 0; line-height: 1.5; font-weight: 500;
}
.vp-btns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.vp-btn-edit {
    padding: 13px;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: border-color .2s, color .2s;
}
.vp-btn-edit:hover { border-color: #f15a24; color: #f15a24; }
.vp-btn-submit {
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: #f15a24;
    color: #fff;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: background .2s, opacity .2s;
    opacity: .4;
    pointer-events: none;
}
.vp-btn-submit.active {
    opacity: 1;
    pointer-events: auto;
}
.vp-btn-submit:hover { background: #d64a1d; }

/* Marriage-specific two-party layout */
.vp-party-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 10px;
}
.vp-party-head {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.vp-party-head.blue { background:#eff6ff; color:#1d4ed8; }
.vp-party-head.pink { background:#fdf2f8; color:#be185d; }

