/* =========================
   PAGE BASE
========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f8fafc;
    overflow-x: hidden;
}

/* =========================
   SUBSCRIPTION SECTION
========================= */

.subscription-section {
    padding: 10px 20px;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.plans {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================
   PLAN CARDS
========================= */

.plan-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 18px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translate3d(0, -8px, 0);
}

.plan-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

/* Active subscription state */
.plan-card.active-plan {
    border: 2px solid #22c55e;
}

.active-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.upgrade-savings {
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.btn-current {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    border: 1px solid #e2e8f0 !important;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
}

/* =========================
   PRICE BOX — 2-LINE LAYOUT
   Line 1: original price (struck)
   Line 2: offer price + /period
========================= */

.price-box {
    margin-bottom: 6px;
}

/* Line 1 — original (struck-through) */
.price-original-line {
    display: block;
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.original {
    text-decoration: line-through;
    font-size: 15px;
    color: #94a3b8;
}

.original-label {
    font-size: 13px;
    color: #94a3b8;
    margin-left: 2px;
}

/* Line 2 — offer price hero */
.price-offer-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.offer {
    font-size: 38px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.duration {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* Flexible / Custom plan */
.custom {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 4px;
}

.custom-sub {
    display: block;
    font-size: 14px;
    color: #64748b;
}

.urgency {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    margin: 6px 0 12px;
}

/* =========================
   FEATURES LIST
========================= */

.features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 18px 0 20px;
}

.features li {
    margin-bottom: 12px;
    color: #475569;
    font-size: 15px;
    padding-left: 4px;
}

.features li::before {
    content: '✓';
    color: #2563eb;
    font-weight: bold;
    margin-right: 8px;
}

/* =========================
   PLAN BUTTONS
========================= */

.plan-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Segoe UI', sans-serif;
}

.plan-card button:hover {
    background: #1e40af;
}

/* =========================
   RIBBON & BADGE
========================= */

.ribbon {
    position: absolute;
    top: 18px;
    right: 10px;
    left: auto;
    background: linear-gradient(45deg, #ef4444, #f97316);
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.popular {
    border: 2px solid #2563eb;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2563eb;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.validity-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
.validity-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.validity-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* =========================
   TRUST BAR
========================= */

.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #94a3b8;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================
   FLASH MESSAGES
========================= */

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* =========================
   CHECKOUT OVERLAY
   Isolated from .modal to avoid Loginpopupmanager conflicts
========================= */

.checkout-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 2147483647;
}

.checkout-overlay.co-hidden {
    display: none !important;
}

.checkout-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFade 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.checkout-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #111827;
}

.checkout-card .modal-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 22px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.close-modal:hover { color: #111827; }

/* Order Summary */
.order-summary {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.order-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
}

.order-row:last-child {
    margin-bottom: 0;
    border-top: 1px solid #cbd5e1;
    padding-top: 8px;
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

.amount-highlight {
    color: #2563eb;
    font-weight: 700;
}

/* Checkout Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.checkout-card input[type="text"],
.checkout-card input[type="email"],
.checkout-card input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.checkout-card input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.checkout-card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.pay-btn {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 4px;
    font-family: 'Segoe UI', sans-serif;
}

.pay-btn:hover { background: #1e40af; }

.payu-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* =========================
   ENQUIRE OVERLAY
   Fully isolated from .modal — own class prefix
========================= */

.enq-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 2147483647;
}

.enq-overlay.enq-hidden {
    display: none !important;
}

.enq-card {
    background: #fff;
    width: 100%;
    max-width: 460px;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFade 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
}

.enq-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #111827;
}

.enq-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px;
}

.enq-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.enq-close:hover { color: #111827; }

.enq-group {
    margin-bottom: 14px;
}

.enq-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.enq-card input,
.enq-card select,
.enq-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    color: #111827;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.enq-card textarea {
    resize: vertical;
    min-height: 80px;
}

.enq-card input:focus,
.enq-card select:focus,
.enq-card textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.enq-submit {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.2s;
}

.enq-submit:hover { background: #1e40af; }

/* =========================
   LOGIN MODAL
   (Rendered by login-modal.php include)
========================= */

.modal {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 2147483647;
}

.modal.hidden {
    display: none !important;
}

.login-modal-content {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFade 0.25s ease;
}

.login-card .logo {
    max-width: 130px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.login-card h2 {
    margin: 15px 0 20px;
}

.login-card form input[type="text"],
.login-card form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    height: 18px;
}

.actions {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 15px;
}

.actions a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.actions a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.2s;
}

.login-card button[type="submit"]:hover {
    background: #1e40af;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #f3f4f6;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    transition: background 0.2s;
}

.google-btn:hover { background: #e5e7eb; }

.links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.links p { margin: 0; }

.links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.links a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* =========================
   Z-INDEX SAFETY
========================= */

.grecaptcha-badge,
iframe[src*="recaptcha"] {
    z-index: 2147483647 !important;
}

body > div[style*="z-index"] {
    z-index: 2147483647 !important;
}