/* ── Dialog centering ────────────────────────────────────── */
dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: 92vh;
    overflow-y: auto;
}
dialog::backdrop {
    background: rgba(11,34,56,0.55);
    backdrop-filter: blur(4px);
}
dialog[open] {
    animation: dlgIn 0.22s ease;
}
@keyframes dlgIn {
    from { opacity:0; transform:translate(-50%,-52%) scale(0.97); }
    to   { opacity:1; transform:translate(-50%,-50%) scale(1);    }
}
.dlg-input {
    border: 1px solid #096ac940;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: #585C7B;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.2s;
}
.dlg-input:focus { border-color: #096AC9; box-shadow: 0 0 0 3px rgba(9,106,201,0.12); }
.dlg-btn-primary {
    background: #096AC9;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.dlg-btn-primary:hover { background: #0758a8; }
.dlg-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.dlg-close-btn {
    background: #e7f1fa;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0B2238;
    flex-shrink: 0;
    transition: background 0.2s;
}
.dlg-close-btn:hover { background: #096AC9; color: white; }
.otp-digit {
    border: 1.5px solid #096ac940;
    border-radius: 10px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B2238;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}
.otp-digit:focus { border-color: #096AC9; box-shadow: 0 0 0 3px rgba(9,106,201,0.12); }

/* reCAPTCHA container */
.recaptcha-wrap {
    margin: 12px 0;
    min-height: 78px;
    display: flex;
    align-items: center;
}
/* Scale down on very small screens */
@media (max-width: 400px) {
    .recaptcha-wrap { transform: scale(0.85); transform-origin: left center; }
}
@media (max-width: 540px) {
    .dlg-grid-2 { grid-template-columns: 1fr !important; }
    dialog { width: calc(100% - 1.5rem) !important; }
}
