/* =====================================================================
   plan-flow.css
   Stunning, modern UI for Plan.aspx (exam selection) + ExamContent
   Shared styles for: header, steps indicator, sticky selection bar,
   guest checkout modal (reused on ExamContent)
   ===================================================================== */

/* ---------- Theming Vars (scoped to flow pages) ---------- */
/* Aligned with site palette (CSS/site.css):
   --primary-blue: #0F172A
   --secondary-blue: #1E40AF
   --accent-cyan: #06B6D4
   --accent-emerald: #10B981
*/
:root {
    --pf-primary: #06B6D4;          /* cyan - matches site accent */
    --pf-primary-dark: #0891B2;
    --pf-primary-light: #ECFEFF;
    --pf-accent: #10B981;            /* emerald */
    --pf-accent-dark: #059669;
    --pf-navy: #0F172A;
    --pf-blue: #1E40AF;
    --pf-warn: #F59E0B;
    --pf-danger: #DC2626;
    --pf-text: #0F172A;
    --pf-text-muted: #64748B;
    --pf-bg: #F8FAFC;
    --pf-card: #FFFFFF;
    --pf-border: #E2E8F0;
    --pf-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --pf-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
    --pf-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
    --pf-gradient-main: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    --pf-gradient-navy: linear-gradient(135deg, #0F172A 0%, #1E40AF 100%);
}

/* ---------- Page Header (shared, matches site theme) ---------- */
.plan-flow-header {
    background: var(--pf-gradient-navy);
    padding: 40px 0 35px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-flow-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.25), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.18), transparent 50%);
    pointer-events: none;
}

.plan-flow-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--pf-gradient-main);
}

.plan-flow-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    position: relative;
}

.plan-flow-header h1 i {
    margin-left: 10px;
    color: #06B6D4;
}

.plan-flow-header p {
    font-size: 1rem;
    opacity: 0.92;
    max-width: 720px;
    margin: 0 auto 14px;
    position: relative;
}

.plan-flow-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.plan-flow-header .breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}

.plan-flow-header .breadcrumb a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ---------- Steps Indicator ---------- */
.steps-indicator-section {
    background: var(--pf-card);
    padding: 22px 0;
    box-shadow: var(--pf-shadow-sm);
    position: relative;
    z-index: 5;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 880px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E2E8F0;
    color: var(--pf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all .25s ease;
    position: relative;
    box-shadow: 0 0 0 4px rgba(255,255,255,1);
}

.step-circle .step-number { display: block; }
.step-circle .fa-check { display: none; font-size: 1rem; }

.step.active .step-circle {
    background: var(--pf-gradient-main);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.18);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-dark));
    color: #fff;
}

.step.completed .step-circle .step-number { display: none; }
.step.completed .step-circle .fa-check { display: block; }

.step-label {
    font-weight: 600;
    color: var(--pf-text-muted);
    font-size: 0.95rem;
}

.step.active .step-label {
    color: var(--pf-primary);
}

.step.completed .step-label {
    color: var(--pf-accent);
}

.step-line {
    flex: 1;
    height: 3px;
    background: #E2E8F0;
    border-radius: 2px;
    min-width: 30px;
    max-width: 90px;
    transition: background .3s;
}

.step-line.completed {
    background: linear-gradient(90deg, var(--pf-accent), var(--pf-accent-dark));
}

@media (max-width: 700px) {
    .steps-indicator { gap: 6px; }
    .step-label { display: none; }
    .step-circle { width: 38px; height: 38px; font-size: 0.95rem; }
    .step-line { min-width: 18px; max-width: 60px; }
}

/* ---------- Selection Section ---------- */
.exam-selection-section-v2 {
    padding: 35px 0 40px;
    background: var(--pf-bg);
}

.exam-selection-section-v2 .section-title {
    text-align: center;
    margin-bottom: 28px;
}

.exam-selection-section-v2 .section-title h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--pf-text);
    margin: 0 0 10px;
}

.exam-selection-section-v2 .section-title .line {
    width: 70px;
    height: 4px;
    background: var(--pf-gradient-main);
    border-radius: 2px;
    margin: 12px auto;
}

.exam-selection-section-v2 .section-title .subtitle {
    color: var(--pf-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* ---------- Units Groups Wrap (horizontal grid on desktop) ---------- */
.units-groups-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 22px;
    align-items: start;
}

@media (max-width: 700px) {
    .units-groups-wrap { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Units Group ---------- */
.units-group {
    background: var(--pf-card);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--pf-shadow-sm);
    border: 2px solid #E2E8F0;
    border-top: 4px solid #94A3B8;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.units-group::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity .3s;
}

.units-group:not(.locked):hover {
    box-shadow: var(--pf-shadow-md);
    transform: translateY(-2px);
}

.units-group.locked {
    opacity: 0.45;
    filter: grayscale(0.7);
    pointer-events: none;
    transform: scale(0.99);
}

/* Per-unit-level colors (subtle tinting) */
.units-group[data-units="3"] {
    border-top-color: #06B6D4;
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.04) 0%, #fff 40%);
}
.units-group[data-units="3"] .units-badge {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    box-shadow: 0 8px 18px rgba(6, 182, 212, 0.35);
}
.units-group[data-units="3"] .units-group-header {
    border-bottom-color: rgba(6, 182, 212, 0.2);
}

.units-group[data-units="4"] {
    border-top-color: #8B5CF6;
    border-color: rgba(139, 92, 246, 0.25);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, #fff 40%);
}
.units-group[data-units="4"] .units-badge {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.35);
}
.units-group[data-units="4"] .units-group-header {
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

.units-group[data-units="5"] {
    border-top-color: #10B981;
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, #fff 40%);
}
.units-group[data-units="5"] .units-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}
.units-group[data-units="5"] .units-group-header {
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.units-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px dashed var(--pf-border);
}

.units-badge {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: var(--pf-gradient-main);
    color: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(6, 182, 212, 0.32);
    position: relative;
}

.units-badge::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px dashed rgba(255,255,255,0.35);
    border-radius: 14px;
    pointer-events: none;
}

.units-number {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.units-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    opacity: 0.95;
}

.units-group-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pf-text);
    margin: 0 0 4px;
}

.units-group-info p {
    color: var(--pf-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ---------- Exam Cube Grid ---------- */
/* Always 2 cards per group on desktop (groups themselves are side-by-side) */
.exams-cube-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 460px) {
    .exams-cube-grid { grid-template-columns: 1fr; }
}

.exam-cube {
    background: linear-gradient(160deg, #ffffff, #f7fdff);
    border: 2px solid var(--pf-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,.0,.2,1);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.exam-cube::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.07), transparent 60%);
    pointer-events: none;
    transition: transform .35s;
}

.exam-cube:hover {
    border-color: var(--pf-primary);
    transform: translateY(-3px);
    box-shadow: var(--pf-shadow-md);
}

.exam-cube:hover::after { transform: scale(1.4); }

.exam-cube-inner {
    padding: 16px;
    position: relative;
    z-index: 1;
}

.exam-cube-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--pf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.78rem;
    transition: all .25s;
}

.exam-cube-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pf-primary-light), #d1f5fc);
    color: var(--pf-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: all .25s;
}

.exam-cube-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--pf-navy);
    background: linear-gradient(135deg, #ECFEFF, #D1F5FC);
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.exam-cube.selected .exam-cube-number {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-color: rgba(16, 185, 129, 0.35);
    color: #064E3B;
}

.exam-cube-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--pf-text);
    margin: 0 0 6px;
    line-height: 1.4;
}

.exam-cube-desc {
    font-size: 0.8rem;
    color: var(--pf-text-muted);
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exam-cube-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--pf-border);
}

.cube-units-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pf-primary-light);
    color: var(--pf-primary-dark);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Selected State */
.exam-cube.selected {
    border-color: var(--pf-accent);
    background: linear-gradient(160deg, #ECFDF5, #D1FAE5);
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

.exam-cube.selected .exam-cube-check {
    background: var(--pf-accent);
    border-color: var(--pf-accent);
    color: #fff;
    transform: scale(1.05);
}

.exam-cube.selected .exam-cube-icon {
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-dark));
    color: #fff;
    transform: scale(1.05);
}

.exam-cube.selected .cube-units-tag {
    background: var(--pf-accent);
    color: #fff;
}

@media (max-width: 600px) {
    .exam-cube-inner { padding: 14px; }
    .exam-cube-icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .exam-cube-name { font-size: 0.9rem; }
    .exam-cube-desc { display: none; }
}

/* ---------- Sticky Selection Bar ---------- */
.selection-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #06B6D4, #10B981) 1;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.35);
    z-index: 100;
    animation: slideUpFade 0.4s cubic-bezier(.34,1.56,.64,1);
    color: #fff;
}

@keyframes slideUpFade {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.selection-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.selection-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.32);
}

.selection-text {
    display: flex;
    flex-direction: column;
}

.selection-count {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.selection-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.selection-text small {
    font-size: 0.78rem;
    color: #06B6D4;
    font-weight: 700;
    margin-top: 3px;
    background: rgba(6, 182, 212, 0.15);
    padding: 2px 8px;
    border-radius: 999px;
    align-self: flex-start;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--pf-gradient-main);
    color: #fff;
    border: none;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.45);
    animation: ctaPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on the CTA */
.btn-continue::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: ctaShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShimmer {
    0%   { left: -100%; }
    50%  { left: 120%; }
    100% { left: 120%; }
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(6, 182, 212, 0.45); transform: scale(1); }
    50%      { box-shadow: 0 12px 32px rgba(16, 185, 129, 0.55); transform: scale(1.03); }
}

.btn-continue:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.6);
    animation: none;
}

.btn-continue:active {
    transform: translateY(0) scale(0.98);
    animation: none;
}

.btn-back-to-selection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.btn-back-to-selection:hover {
    color: #fff;
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.15);
}

@media (max-width: 700px) {
    .selection-bar-content { flex-wrap: wrap; padding: 14px 0; }
    .btn-continue { width: 100%; justify-content: center; padding: 14px; font-size: 1.05rem; }
    .btn-back-to-selection { font-size: 0.85rem; padding: 8px 12px; }
}

/* ---------- No exams ---------- */
.no-exams-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--pf-text-muted);
}

.no-exams-message i {
    font-size: 4rem;
    color: var(--pf-text-muted);
    margin-bottom: 20px;
    display: block;
}

.no-exams-message h3 {
    color: var(--pf-text);
    font-size: 1.4rem;
    margin: 0 0 10px;
}

/* ---------- SweetAlert2 RTL tweaks ---------- */
.swal-rtl {
    direction: rtl;
    text-align: right;
}

.swal-rtl .swal2-title { font-weight: 800; }

/* ============================================================
   Tease Modal — gentle marketing nudge ("add more, save more")
   ============================================================ */
.wt-tease-modal {
    border-radius: 22px !important;
    overflow: hidden;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35) !important;
    position: relative;
}

/* Animated gradient ribbon at the top of the modal */
.wt-tease-modal::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #06B6D4, #10B981, #06B6D4);
    background-size: 200% 100%;
    animation: wt-tease-ribbon 3s linear infinite;
}

@keyframes wt-tease-ribbon {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* Decorative confetti dots (radial gradients - no images needed) */
.wt-tease-modal::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.10) 0 6px, transparent 7px),
        radial-gradient(circle at 88% 22%, rgba(16, 185, 129, 0.10) 0 4px, transparent 5px),
        radial-gradient(circle at 18% 82%, rgba(245, 158, 11, 0.10) 0 5px, transparent 6px),
        radial-gradient(circle at 90% 78%, rgba(6, 182, 212, 0.08) 0 7px, transparent 8px);
}

.wt-tease-html {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

.tease-modal-body {
    padding: 30px 30px 22px;
    text-align: right;
    direction: rtl;
}

.tease-lead {
    font-size: 1.08rem;
    color: #1F2937;
    line-height: 1.75;
    margin: 0 0 18px;
    text-align: center;
}

.tease-lead strong {
    color: #0891B2;
    background: linear-gradient(120deg, transparent 0%, transparent 30%, rgba(6, 182, 212, 0.18) 30%, rgba(16, 185, 129, 0.18) 100%);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Hero discount card */
.tease-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDF4 100%);
    border: 2px dashed #06B6D4;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 6px 0 20px;
    position: relative;
    overflow: hidden;
    animation: wt-tease-pulse 2.4s ease-in-out infinite;
}

@keyframes wt-tease-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.0); }
    50%      { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0.0); border-color: #10B981; }
}

.tease-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
    animation: wt-tease-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wt-tease-shine {
    0%, 100% { transform: translateX(120%); opacity: 0; }
    40%      { opacity: 0.9; }
    60%      { transform: translateX(-120%); opacity: 0; }
}

.tease-hero-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 8px 18px rgba(6, 182, 212, 0.4);
    transform: rotate(-6deg);
    animation: wt-tease-bob 2.6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes wt-tease-bob {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50%      { transform: rotate(-6deg) translateY(-3px); }
}

.tease-hero-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.tease-hero-amount {
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0891B2, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.tease-hero-cond {
    font-size: 0.92rem;
    color: #475569;
    margin-top: 4px;
    font-weight: 600;
}

.tease-fine {
    margin: 0;
    padding: 10px 14px;
    background: #FEFCE8;
    border-right: 3px solid #F59E0B;
    border-radius: 8px;
    color: #854D0E;
    font-size: 0.85rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tease-fine i {
    color: #D97706;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Confirm button */
.wt-tease-modal .swal2-actions {
    margin: 0 !important;
    padding: 6px 30px 28px !important;
    width: 100%;
    box-sizing: border-box;
    justify-content: stretch !important;
    gap: 10px !important;
}

.wt-tease-confirm {
    width: 100%;
    border-radius: 14px !important;
    padding: 13px 22px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%) !important;
    box-shadow: 0 10px 22px rgba(6, 182, 212, 0.32) !important;
    transition: transform .2s, box-shadow .2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}

.wt-tease-confirm:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16, 185, 129, 0.45) !important; }
.wt-tease-confirm:focus { box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25) !important; }

.wt-tease-close {
    color: #64748B !important;
    font-size: 1.4rem !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(15, 23, 42, 0.04) !important;
    border-radius: 50% !important;
    margin: 10px !important;
    transition: all .2s !important;
    z-index: 2 !important;
}

.wt-tease-close:hover { background: #FEE2E2 !important; color: #DC2626 !important; }

/* Show/hide animations */
.wt-tease-show {
    animation: wt-tease-pop 0.5s cubic-bezier(.34, 1.56, .64, 1);
}

.wt-tease-hide {
    animation: wt-tease-out 0.25s ease-in;
}

@keyframes wt-tease-pop {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes wt-tease-out {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.92); }
}

@media (max-width: 540px) {
    .tease-modal-body { padding: 22px 18px 16px; }
    .tease-lead { font-size: 1rem; }
    .tease-hero { padding: 14px 16px; gap: 12px; }
    .tease-hero-badge { width: 48px; height: 48px; font-size: 1.25rem; }
    .tease-hero-amount { font-size: 1.3rem; }
    .wt-tease-modal .swal2-actions { padding: 4px 18px 22px !important; }
}

/* ---------- Guest checkout modal (shared with ExamContent) ---------- */
.guest-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;  /* above site-header (z-index: 1000) and plan modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.guest-checkout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.guest-checkout-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--pf-shadow-lg);
    z-index: 1;
    animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.guest-checkout-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--pf-bg);
    color: var(--pf-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-checkout-close:hover { background: var(--pf-border); color: var(--pf-danger); }

.guest-checkout-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--pf-border);
}

.guest-checkout-header i {
    font-size: 2.4rem;
    background: var(--pf-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.guest-checkout-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pf-text);
}

.guest-checkout-body {
    padding: 24px 30px;
}

.guest-checkout-intro {
    text-align: center;
    color: var(--pf-text-muted);
    margin-bottom: 22px;
    font-size: 0.98rem;
}

.guest-checkout-body .form-group {
    margin-bottom: 18px;
}

.guest-checkout-body label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--pf-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.guest-checkout-body label i {
    color: var(--pf-primary-dark);
}

.guest-checkout-body input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    font-size: 0.98rem;
    font-family: inherit;
    transition: all .2s;
    background: var(--pf-bg);
}

.guest-checkout-body input:focus {
    outline: none;
    border-color: var(--pf-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.field-error {
    color: var(--pf-danger);
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    min-height: 1em;
}

.order-summary-preview {
    background: var(--pf-bg);
    border: 1px solid var(--pf-border);
    border-radius: 14px;
    padding: 18px;
    margin-top: 22px;
}

.order-summary-preview h4 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: var(--pf-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-summary-preview h4 i { color: var(--pf-primary-dark); }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--pf-text);
}

.summary-row.summary-discount { color: var(--pf-accent-dark); font-weight: 600; }

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--pf-border);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pf-primary-dark);
}

.guest-checkout-footer {
    padding: 18px 30px 26px;
    border-top: 1px solid var(--pf-border);
    background: var(--pf-bg);
}

.terms-checkbox-container {
    margin-bottom: 16px;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--pf-text);
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pf-primary);
    cursor: pointer;
}

.terms-link { color: var(--pf-primary-dark); text-decoration: underline; }

.footer-buttons {
    display: flex;
    gap: 10px;
}

.btn-guest-cancel,
.btn-guest-checkout {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    font-family: inherit;
}

.btn-guest-cancel {
    background: #fff;
    border: 2px solid var(--pf-border);
    color: var(--pf-text-muted);
}

.btn-guest-cancel:hover { background: var(--pf-bg); color: var(--pf-danger); border-color: var(--pf-danger); }

.btn-guest-checkout {
    background: var(--pf-gradient-main);
    color: #fff;
    box-shadow: 0 8px 18px rgba(6, 182, 212, 0.32);
}

.btn-guest-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.45);
}

.btn-guest-checkout:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 540px) {
    .guest-checkout-content { border-radius: 18px; }
    .guest-checkout-header { padding: 22px 20px 16px; }
    .guest-checkout-body { padding: 18px 20px; }
    .guest-checkout-footer { padding: 14px 20px 20px; }
}
