:root {
    /* Matched to the Jungle Survivor landing page design system — see
       css/landing-page/jungle-survivor.css :root for the source of truth.
       Layout is the sw-giveaway 2-step checkout unchanged; only the palette
       moved from the S&W red/amber scheme to the jungle green/dark scheme.
       The CTA button stays red so it matches the lander's .cta-btn. */
    --red: #ff3b30;          /* lander --primary-red (CTA, urgency) */
    --red-bright: #ff6259;   /* lighter red for hovers */
    --error: #ff453a;        /* error states */
    --charcoal: #090a0f;     /* lander --bg-dark   (page bg) */
    --slate: #161822;        /* lander --bg-panel  (panel bg) */
    --card: #12141c;         /* lander --bg-card */
    --border: #272a38;       /* lander --border-color */
    --white: #f2f2f7;        /* lander --text-main */
    --grey: #9898a0;         /* lander --text-muted */
    --gold: #f59e0b;         /* lander --accent-gold */
    --green: #22c55e;        /* lander --jungle-green-bright (accents, price) */
    --green-deep: #10b981;   /* lander --jungle-green */
    --green-dark: #15803d;   /* header gradient end, white text stays legible */
    --font-sub: 'Montserrat', sans-serif;
    --font-body: 'Roboto', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--charcoal);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    color: var(--white);
    font-family: var(--font-sub);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

/* Warning Bar */
.warning-bar {
    background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #991b1b 100%);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 15px rgba(220, 38, 38, 0.4);
}
.warning-bar b { color: var(--gold); }

/* Header/Logo Bar */
.logo-bar {
    background: rgba(9, 10, 15, 0.96);
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.logo-bar img { height: 40px; justify-self: start; }
.help-link { font-size: 0.8rem; text-align: right; justify-self: end; }
.help-link a { color: var(--green); text-decoration: none; font-weight: 700; }

/* Main Grid */
.checkout-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 40px;
}
.checkout-content   { grid-column: 1; grid-row: 1; align-self: start; }
.checkout-extras    { grid-column: 1; grid-row: 2; align-self: start; }
.checkout-form-area { grid-column: 2; grid-row: 1 / 3; align-self: start; }

@media (max-width: 991px) {
    .checkout-container { display: flex; flex-direction: column; }
}

/* Left Content Area */
.checkout-content { text-align: center; }

.checkout-content h1 {
    font-family: var(--font-sub);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}
.checkout-content h1 .accent {
    color: var(--green);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.price-stack { margin-bottom: 30px; }
.retail-price { font-size: 1.2rem; color: var(--grey); text-decoration: line-through; }
.today-price { font-size: 1.8rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: 1px; }

.main-bundle-img {
    max-width: 460px;
    width: 100%;
    margin: 20px 0;
    border-radius: 6px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
}

/* Bundle contents list under the hero image */
.bundle-includes {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 auto 10px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #e5e5ea;
}
.bundle-includes li { display: flex; align-items: center; gap: 8px; }
.bundle-includes li i { color: var(--green); flex-shrink: 0; }

/* Trust badges row */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px auto;
    max-width: 420px;
}
.trust-badge {
    background: var(--slate);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Testimonial */
.testimonial-box {
    margin-top: 30px;
    padding: 24px;
    background: var(--slate);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 3px solid var(--green);
    text-align: left;
}
.stars { color: var(--gold); margin-bottom: 10px; font-size: 1rem; }
.quote-text { font-style: italic; font-size: 1.05rem; margin-bottom: 10px; color: var(--white); }
.quote-author { font-weight: 700; font-size: 0.85rem; color: var(--grey); }

/* Right Form Area */
.checkout-card {
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 25px rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #16a34a, var(--green-dark));
    color: #fff;
    padding: 20px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    background: #f1f1f1;
    color: #333;
    border-bottom: 1px solid #ddd;
}
.step {
    flex: 1;
    padding: 12px 6px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0e0e0;
    color: #777;
}
.step.active { background: #fff; color: var(--green-dark); }
.step.done { background: #f1f1f1; color: #333; }
.step-num {
    display: inline-block;
    background: #aaa;
    color: #fff;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 6px;
}
.step.active .step-num { background: var(--green-dark); }
.step.done .step-num { background: #333; }

/* Form */
.form-body { padding: 28px; }
.form-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 5px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-sub);
    font-size: 1rem;
    color: #333;
}
.form-control:focus {
    outline: none;
    border-color: var(--green-deep);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Order Bumps */
.order-bumps { margin: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.order-bump {
    background: #fcf8e3;
    border: 2px dashed #000;
    padding: 14px;
    color: #333;
    border-radius: 5px;
}
.bump-title {
    color: var(--red);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}
.bump-title input { margin-top: 4px; transform: scale(1.2); }
.bump-body {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #333;
    margin-bottom: 10px;
}
.bump-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0 0;
    border-radius: 6px;
    object-fit: cover;
}
.bump-price { font-weight: 700; color: var(--red); margin-top: 4px; display: block; }
.bump-normally {
    margin: 3px 0 10px 30px;   /* indent under the header text (past the checkbox) */
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red);
}
.bump-normally s { color: #636366; font-weight: 600; }

/* Amazon-style qty box inside checkout bumps — full width under description */
.amazon-buybox-mini {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 4px;
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 5px rgba(15, 17, 17, 0.12);
}
.amazon-buybox-mini .amazon-instock {
    color: #007600;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    font-family: Arial, Helvetica, sans-serif;
}
.amazon-buybox-mini .amazon-qty-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}
.amazon-buybox-mini .amazon-qty {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #f7f8fa, #e7e9ec);
    border: 1px solid #888c8c;
    border-radius: 8px;
    padding: 10px 36px 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f1111;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 5px rgba(15, 17, 17, 0.1);
}
.amazon-buybox-mini .amazon-qty-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    transform: translateY(-35%);
    pointer-events: none;
}
/* Order Summary */
.order-summary {
    margin-top: 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    color: #333;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.summary-row.bump { color: var(--green-dark); font-weight: 600; }
.summary-total {
    font-weight: 900;
    font-size: 1.15rem;
    border-top: 2px solid #000;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
.summary-total span:last-child { color: var(--green-dark); }

/* Submit Button — same red CTA as the lander's .cta-btn */
.btn-checkout {
    width: 100%;
    background: linear-gradient(180deg, #ff453a 0%, #d32f2f 100%);
    color: #fff;
    border: 1px solid #ff6961;
    padding: 18px;
    font-weight: 900;
    font-size: 1.15rem;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.45);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.btn-checkout:hover { background: linear-gradient(180deg, #ff5b52 0%, #e53935 100%); box-shadow: 0 12px 35px rgba(255, 59, 48, 0.6); transform: translateY(-2px); }
.btn-checkout:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-back {
    width: 100%;
    background: transparent;
    color: var(--grey);
    border: 1px solid #444;
    padding: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: block;
    text-align: center;
}
.btn-back:hover { color: var(--white); border-color: #666; }

.privacy-note {
    text-align: center;
    margin-top: 10px;
    font-size: 0.7rem;
    color: #777;
}

.cc-icons {
    text-align: center;
    margin: 14px 0;
}
.cc-icons img { max-width: 220px; width: 100%; height: auto; }

/* Error message */
.error-msg {
    background: #ffe6e6;
    color: var(--error);
    border: 1px solid var(--error);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    display: none;
}
.error-msg.show { display: block; }

/* Terms / fine print */
.terms-block {
    margin-top: 30px;
    text-align: left;
    font-size: 0.78rem;
    color: var(--grey);
    line-height: 1.6;
}
.terms-block p { margin-bottom: 10px; }
.terms-block strong { color: var(--white); }

/* Guarantee strip */
.guarantee-strip {
    background: var(--slate);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}
.guarantee-strip img { max-width: 110px; height: auto; }
.guarantee-strip .text { max-width: 500px; text-align: left; }
.guarantee-strip .text h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; color: var(--white); }
.guarantee-strip .text p { font-size: 0.85rem; color: var(--grey); }

/* FAQ */
.faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}
.faq-section h2 {
    font-family: var(--font-sub);
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.8rem;
    letter-spacing: 1px;
}
.faq-item {
    background: var(--slate);
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.faq-q {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.faq-q span {
    color: var(--green);
    font-size: 1.4rem;
    margin-right: 14px;
    font-weight: 900;
}
.faq-a {
    padding: 0 20px 18px 50px;
    color: var(--grey);
    display: none;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #050608;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border);
}
.footer img { margin-bottom: 14px; opacity: 0.6; }
.footer-links { font-size: 0.78rem; color: var(--grey); }
.footer-links a { color: #fff; margin: 0 10px; text-decoration: none; }
.footer-copyright { margin-top: 14px; font-size: 0.75rem; color: var(--grey); }

/* Loading indicator */
.loading-indicator {
    display: none;
    text-align: center;
    margin-top: 10px;
}
.loading-indicator i { font-size: 1.5rem; color: var(--green); }

/* Mobile tweaks */
@media (max-width: 600px) {
    .checkout-content h1 { font-size: 1.6rem; }
    #leftHeading, .price-stack { display: none; }
    .form-body { padding: 20px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .checkout-container { margin: 20px auto; padding: 0 14px; gap: 24px; }
    .main-bundle-img { max-width: 100% !important; }
    .bundle-includes { font-size: 0.82rem; }
    .logo-bar { padding: 12px 14px; }
    .logo-bar img { height: 32px; }
    .help-link { font-size: 0.7rem; }
    .warning-bar { font-size: 0.75rem; padding: 8px 10px; letter-spacing: 0.5px; }
    .guarantee-strip { padding: 20px 14px; gap: 14px; }
    .guarantee-strip .text { text-align: center; }
    .terms-block { font-size: 0.75rem; }
    .faq-section { padding: 0 14px; margin: 40px auto; }
    .checkout-card { border-radius: 8px; }
    .cc-icons img { max-width: 100%; }
}

/* ---------------------------------------------------------------------------
 * ORDER BUMP — Raptor Claw Karambit Knife (image creative)
 * The creative already contains the "YES, ADD..." headline, the feature rows,
 * the price block and an empty checkbox square, so the whole image is the
 * clickable label. The check mark below is positioned as a percentage of the
 * image so it stays inside the drawn square at every width.
 *
 * !! RE-MEASURE ON ARTWORK CHANGE !! The percentages below assume the same
 * template as the home-security battery bump (1399x1124 with an 82x83 square at
 * 133,33). If images/bump-raptor-claw.png is cropped differently, re-measure
 * .img-bump-check left/top/width against the real file or the tick will sit off
 * the box.
 * ------------------------------------------------------------------------- */
.img-bump {
    position: relative;
    display: block;
    line-height: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.img-bump.checked {
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}

.img-bump-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Visually hidden but still focusable / announced by screen readers. */
.img-bump-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.img-bump-check {
    position: absolute;
    left: 12.44%;
    top: 6.63%;
    width: 4.34%;
    height: auto;
    color: #c8102e;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transform-origin: center;
    transition: opacity 0.12s ease, transform 0.12s ease;
    pointer-events: none;
}

.img-bump.checked .img-bump-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.img-bump-input:focus-visible + .img-bump-img {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

/* ---------------------------------------------------------------------------
 * ORDER BUMP — text fallback
 * Rendered by checkout.php only when the bump creative is missing from disk, so
 * a missing asset degrades to a readable offer instead of a broken image. Same
 * #bumpCardBox id and .checked class as .img-bump, so the checkout JS is
 * identical for both.
 * ------------------------------------------------------------------------- */
.bump-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    border-radius: 8px;
    background: var(--card);
    border: 2px dashed var(--border);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.bump-card:hover { border-color: var(--gold); }

.bump-card.checked {
    border-style: solid;
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.07);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
}

.bump-card-input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.bump-card-body { flex: 1 1 auto; text-align: left; line-height: 1.35; }

.bump-card-flag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #06070a;
    background: var(--green);
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.bump-card-title {
    display: block;
    font-family: var(--font-sub);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--white);
}

.bump-card-title .bump-card-price { color: var(--gold); }

.bump-card-copy {
    display: block;
    margin-top: 5px;
    font-size: 0.74rem;
    color: var(--grey);
}

.bump-card-copy s { color: var(--grey); opacity: 0.75; }

.bump-card-input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .bump-card { padding: 12px; gap: 10px; }
    .bump-card-title { font-size: 0.8rem; }
}
