/* ═══════════════════════════════════════════════════════
   ArchAdhyan — Enrollment Modal (Light Minimal)
   ═══════════════════════════════════════════════════════ */

/* ── Overlay ──────────────────────────────────────────── */
.enroll-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.enroll-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── Modal Card ───────────────────────────────────────── */
.enroll-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
    scrollbar-width: none;
}
.enroll-modal::-webkit-scrollbar { display: none; }

.enroll-overlay.is-open .enroll-modal {
    transform: translateY(0) scale(1);
}

/* ── Modal Header ─────────────────────────────────────── */
.enroll-modal-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enroll-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
}
.enroll-close-btn:hover {
    background: #fee2e2;
    color: #f52008;
}

.enroll-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #f52008;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 6px;
}
.enroll-modal-badge i { font-size: 0.6rem; }

.enroll-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.02em;
    padding-right: 36px;
}

.enroll-modal-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 2px 0 0;
}

/* ── Step Indicator ───────────────────────────────────── */
.enroll-steps {
    display: flex;
    align-items: center;
    padding: 18px 28px 0;
}

.enroll-step {
    display: flex;
    align-items: center;
    gap: 7px;
}

.enroll-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}

.enroll-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: color 0.25s;
}

.enroll-step.active .enroll-step-num {
    background: #f52008;
    color: #fff;
}
.enroll-step.active .enroll-step-label { color: #0f172a; }

.enroll-step.done .enroll-step-num {
    background: #10b981;
    color: #fff;
}
.enroll-step.done .enroll-step-label { color: #10b981; }

.enroll-step-connector {
    flex: 1;
    height: 1.5px;
    background: #e2e8f0;
    margin: 0 10px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.enroll-step-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #f52008;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.enroll-step-connector.filled::after { transform: scaleX(1); }

/* ── Form Body ────────────────────────────────────────── */
.enroll-modal-body { padding: 20px 28px 4px; }

.enroll-step-panel { display: none; }
.enroll-step-panel.active {
    display: block;
    animation: fadeSlideIn 0.25s ease forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Fields ───────────────────────────────────────────── */
.enroll-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.enroll-field { margin-bottom: 14px; }

.enroll-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
}

.enroll-field label .req { color: #f52008; margin-left: 1px; }

.enroll-field input,
.enroll-field select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.85rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.enroll-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2394a3b8' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.enroll-field input:focus,
.enroll-field select:focus {
    border-color: #f52008;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 32, 8, 0.07);
}

.enroll-field input::placeholder { color: #cbd5e1; }

/* ── Step 2: Payment (Premium Checkout) ───────────────── */

/* What's included value card */
.enroll-value-card {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.enroll-value-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #15803d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.enroll-value-heading i { color: #22c55e; }

.enroll-value-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enroll-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #1e293b;
    line-height: 1.4;
}

.enroll-value-list li i {
    color: #22c55e;
    font-size: 0.7rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Price block */
.enroll-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.enroll-price-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enroll-price-was {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    font-weight: 500;
}

.enroll-price-save-badge {
    display: inline-block;
    background: #f52008;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

.enroll-price-right {
    text-align: right;
}

.enroll-price-now {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.enroll-price-breakdown {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    margin-top: 3px;
}

/* Urgency strip */
.enroll-urgency-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #92400e;
}

.enroll-urgency-strip i {
    color: #f97316;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.enroll-urgency-strip strong { color: #c2410c; }

/* Payment label */
.enroll-payment-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
}

/* Payment methods */
.enroll-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.enroll-pay-method {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    position: relative;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.enroll-pay-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.enroll-pay-method:has(input:checked) {
    border-color: #f52008;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(245, 32, 8, 0.07);
}

.enroll-pay-icon {
    font-size: 1.1rem;
    color: #475569;
    transition: color 0.18s;
}

.enroll-pay-method:has(input:checked) .enroll-pay-icon {
    color: #f52008;
}

.enroll-pay-method-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.enroll-pay-badge {
    font-size: 0.55rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    padding: 1px 5px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Trust block */
.enroll-trust-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.enroll-trust-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.enroll-trust-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px 6px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
}

/* Icon wrapper circle */
.enroll-trust-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
}

/* Lock — pulse green */
.trust-pulse {
    background: #d1fae5;
    color: #059669;
    animation: trustPulse 2.4s ease-in-out infinite;
}
@keyframes trustPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35); }
    50%       { box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
}

/* Undo — slow spin on hover */
.trust-spin {
    background: #e0f2fe;
    color: #0284c7;
    transition: transform 0.6s ease;
}
.enroll-trust-pill:hover .trust-spin {
    transform: rotate(360deg);
}

/* Shield — bounce */
.trust-shield {
    background: #fef3c7;
    color: #d97706;
    animation: trustBounce 2s ease-in-out infinite;
}
@keyframes trustBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-2px); }
}

/* Razorpay line */
.enroll-razorpay-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.enroll-razorpay-line i {
    color: #2563eb;
    font-size: 0.65rem;
}

.enroll-razorpay-line strong {
    color: #2563eb;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}


/* ── Footer ───────────────────────────────────────────── */
.enroll-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px 24px;
}

.enroll-btn-back {
    padding: 11px 18px;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
    display: none;
    font-family: inherit;
}
.enroll-btn-back:hover { border-color: #94a3b8; color: #1e293b; }

.enroll-btn-next,
.enroll-btn-submit {
    flex: 1;
    padding: 12px 20px;
    background: #f52008;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.enroll-btn-next:hover,
.enroll-btn-submit:hover {
    background: #d41a00;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 32, 8, 0.25);
}

.enroll-btn-submit { display: none; }

.enroll-btn-next i,
.enroll-btn-submit i { font-size: 0.72rem; transition: transform 0.18s; }
.enroll-btn-next:hover i { transform: translateX(3px); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 540px) {
    .enroll-overlay { padding: 0; align-items: flex-end; }
    .enroll-modal { border-radius: 18px 18px 0 0; max-height: 96vh; }
    .enroll-form-row { grid-template-columns: 1fr; }
    .enroll-modal-header,
    .enroll-modal-body,
    .enroll-modal-footer,
    .enroll-steps { padding-left: 18px; padding-right: 18px; }
}
