/* BucketX Checkout — matches homepage design language */
:root {
    --bx-bg-start: #fdf8f0;
    --bx-bg-mid: #fef9e7;
    --bx-bg-end: #fff5eb;
    --bx-card: #ffffff;
    --bx-text: #1e293b;
    --bx-text-muted: #64748b;
    --bx-border: #e8e0d4;
    --bx-red: #ed1c24;
    --bx-red-soft: #fff1f1;
    --bx-dark: #1e293b;
    --bx-dark-hover: #0f172a;
    --bx-radius-lg: 24px;
    --bx-radius-md: 16px;
    --bx-radius-sm: 12px;
    --bx-shadow: 0 8px 32px rgba(30, 41, 59, 0.07);
    --bx-shadow-sm: 0 4px 16px rgba(30, 41, 59, 0.05);
    --note-yellow: #fef3c7;
    --note-blue: #dbeafe;
    --note-green: #dcfce7;
    --note-peach: #ffedd5;
    --note-lavender: #ede9fe;
    --nav-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body.checkout-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--bx-bg-start) 0%, var(--bx-bg-mid) 45%, var(--bx-bg-end) 100%);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    width: 100%;
    color: var(--bx-text);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

/* ── Nav ── */
.co-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 224, 212, 0.6);
    padding: 14px 20px;
    padding-top: max(14px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 200;
}

.co-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.co-brand {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--bx-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.co-brand img,
.co-brand .bucketx-logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.co-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-brand-text .bx-x {
    color: var(--bx-red);
}

.co-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--note-green);
    color: #166534;
    padding: 7px 12px;
    border-radius: 999px;
    border: none;
}

.co-secure-label {
    display: none;
}

/* ── Page intro ── */
.co-page-intro {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.co-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--note-yellow);
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.co-page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--bx-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 8px;
}

.co-page-subtitle {
    font-size: 1rem;
    color: var(--bx-text-muted);
    margin: 0;
    line-height: 1.5;
}

.co-handnote {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--bx-text);
    margin-top: 10px;
    transform: rotate(-2deg);
    display: inline-block;
}

/* ── Mobile summary ── */
.checkout-mobile-top {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-summary-panel {
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-md);
    overflow: hidden;
    box-shadow: var(--bx-shadow-sm);
}

.mobile-summary-toggle {
    background: transparent;
    border: none;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bx-text);
    cursor: pointer;
    gap: 10px;
}

.mobile-summary-toggle .price-pill {
    color: var(--bx-red);
    font-weight: 800;
}

.mobile-summary-collapse {
    border-top: 1px solid var(--bx-border);
    padding: 16px;
}

/* ── Layout ── */
.checkout-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 16px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    width: 100%;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    min-width: 0;
    align-items: start;
}

.checkout-main {
    min-width: 0;
    max-width: 100%;
}

/* ── Stepper ── */
.stepper-header-container {
    margin-bottom: 28px;
}

.stepper-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--bx-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--bx-text-muted);
    transition: all 0.2s ease;
}

.step-pill-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--bx-text-muted);
    flex-shrink: 0;
}

.step-pill.active {
    background: var(--bx-card);
    border-color: var(--bx-dark);
    color: var(--bx-text);
    box-shadow: var(--bx-shadow-sm);
}

.step-pill.active .step-pill-num {
    background: var(--bx-dark);
    color: #fff;
}

.step-pill.done {
    border-color: #86efac;
    color: #166534;
    background: var(--note-green);
}

.step-pill.done .step-pill-num {
    background: #16a34a;
    color: #fff;
}

.step-pill-arrow {
    color: #cbd5e1;
    font-size: 14px;
}

/* legacy stepper (hidden, kept for JS compat) */
.stepper-header,
.step-line-container {
    display: none;
}

/* ── Main form card ── */
.checkout-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    max-width: 100%;
}

.checkout-step {
    display: block;
}

.checkout-card-body {
    padding: 0;
    overflow: visible;
}

.step-panel {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bx-text);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.step-subtitle {
    font-size: 0.95rem;
    color: var(--bx-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

/* ── Form section cards ── */
.form-section-card {
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    padding: 24px 22px;
    margin-bottom: 16px;
    box-shadow: var(--bx-shadow-sm);
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bx-text);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--note-peach);
    color: var(--bx-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.form-section-card:nth-child(2) .form-section-title i { background: var(--note-blue); }
.form-section-card:nth-child(3) .form-section-title i { background: var(--note-yellow); }
.form-section-card:nth-child(4) .form-section-title i { background: var(--note-lavender); }

.field-optional {
    font-size: 11px;
    font-weight: 500;
    color: var(--bx-text-muted);
    margin-left: 4px;
}

/* ── Fields ── */
.field-group {
    margin-bottom: 1rem;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    display: block;
}

.field-label span.req {
    color: var(--bx-red);
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.field-wrap input,
.field-wrap select,
.field-wrap textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--bx-border);
    border-radius: var(--bx-radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: #fafaf8;
    color: var(--bx-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.field-wrap textarea {
    min-height: 88px;
    padding-top: 12px;
    resize: vertical;
    line-height: 1.5;
}

.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
    border-color: var(--bx-dark);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
}

.field-wrap input[type="password"] {
    padding-right: 48px;
}

.field-wrap input.is-invalid,
.field-wrap select.is-invalid,
.field-wrap textarea.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.field-err {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-hint {
    font-size: 12px;
    color: var(--bx-text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.readonly-field {
    background: #f1f5f9 !important;
    color: #475569 !important;
    cursor: not-allowed;
}

.co-recaptcha-section {
    margin-top: 20px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-md);
}

.co-recaptcha-wrap {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.co-recaptcha-wrap .g-recaptcha {
    transform-origin: left top;
}

.co-recaptcha-err {
    margin-top: 10px;
    margin-bottom: 0;
}

.step-nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

/* ── Buttons ── */
.step-nav {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.btn-back,
.btn-next {
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-back {
    background: var(--bx-card);
    border: 1.5px solid var(--bx-border);
    color: var(--bx-text);
}

.btn-back:hover {
    border-color: var(--bx-dark);
    background: #fff;
}

.btn-next {
    background: var(--bx-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.22);
}

.btn-next:hover {
    background: var(--bx-dark-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.28);
}

.btn-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next-full {
    width: 100%;
}

/* ── Payment methods ── */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.pay-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--bx-radius-sm);
    border: 1.5px solid var(--bx-border);
    background: #fafaf8;
    font-size: 12px;
    font-weight: 600;
    color: var(--bx-text-muted);
    cursor: default;
    text-align: center;
    position: relative;
}

.pay-method i {
    font-size: 22px;
}

.pay-method.active {
    border-color: var(--bx-dark);
    background: var(--bx-card);
    color: var(--bx-text);
    box-shadow: var(--bx-shadow-sm);
}

.pay-method.active::after {
    content: 'Recommended';
    position: absolute;
    top: -8px;
    right: -4px;
    background: var(--note-green);
    color: #166534;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
}

.pay-method.disabled {
    opacity: 0.45;
}

.pay-method-badge {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── UPI section ── */
.upi-container {
    text-align: center;
}

.upi-amount-card {
    background: var(--note-yellow);
    border: none;
    border-radius: var(--bx-radius-md);
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.uac-label {
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

.uac-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bx-text);
    line-height: 1;
}

.uac-per {
    font-size: 12px;
    color: var(--bx-text-muted);
}

.upi-qr-card {
    display: inline-block;
    padding: 14px;
    background: var(--bx-card);
    border-radius: var(--bx-radius-md);
    box-shadow: var(--bx-shadow-sm);
    border: 1px solid var(--bx-border);
    margin-bottom: 12px;
}

.upi-qr-card img {
    width: min(200px, 70vw);
    height: min(200px, 70vw);
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.upi-scan-text {
    font-size: 13px;
    color: var(--bx-text-muted);
    margin-bottom: 16px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.upi-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--bx-dark);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    min-height: 52px;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.2);
}

.upi-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--bx-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.upi-or-divider::before,
.upi-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bx-border);
}

.upi-id-section {
    background: #fafaf8;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-md);
    padding: 18px;
    margin-bottom: 16px;
    text-align: left;
}

.uid-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bx-text);
    margin-bottom: 10px;
}

.upi-id-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bx-card);
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--bx-radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    min-height: 48px;
}

.upi-id-text {
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
}

.uid-name,
.uid-hint {
    font-size: 12px;
    color: var(--bx-text-muted);
    margin-top: 8px;
    line-height: 1.45;
}

.upi-apps-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.upi-app-badge {
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.upi-instructions {
    background: var(--note-blue);
    border: none;
    border-radius: var(--bx-radius-sm);
    padding: 14px 16px;
    margin-top: 16px;
    text-align: left;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.55;
}

/* ── Step 3 ── */
.info-card {
    background: var(--note-peach);
    border: none;
    border-radius: var(--bx-radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #9a3412;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.55;
}

.amount-highlight-card {
    background: var(--note-yellow);
    border-radius: var(--bx-radius-sm);
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-box {
    background: #fafaf8;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-sm);
    padding: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 7px 0;
}

.summary-row-total {
    border-top: 1px solid var(--bx-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 800;
}

.text-primary {
    color: var(--bx-red) !important;
}

/* ── Sidebar ── */
.sidebar-card {
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    box-shadow: var(--bx-shadow);
    overflow: hidden;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--bx-border);
    background: linear-gradient(135deg, var(--note-peach) 0%, var(--bx-card) 100%);
}

.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bx-text-muted);
    margin-bottom: 8px;
}

.sidebar-plan-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bx-text);
}

.sidebar-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.sidebar-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--bx-text);
}

.sidebar-cycle {
    font-size: 14px;
    color: var(--bx-text-muted);
}

.sidebar-body {
    padding: 22px;
}

.sidebar-breakdown {
    margin-bottom: 18px;
}

.total-highlight {
    background: var(--note-yellow);
    border-radius: var(--bx-radius-sm);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.total-highlight span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.total-highlight span:last-child {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bx-text);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.feature-item i {
    color: #16a34a;
}

.trust-badge-container {
    border-top: 1px solid var(--bx-border);
    padding-top: 16px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--bx-text-muted);
    font-weight: 600;
}

.trust-badge i {
    color: #16a34a;
}

.sidebar-made-india {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--note-green);
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    margin-top: 16px;
}

/* ── Sticky notes ── */
.billing-upsell {
    background: var(--note-green);
    border: none;
    border-radius: var(--bx-radius-sm);
    padding: 16px;
    margin-bottom: 18px;
    transform: rotate(-0.5deg);
}

.billing-upsell-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.6);
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.billing-upsell-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bx-text);
    margin-bottom: 6px;
}

.billing-upsell-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 12px;
}

.billing-upsell-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bx-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.billing-upsell-btn:hover {
    color: #fff;
    background: var(--bx-dark-hover);
}

.billing-switch-subtle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bx-text-muted);
    padding: 12px 14px;
    background: var(--note-blue);
    border-radius: var(--bx-radius-sm);
    margin-bottom: 16px;
    text-align: center;
}

.billing-switch-subtle a {
    color: var(--bx-dark);
    font-weight: 700;
    text-decoration: underline;
}

.co-help-note {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 100;
    background: var(--note-lavender);
    color: var(--bx-text);
    padding: 14px 18px;
    border-radius: 4px 16px 16px 16px;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 180px;
    box-shadow: var(--bx-shadow-sm);
    transform: rotate(2deg);
    line-height: 1.3;
    pointer-events: none;
}

a.co-help-note--link {
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.co-help-note--link:hover {
    transform: rotate(2deg) scale(1.03);
    box-shadow: var(--bx-shadow);
    color: var(--bx-text);
}

.co-help-note small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--bx-text-muted);
    margin-top: 4px;
}

.co-trust-line {
    text-align: center;
    font-size: 12px;
    color: var(--bx-text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

/* ── Alerts ── */
.co-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--bx-radius-md);
    padding: 16px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #991b1b;
}

/* ── Mobile fixes ── */
@media (max-width: 991.98px) {
    body.checkout-page {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .checkout-card-body .row {
        --bs-gutter-x: 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }

    .checkout-card-body .row > [class*="col-"] {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .checkout-step:has(.co-recaptcha-section) {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    body.checkout-page:has(.co-recaptcha-section) {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .checkout-step .co-step-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 180;
        margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(253, 248, 240, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--bx-border);
        flex-direction: row;
        gap: 10px;
    }

    .checkout-step .co-step-actions .btn-back {
        flex: 1;
    }

    .checkout-step .co-step-actions .btn-next {
        flex: 2;
    }

    .checkout-step .co-step-actions .btn-next-full {
        flex: 1;
    }

    .pay-methods {
        grid-template-columns: 1fr;
    }

    .pay-method.disabled {
        display: none;
    }

    .co-help-note {
        display: none !important;
    }

    .form-section-card {
        padding: 20px 16px;
        border-radius: var(--bx-radius-md);
    }
}

/* ── Tablet+ ── */
@media (min-width: 576px) {
    .co-secure-label {
        display: inline;
    }

    .pay-methods {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-nav {
        flex-direction: row;
    }

    .btn-back {
        flex: 1;
    }

    .btn-next {
        flex: 2;
    }
}

/* ── Desktop ── */
@media (min-width: 992px) {
    .checkout-container {
        padding: 28px 24px 48px;
    }

    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 32px;
    }

    .checkout-mobile-top {
        display: none;
    }

    .co-page-intro {
        text-align: left;
    }

    .stepper-pills {
        justify-content: flex-start;
    }

    .sidebar-card {
        position: sticky;
        top: calc(var(--nav-height) + 20px);
    }

    .checkout-step .co-step-actions {
        position: static;
        padding: 0;
        background: transparent;
        border-top: none;
        backdrop-filter: none;
        margin-top: 8px;
    }

    body.checkout-page {
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
}

/* ── Pending / confirmation page ── */
.pending-page {
    padding-bottom: 40px;
}

.pending-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.pending-hero {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.pending-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--note-yellow);
    color: #b45309;
    box-shadow: var(--bx-shadow-sm);
    border: 3px solid #fff;
}

.pending-hero.is-renewal .pending-icon {
    background: var(--note-blue);
    color: #1d4ed8;
}

.pending-hero.is-new .pending-icon {
    background: var(--note-green);
    color: #15803d;
}

.pending-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bx-text);
    margin: 0 0 8px;
    line-height: 1.2;
}

.pending-subtitle {
    font-size: 0.95rem;
    color: var(--bx-text-muted);
    margin: 0 auto;
    max-width: 420px;
    line-height: 1.55;
}

.pending-stepper {
    margin-bottom: 20px;
}

.pending-stepper .step-pill.done {
    background: var(--note-green);
    border-color: #86efac;
    color: #14532d;
}

.pending-card {
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    padding: 22px 20px;
    box-shadow: var(--bx-shadow-sm);
    margin-bottom: 16px;
}

.pending-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bx-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pending-card-title i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--note-peach);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pending-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pending-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 224, 212, 0.65);
    font-size: 14px;
}

.pending-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pending-row:first-child {
    padding-top: 0;
}

.pending-label {
    color: var(--bx-text-muted);
    flex-shrink: 0;
}

.pending-value {
    font-weight: 600;
    color: var(--bx-text);
    text-align: right;
    word-break: break-word;
}

.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--note-yellow);
    color: #92400e;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pending-badge i {
    font-size: 11px;
}

.pending-note {
    background: var(--note-yellow);
    border-radius: 4px 20px 20px 20px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--bx-shadow-sm);
    transform: rotate(-0.5deg);
}

.pending-note-title {
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bx-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-note-body {
    font-size: 13px;
    color: var(--bx-text);
    line-height: 1.6;
    margin: 0;
}

.pending-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.pending-actions .btn-back {
    text-decoration: none;
}

.pending-ref {
    text-align: center;
    font-size: 11px;
    color: var(--bx-text-muted);
    margin-top: 14px;
    word-break: break-all;
}

.pending-nav-secure {
    background: var(--note-green);
    color: #166534;
}

@media (min-width: 576px) {
    .pending-wrap {
        padding: 28px 20px 48px;
    }

    .pending-title {
        font-size: 1.85rem;
    }

    .pending-card {
        padding: 26px 24px;
    }

    .pending-actions {
        flex-direction: row;
        justify-content: center;
    }

    .pending-actions .btn-back {
        width: auto;
        min-width: 200px;
    }
}

/* ── Plan picker (checkout step 1) ── */
.checkout-page--plans .checkout-container {
    max-width: 1200px;
}

.checkout-page--plans .checkout-layout {
    gap: 20px;
}

/* Plans page: sidebar only when main column is wide enough for 3 cards */
@media (min-width: 992px) and (max-width: 1279.98px) {
    .checkout-page--plans .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-page--plans .checkout-sidebar--plans {
        display: none !important;
    }
}

@media (min-width: 1280px) {
    .checkout-page--plans .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 28px;
    }

    .checkout-page--plans .checkout-sidebar .sidebar-card {
        position: sticky;
        top: calc(var(--nav-height, 64px) + 16px);
        max-height: calc(100vh - var(--nav-height, 64px) - 32px);
        overflow-y: auto;
    }
}

.checkout-sidebar {
    min-width: 0;
}

.checkout-sidebar--plans {
    display: none;
}

.plan-mobile-included {
    display: block;
    margin-top: 8px;
}

@media (min-width: 1280px) {
    .checkout-sidebar--plans {
        display: block;
    }

    .plan-mobile-included {
        display: none;
    }

    .co-help-note--plans {
        display: block;
    }
}

.co-help-note--plans {
    display: none;
    bottom: 24px;
    right: 20px;
    z-index: 50;
}

@media (max-width: 1279.98px) {
    .co-help-note--plans {
        display: none !important;
    }
}

.plan-pick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
    min-width: 0;
}

/* Tablet: 2 columns when trial disabled */
@media (min-width: 576px) {
    .plan-pick-grid:not(.plan-pick-grid--with-trial) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet with trial: trial full-width, paid plans side by side */
@media (min-width: 576px) and (max-width: 1279.98px) {
    .plan-pick-grid--with-trial {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-pick-grid--with-trial .plan-pick-card--trial {
        grid-column: 1 / -1;
    }
}

/* Desktop xl: 3 equal columns + sidebar */
@media (min-width: 1280px) {
    .plan-pick-grid--with-trial {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plan-pick-grid--with-trial .plan-pick-card--trial {
        grid-column: auto;
    }

    .plan-pick-grid:not(.plan-pick-grid--with-trial) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
    }
}

/* Mobile included-features block */
.plan-mobile-included-card {
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    padding: 20px 18px;
    box-shadow: var(--bx-shadow-sm);
}

.plan-mobile-included-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bx-text);
    margin: 0 0 6px;
}

.plan-mobile-included-sub {
    font-size: 13px;
    color: var(--bx-text-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}

.plan-mobile-included-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.plan-mobile-included-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--bx-text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.plan-mobile-included-list li i {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Compact stepper on small screens */
@media (max-width: 575.98px) {
    .checkout-page--plans .stepper-pills {
        gap: 6px;
    }

    .checkout-page--plans .step-pill {
        padding: 8px 12px;
        font-size: 12px;
    }

    .checkout-page--plans .step-pill-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .checkout-page--plans .co-page-title {
        font-size: 1.45rem;
    }

    .checkout-page--plans .co-handnote {
        display: none;
    }

    .plan-pick-card {
        padding: 18px 16px 16px;
    }

    .plan-pick-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
}

@media (min-width: 576px) {
    .plan-pick-badge {
        position: absolute;
        top: 14px;
        right: 14px;
        margin-bottom: 0;
    }
}

.checkout-page--plans .checkout-main {
    min-width: 0;
    overflow-x: clip;
}

.checkout-page--plans .checkout-card {
    overflow: hidden;
}

.plan-pick-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: var(--bx-card);
    border: 2px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    padding: 22px 20px 20px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    height: 100%;
}

.plan-pick-card:hover {
    border-color: var(--bx-red);
    box-shadow: var(--bx-shadow-lg);
    transform: translateY(-2px);
    color: inherit;
}

.plan-pick-card--trial {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, var(--bx-card) 55%);
}

.plan-pick-card--trial:hover {
    border-color: #22c55e;
}

.plan-pick-card--yearly {
    border-color: #c7d2fe;
}

.plan-pick-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

.plan-pick-badge--trial {
    background: #dcfce7;
    color: #15803d;
}

.plan-pick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--note-peach);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--bx-red);
    margin-bottom: 14px;
}

.plan-pick-card--trial .plan-pick-icon {
    background: #dcfce7;
    color: #16a34a;
}

.plan-pick-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bx-text);
    margin: 0 0 6px;
}

.plan-pick-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--bx-red);
    line-height: 1.1;
    margin-bottom: 4px;
}

.plan-pick-price--free {
    color: #16a34a;
}

.plan-pick-cycle {
    font-size: 13px;
    color: var(--bx-text-muted);
    margin: 0 0 14px;
}

.plan-pick-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex: 1;
}

.plan-pick-features li {
    font-size: 13px;
    color: var(--bx-text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-pick-features li i {
    color: #16a34a;
    font-size: 14px;
    flex-shrink: 0;
}

.plan-pick-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--bx-dark);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: auto;
    box-shadow: 0 6px 18px rgba(30, 41, 59, 0.2);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.plan-pick-cta-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-pick-cta-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.plan-pick-card:hover .plan-pick-cta {
    background: var(--bx-dark-hover);
    box-shadow: 0 8px 22px rgba(30, 41, 59, 0.26);
}

.plan-pick-card:hover .plan-pick-cta-arrow {
    transform: translateX(3px);
}

.plan-pick-cta--trial {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}

.plan-pick-card--trial:hover .plan-pick-cta--trial {
    background: linear-gradient(135deg, #16a34a, #15803d);
    filter: none;
}

.plan-pick-card:hover .plan-pick-cta--trial {
    filter: none;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .plan-pick-grid--with-trial .plan-pick-cta {
        padding: 11px 14px;
        font-size: 13px;
        min-height: 44px;
    }
}

.plan-pick-savings {
    text-align: center;
    font-size: 13px;
    color: var(--bx-text-muted);
    margin: 20px 0 0;
    padding: 12px 16px;
    background: var(--note-yellow);
    border-radius: var(--bx-radius-sm);
}

.plan-sidebar-trial-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    margin-bottom: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--bx-radius-sm);
    font-size: 13px;
}

.plan-sidebar-trial-note i {
    color: #16a34a;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-sidebar-trial-note strong {
    display: block;
    color: var(--bx-text);
    margin-bottom: 2px;
}

.plan-sidebar-trial-note span {
    color: var(--bx-text-muted);
    line-height: 1.4;
}

/* ── Trial page: paid plan alternative banner ── */
.co-alt-plan-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--bx-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.co-alt-plan-banner:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
    color: inherit;
}

.co-alt-plan-banner-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #4338ca;
}

.co-alt-plan-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.co-alt-plan-banner-text strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--bx-text);
}

.co-alt-plan-banner-text span {
    font-size: 12px;
    color: var(--bx-text-muted);
    line-height: 1.35;
}

.co-alt-plan-banner-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #4338ca;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.co-alt-plan-banner:hover .co-alt-plan-banner-action {
    background: #3730a3;
}

@media (max-width: 575.98px) {
    .co-alt-plan-banner {
        flex-wrap: wrap;
        padding: 14px;
    }

    .co-alt-plan-banner-action {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
}

/* ── Trial success page ── */
.trial-success-page {
    padding-bottom: 40px;
}

.trial-success-nav-secure {
    background: #dcfce7;
    color: #166534;
}

.trial-success-hero .pending-icon {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    width: 80px;
    height: 80px;
    font-size: 34px;
}

.trial-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
}

.trial-success-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.trial-success-note {
    background: #f0fdf4;
    transform: rotate(0.35deg);
}

.trial-success-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trial-success-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--bx-text-muted);
    line-height: 1.45;
    padding: 12px 14px;
    background: var(--bx-card);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-sm);
}

.trial-success-checklist li i {
    color: #16a34a;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.trial-success-cta {
    text-decoration: none;
    justify-content: center;
    min-height: 52px;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}

.trial-success-cta:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.trial-success-page .pending-actions .btn-back {
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .trial-success-page .pending-actions .btn-next,
    .trial-success-page .pending-actions .btn-back {
        width: 100%;
    }
}
