/* Global guard: the hidden attribute must always win over display rules. */
[hidden] { display: none !important; }

.zcp-checkout,
.zcp-dashboard {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zcp-auth-wrap {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    width: 100%;
}

.zcp-auth-card,
.zcp-checkout section,
.zcp-checkout aside,
.zcp-dashboard aside,
.zcp-dashboard main,
.zcp-result,
.zcp-notice {
    background: #ffffff;
    border: 1px solid #dcefe4;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
    min-width: 0;
    padding: clamp(22px, 4vw, 34px);
}

.zcp-modal[hidden] {
    display: none;
}

.zcp-modal {
    inset: 0;
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 14px;
    -webkit-overflow-scrolling: touch;
}

.zcp-modal-backdrop {
    backdrop-filter: blur(9px);
    background: rgba(3, 7, 18, .54);
    inset: 0;
    position: fixed;
}

.zcp-modal-card {
    background: #ffffff;
    border: 1px solid #dcefe4;
    border-radius: 22px;
    box-shadow: 0 34px 120px rgba(0, 0, 0, .28);
    margin: auto;
    max-width: 430px;
    padding: 28px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.zcp-modal-close {
    background: transparent;
    border: 0;
    color: #96a89e;
    cursor: pointer;
    font-size: 30px;
    position: absolute;
    right: 18px;
    top: 14px;
}

.zcp-modal-brand {
    color: #0d2019;
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.zcp-modal-brand span {
    color: #0f9d6e;
}

.zcp-modal-card h2 {
    font-size: 28px;
    margin: 14px 0 6px;
}

.zcp-modal-card p,
.zcp-modal-note {
    color: #64746c;
}

.zcp-phone-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    text-align: left;
}

.zcp-phone-form label {
    color: #64746c;
    display: grid;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    text-transform: uppercase;
}

.zcp-phone-form input {
    border: 1px solid #cce6d6;
    border-radius: 999px;
    min-height: 48px;
    padding: 10px 14px;
}

.zcp-phone-input {
    align-items: center;
    border: 1px solid #0f9d6e;
    border-radius: 999px;
    display: flex;
    overflow: hidden;
}

.zcp-phone-input b {
    border-right: 1px solid #cce6d6;
    color: #0d2019;
    padding: 0 14px;
}

.zcp-phone-input input {
    border: 0;
    flex: 1;
}

.zcp-phone-form button {
    background: #0f9d6e;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    min-height: 52px;
}

.zcp-auth-card span,
.zcp-checkout span,
.zcp-dashboard span,
.zcp-result span {
    color: #0f9d6e;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zcp-auth-card h2,
.zcp-checkout h2,
.zcp-dashboard h2,
.zcp-result h2 {
    color: #0d2019;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
    margin: 10px 0 18px;
}

.zcp-auth-card form,
.zcp-manual-form {
    display: grid;
    gap: 14px;
}

.zcp-auth-card label,
.zcp-manual-form label {
    color: #374a40;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 6px;
}

.zcp-auth-card input,
.zcp-auth-card select,
.zcp-manual-form input {
    border: 1px solid #cce6d6;
    border-radius: 7px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.zcp-auth-card button,
.zcp-manual-form button,
.zcp-dashboard button,
.zcp-btn {
    align-items: center;
    background: var(--zc-grad, #0f9d6e);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.26);
    color: #ffffff;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    text-decoration: none;
}

.zcp-check {
    align-items: center;
    display: flex !important;
    gap: 8px;
}

.zcp-check input {
    min-height: auto;
}

.zcp-total {
    background: #f1faf6;
    border: 1px solid #dcefe4;
    border-radius: 10px;
    display: grid;
    margin-top: 22px;
    padding: 18px;
}

.zcp-stepper {
    align-items: center;
    color: #96a89e;
    display: grid;
    font-size: 12px;
    font-weight: 900;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    letter-spacing: .08em;
    margin: 0 auto 26px;
    max-width: 760px;
    text-align: center;
    text-transform: uppercase;
}

.zcp-stepper span {
    border-top: 2px solid #dbe5f2;
    padding-top: 12px;
}

.zcp-stepper .is-done,
.zcp-stepper .is-active {
    border-color: #0f9d6e;
    color: #0f9d6e;
}

.zcp-trip-card,
.zcp-method-card {
    background: #f3fbf7;
    border: 1px solid #cbe9d7;
    border-radius: 14px;
    display: grid;
    gap: 8px;
    padding: 18px;
}

.zcp-method-switch {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

@media (min-width: 540px) {
    .zcp-method-switch {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }
}

.zcp-method-tab {
    background: #fff;
    border: 1.5px solid #cbe9d7;
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.zcp-method-tab strong {
    color: #0d2019;
    font-size: 15px;
}

.zcp-method-tab span {
    color: #64746c;
    font-size: 12px;
    font-weight: 700;
}

.zcp-method-tab:hover {
    border-color: #aee2cb;
}

.zcp-method-tab.is-active {
    background: #e7f7f0;
    border-color: var(--zc-brand, #0f9d6e);
    box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12);
}

.zcp-method-pane[hidden] {
    display: none;
}


.zcp-trip-card strong,
.zcp-method-card b {
    color: #0d2019;
    font-size: 18px;
}

.zcp-trip-card small,
.zcp-method-card span,
.zcp-method-card em {
    color: #64746c;
    font-style: normal;
    font-weight: 800;
}

.zcp-trip-card ul {
    color: #475569;
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.zcp-pay-switch {
    background: #eef4fb;
    border-radius: 999px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    padding: 5px;
}

.zcp-pay-switch span {
    align-items: center;
    border-radius: 999px;
    color: #64746c;
    display: flex;
    justify-content: center;
    min-height: 42px;
    text-align: center;
}

.zcp-pay-switch .is-selected {
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    color: #0f9d6e;
}

.zcp-method-card {
    margin-bottom: 18px;
}

.zcp-method-card em {
    background: #dcfce7;
    border-radius: 999px;
    color: #0b7a55;
    display: inline-flex;
    font-size: 11px;
    justify-self: start;
    padding: 6px 10px;
    text-transform: uppercase;
}

.zcp-total strong {
    color: #0d2019;
    font-size: 34px;
}

.zcp-total small,
.zcp-checkout p,
.zcp-dashboard p,
.zcp-roadmap li {
    color: #64746c;
}

.zcp-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zcp-metrics a {
    background: #f1faf6;
    border: 1px solid #dcefe4;
    border-radius: 9px;
    color: #0d2019;
    font-weight: 900;
    padding: 18px;
    text-decoration: none;
}

.zcp-roadmap {
    margin-top: 24px;
}

.zcp-notice {
    border-color: #fed7aa;
    color: #9a3412;
    grid-column: 1 / -1;
}

@media (max-width: 860px) {
    .zcp-auth-wrap,
    .zcp-checkout,
    .zcp-dashboard,
    .zcp-metrics,
    .zcp-stepper {
        grid-template-columns: 1fr;
    }

    .zcp-pay-switch {
        border-radius: 14px;
        grid-template-columns: 1fr;
    }
}

/* ---- Google login, OTP block, dividers ---- */
.zcp-google-btn {
    align-items: center;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    color: #3c4043;
    display: flex;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none;
    transition: box-shadow .2s ease, background .2s ease;
    width: 100%;
}

.zcp-google-btn:hover {
    background: #f7f8fa;
    box-shadow: 0 2px 8px rgba(60, 64, 67, .15);
}

.zcp-google-g {
    align-items: center;
    background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.zcp-or {
    color: #96a89e;
    font-size: 12px;
    font-weight: 700;
    margin: 14px 0;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
}

.zcp-or span {
    position: relative;
}

.zcp-or span::before,
.zcp-or span::after {
    background: #dcefe4;
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    width: 600px;
    max-width: 50vw;
}

.zcp-or span::before { right: 100%; margin-right: 12px; }
.zcp-or span::after { left: 100%; margin-left: 12px; }

.zcp-otp {
    display: grid;
    gap: 10px;
}

.zcp-otp label {
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
}

.zcp-otp input[type="text"],
.zcp-otp input[type="tel"] {
    border: 1.5px solid #cbe9d7;
    border-radius: 10px;
    font-size: 16px;
    padding: 11px 12px;
    width: 100%;
}

.zcp-link {
    background: none;
    border: 0;
    color: var(--zc-brand, #0f9d6e);
    cursor: pointer;
    font-weight: 700;
    padding: 4px;
    text-decoration: underline;
}

.zcp-otp-msg {
    font-size: 13px;
    font-weight: 700;
    margin: 2px 0 0;
    min-height: 18px;
}

/* ---- Global checkbox/radio safety: never stretch them in any Car Rent Pe form ---- */
.zcp-auth-wrap input[type="checkbox"],
.zcp-auth-wrap input[type="radio"],
.zcp-check input[type="checkbox"],
.zcp-manual-form input[type="checkbox"],
.zcp-otp input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    accent-color: var(--zc-brand, #0f9d6e);
    flex: 0 0 auto;
    height: 18px;
    min-height: 0;
    min-width: 0;
    padding: 0;
    width: 18px;
}

.zcp-check {
    align-items: center;
    display: flex;
    gap: 8px;
}

.zcp-otp-hint {
    color: #64746c;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: -2px 0 4px;
}

/* ---- My Account dashboard sidebar links + logout ---- */
.zcp-account-links {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.zcp-account-links a {
    background: #f1faf6;
    border: 1px solid #dcefe4;
    border-radius: 10px;
    color: #22332b;
    font-weight: 700;
    padding: 11px 14px;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.zcp-account-links a:hover {
    background: #e7f7f0;
    border-color: var(--zc-brand, #0f9d6e);
    color: var(--zc-brand, #0f9d6e);
}

.zcp-logout-btn {
    background: #fff;
    border: 1.5px solid #e2c4c4;
    border-radius: 10px;
    color: #b3261e;
    display: block;
    font-weight: 800;
    margin-top: 8px;
    padding: 11px 14px;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease;
}

.zcp-logout-btn:hover {
    background: #fdeced;
}

/* Email/password toggle link (WhatsApp OTP is the primary method) */
.zcp-email-toggle,
.zcp-link {
    background: none;
    border: 0;
    color: var(--zc-brand, #0f9d6e);
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    margin: 6px auto 0;
    padding: 8px;
    text-decoration: underline;
}

/* ===== My Account header (cleaner, premium) ===== */
.zcp-id-head {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.zcp-avatar {
    align-items: center;
    background: var(--zc-grad, linear-gradient(135deg, #0f9d6e, #0f9d6e));
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 800;
    height: 56px;
    justify-content: center;
    width: 56px;
}
.zcp-id-label {
    color: var(--zc-brand, #0f9d6e);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.zcp-dashboard aside h2 {
    font-size: 22px !important;
    line-height: 1.2;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}
.zcp-id-contact {
    border-bottom: 1px solid #e9f6ef;
    margin-bottom: 14px;
    padding-bottom: 14px;
}
.zcp-id-contact p {
    color: #5a6b62;
    font-size: 14px;
    margin: 2px 0;
    overflow-wrap: anywhere;
}

/* Login form hint for email vs new account */
.zcp-email-hint {
    background: #f1faf6;
    border-radius: 8px;
    color: #46564d;
    font-size: 13px;
    line-height: 1.5;
    margin: 2px 0 6px;
    padding: 8px 12px;
}

/* Login error message inside the modal */
.zcp-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 10px 14px;
}

/* ===== Login / Create Account tabs in the auth modal ===== */
.zcp-auth-tabs {
    background: #eef2fb;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    margin: 4px 0 16px;
    padding: 4px;
}

.zcp-auth-tab {
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #46564d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 12px;
    transition: background .15s ease, color .15s ease;
}

.zcp-auth-tab.is-active {
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    color: var(--zc-brand, #0f9d6e);
}

.zcp-auth-form {
    display: grid;
    gap: 12px;
}

.zcp-auth-form[hidden] {
    display: none;
}

.zcp-auth-form label {
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    color: #46564d;
}

.zcp-auth-form input {
    background: #f3faf6;
    border: 1px solid #d4ecdf;
    border-radius: 10px;
    font-size: 16px;
    padding: 12px 14px;
    width: 100%;
}

.zcp-auth-form input:focus {
    border-color: var(--zc-brand, #0f9d6e);
    outline: none;
}

.zcp-auth-switch {
    color: #5a6b62;
    font-size: 13px;
    margin: 2px 0 0;
    text-align: center;
}

.zcp-auth-switch .zcp-link {
    background: none;
    border: 0;
    color: var(--zc-brand, #0f9d6e);
    cursor: pointer;
    font-weight: 800;
    padding: 0;
}

/* ===== Branded UPI QR checkout ===== */
.zcp-upi-pay { margin-top: 4px; }
.zcp-upi-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
    background: #f1faf6;
    border: 1px solid #dcefe4;
    border-radius: 16px;
    padding: 20px;
    margin: 14px 0 18px;
}
.zcp-upi-qr { text-align: center; }
.zcp-qr-box {
    width: 210px;
    height: 210px;
    background: #fff;
    border: 1px solid #dcefe4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}
.zcp-qr-box img { border-radius: 6px; }
.zcp-qr-loading { color: #6f8077; font-size: 13px; }
.zcp-upi-qr small { display: block; margin-top: 8px; color: #46564d; font-size: 12px; }
.zcp-upi-amount {
    font-size: 26px;
    font-weight: 800;
    color: #0b7a55;
    line-height: 1.1;
    margin-bottom: 14px;
}
.zcp-upi-amount small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6f8077;
    margin-top: 2px;
}
.zcp-upi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e2f0e8;
    font-size: 14px;
}
.zcp-upi-row span { color: #6f8077; }
.zcp-upi-row strong { color: #0d2019; }
.zcp-upi-bank {
    margin: 10px 0;
    font-size: 13px;
    color: #46564d;
}
.zcp-upi-bank summary {
    cursor: pointer;
    color: #0b7a55;
    font-weight: 600;
}
.zcp-upi-bank div { margin-top: 8px; line-height: 1.6; }
.zcp-upi-appbtn {
    display: inline-block;
    margin-top: 12px;
    background: #0f9d6e;
    color: #fff;
}
.zcp-upi-note {
    font-size: 12.5px;
    color: #6f8077;
    margin: 12px 0 0;
    line-height: 1.5;
}
@media (max-width: 560px) {
    .zcp-upi-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .zcp-upi-info { width: 100%; }
}
