.zpmc-registration {
    --zpmc-navy: #0b1e33;
    --zpmc-teal: #32bdbd;
    --zpmc-orange: #f5a000;
    font-family: inherit;
}

.zpmc-open-button,
.zpmc-pay-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.zpmc-open-button {
    background: var(--zpmc-teal);
    color: #fff;
    padding: 14px 28px;
}

.zpmc-open-button:hover,
.zpmc-open-button:focus-visible {
    transform: translateY(-1px);
}

.zpmc-test-notice {
    color: #8a5200;
    font-size: 14px;
    margin: 0 0 10px;
}

.zpmc-admin-error,
.zpmc-error {
    background: #fff1f1;
    border: 1px solid #e9a2a2;
    border-radius: 8px;
    color: #8a1616;
    padding: 10px 12px;
}

.zpmc-modal[hidden] {
    display: none !important;
}

.zpmc-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 2147483647;
}

.zpmc-backdrop {
    background: rgba(4, 15, 28, 0.78);
    inset: 0;
    position: absolute;
}

.zpmc-dialog {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    color: #172337;
    max-height: calc(100vh - 40px);
    max-width: 560px;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.zpmc-dialog h2 {
    color: var(--zpmc-navy);
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.2;
    margin: 0 42px 6px 0;
}

.zpmc-event-summary {
    color: #586575;
    margin: 0 0 22px;
}

.zpmc-close-button {
    align-items: center;
    background: #edf2f5;
    border: 0;
    border-radius: 50%;
    color: #172337;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
}

.zpmc-form {
    display: grid;
    gap: 16px;
}

.zpmc-form > label:not(.zpmc-consent) {
    color: #27384b;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
}

.zpmc-form input[type="text"],
.zpmc-form input[type="email"],
.zpmc-form input[type="tel"],
.zpmc-form select {
    appearance: none;
    background: #fff;
    border: 1px solid #c9d2dc;
    border-radius: 9px;
    box-sizing: border-box;
    color: #172337;
    font: inherit;
    font-weight: 400;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.zpmc-form input:focus,
.zpmc-form select:focus {
    border-color: var(--zpmc-teal);
    box-shadow: 0 0 0 3px rgba(50, 189, 189, 0.18);
    outline: none;
}

.zpmc-consent {
    align-items: flex-start;
    display: flex;
    font-size: 13px;
    gap: 10px;
    line-height: 1.5;
}

.zpmc-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.zpmc-consent a {
    color: #087f84;
}

.zpmc-modal .zpmc-pay-button {
    background: #0b1e33 !important;
    border-color: #0b1e33 !important;
    color: #fff !important;
    margin-top: 4px;
    min-height: 52px;
    padding: 13px 24px;
    width: 100%;
}

.zpmc-modal .zpmc-pay-button:hover,
.zpmc-modal .zpmc-pay-button:focus-visible {
    background: #12365b !important;
    border-color: #12365b !important;
    color: #fff !important;
}

.zpmc-modal .zpmc-pay-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.zpmc-honeypot {
    height: 1px !important;
    left: -10000px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
}

body.zpmc-modal-open {
    overflow: hidden;
}

/*
 * The custom theme contains high stacking-context page layers. While Razorpay
 * Checkout is open, prevent every normal page child from receiving pointer
 * input and reserve the top interaction layer for Razorpay's body-level
 * container. This also prevents invisible CTA/backdrop layers from blocking
 * the payment methods or Razorpay's exit confirmation.
 */
body.zpmc-checkout-open {
    overflow: hidden;
}

body.zpmc-checkout-open::before,
body.zpmc-checkout-open::after,
body.zpmc-checkout-open > *:not(.razorpay-container) {
    pointer-events: none !important;
}

body.zpmc-checkout-open > .razorpay-container {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

body.zpmc-checkout-open > .razorpay-container iframe {
    pointer-events: auto !important;
}

@media (max-width: 600px) {
    .zpmc-modal {
        align-items: flex-end;
        padding: 0;
    }

    .zpmc-dialog {
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
        padding: 24px 18px;
    }
}
