@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f8;
    min-height: 100dvh;
    margin: 0;
    color: #2C2C2C;
    font-size: 14px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.checkout-header {
    background: #2C2C2C;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.checkout-header img { height: 36px; }
.checkout-header a { color: #fff; font-size: 13px; text-decoration: none; opacity: .7; }
.checkout-header a:hover { opacity: 1; }

/* ── Stepper ──────────────────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 0 0;
}
.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    width: 60px;
    height: 2px;
    background: #ddd;
}
.stepper-item.done:not(:last-child)::after,
.stepper-item.active:not(:last-child)::after { background: #3EA52D; }

.stepper-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px;
    color: #aaa;
    transition: .3s;
}
.stepper-item.done .stepper-circle {
    background: #3EA52D; border-color: #3EA52D; color: #fff;
}
.stepper-item.active .stepper-circle {
    background: #2C2C2C; border-color: #2C2C2C; color: #fff;
}
.stepper-label {
    font-size: 11px; color: #aaa; margin-top: 6px; white-space: nowrap;
}
.stepper-item.active .stepper-label { color: #2C2C2C; font-weight: 600; }
.stepper-item.done  .stepper-label  { color: #3EA52D; }

/* ── Main container ───────────────────────────────────────────────────────── */
.checkout-main {
    max-width: 760px;
    margin: 32px auto 60px;
    padding: 0 16px;
}
.checkout-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
}
.checkout-card-header {
    background: #2C2C2C;
    color: #fff;
    padding: 20px 28px;
}
.checkout-card-header h2 {
    margin: 0; font-size: 1.05rem; font-weight: 600;
}
.checkout-card-header p {
    margin: 4px 0 0; font-size: 12px; opacity: .65;
}
.checkout-card-body { padding: 28px; }

/* ── Package base card ────────────────────────────────────────────────────── */
.package-base {
    border: 2px solid #3EA52D;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9fff7;
}
.package-base-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.package-name { font-weight: 700; font-size: 1.1rem; }
.package-badge {
    background: #3EA52D; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}
.package-price { font-size: 1.4rem; font-weight: 700; color: #3EA52D; }
.package-price span { font-size: 13px; font-weight: 400; color: #666; }
.package-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
    margin-top: 12px;
}
.package-features li {
    list-style: none;
    font-size: 13px; color: #444;
    display: flex; align-items: center; gap: 6px;
}
.package-features li::before {
    content: '✓';
    color: #3EA52D; font-weight: 700; flex-shrink: 0;
}

/* ── Addons ───────────────────────────────────────────────────────────────── */
.addons-title { font-weight: 600; font-size: .85rem; color: #666; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.addon-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.addon-row:hover { border-color: #3EA52D; background: #fbfffa; }
.addon-row.selected { border-color: #3EA52D; background: #f2fbf0; }
.addon-left { display: flex; align-items: center; gap: 12px; }
.addon-left .material-symbols-rounded { color: #3EA52D; font-size: 22px; }
.addon-name { font-weight: 500; font-size: .92rem; }
.addon-desc { font-size: 11px; color: #888; margin-top: 1px; }
.addon-price-tag { font-weight: 600; color: #3EA52D; font-size: .92rem; white-space: nowrap; }

/* toggle switch */
.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    border-radius: 22px;
    background: #ddd;
    cursor: pointer;
    transition: .3s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; left: 3px; top: 3px;
    transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: #3EA52D; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* qty control */
.addon-qty-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    margin-bottom: 8px;
}
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid #ddd; background: #fff;
    font-size: 16px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .2s;
}
.qty-btn:hover { border-color: #3EA52D; color: #3EA52D; }
.qty-val { font-weight: 600; min-width: 24px; text-align: center; }

/* ── Price summary bar ────────────────────────────────────────────────────── */
.price-bar {
    background: #2C2C2C;
    color: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 24px;
}
.price-bar-label { font-size: 13px; opacity: .75; }
.price-bar-total { font-size: 1.5rem; font-weight: 700; }
.price-bar-total small { font-size: 12px; font-weight: 400; opacity: .65; }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 500;
    color: #666; margin-bottom: 5px;
}
.form-control {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    background: #fff;
}
.form-control:focus { border-color: #3EA52D; box-shadow: 0 0 0 3px rgba(62,165,45,.12); }
.form-control.error { border-color: #E42032; }
.form-error { color: #E42032; font-size: 11px; margin-top: 4px; display: none; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.section-title {
    font-size: .75rem; font-weight: 600; color: #999;
    text-transform: uppercase; letter-spacing: .6px;
    margin: 24px 0 14px; padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.section-title:first-child { margin-top: 0; }

/* payment method */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-method {
    border: 2px solid #e9e9e9; border-radius: 10px;
    padding: 18px 16px; cursor: pointer; text-align: center;
    transition: .2s;
}
.payment-method:hover { border-color: #2C2C2C; }
.payment-method.selected { border-color: #3EA52D; background: #f2fbf0; }
.payment-method .pm-icon { font-size: 28px; margin-bottom: 6px; }
.payment-method .pm-label { font-weight: 600; font-size: .9rem; }
.payment-method .pm-desc { font-size: 11px; color: #888; margin-top: 2px; }

/* ── Order summary (sidebar) ──────────────────────────────────────────────── */
.summary-box {
    background: #f9f9f9; border-radius: 10px;
    padding: 18px; font-size: 13px;
    margin-bottom: 20px;
}
.summary-box h4 { font-size: .85rem; font-weight: 600; margin: 0 0 12px; }
.summary-line {
    display: flex; justify-content: space-between;
    padding: 5px 0; color: #555;
}
.summary-line.total {
    border-top: 1px solid #e0e0e0; margin-top: 8px; padding-top: 10px;
    font-weight: 700; font-size: 1rem; color: #2C2C2C;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-checkout {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 8px;
    font-size: .95rem; font-weight: 600; font-family: inherit;
    border: none; cursor: pointer; transition: .2s;
    width: 100%;
}
.btn-primary-checkout { background: #3EA52D; color: #fff; }
.btn-primary-checkout:hover { background: #35911f; }
.btn-primary-checkout:disabled { background: #aaa; cursor: not-allowed; }
.btn-secondary-checkout { background: #f0f0f0; color: #2C2C2C; }
.btn-secondary-checkout:hover { background: #e0e0e0; }
.btn-row { display: flex; gap: 10px; margin-top: 24px; }
.btn-row .btn-secondary-checkout { max-width: 120px; }

/* ── Payment confirmation (step 3) ───────────────────────────────────────── */
.payment-confirm { text-align: center; padding: 8px 0; }
.pix-qr img { width: 200px; height: 200px; border: 1px solid #e0e0e0; border-radius: 8px; }
.pix-payload {
    background: #f4f4f4; border-radius: 8px; padding: 10px 14px;
    font-family: monospace; font-size: 12px;
    word-break: break-all; text-align: left;
    margin: 12px 0;
}
.boleto-icon { font-size: 56px; color: #3EA52D; margin-bottom: 12px; }
.confirm-title { font-size: 1.2rem; font-weight: 700; margin: 12px 0 6px; }
.confirm-value { font-size: 1.1rem; color: #3EA52D; font-weight: 600; }
.confirm-hint { font-size: 12px; color: #888; margin-top: 8px; }

.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: #fff3cd; color: #856404;
    margin-top: 14px;
}
.status-pill.confirmed { background: #d1edcd; color: #276221; }
.status-pill .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor; animation: pulse 1.4s infinite;
}
@keyframes pulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%{ opacity:.4; transform:scale(1.3); }
}

/* ── Alert ────────────────────────────────────────────────────────────────── */
.alert-error {
    background: #fff0f0; border: 1px solid #f5c6cb;
    border-radius: 8px; padding: 12px 16px;
    color: #721c24; font-size: 13px;
    margin-bottom: 16px; display: none;
}

/* ── Payment methods 3 cols ───────────────────────────────────────────────── */
.payment-methods-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Credit card form ─────────────────────────────────────────────────────── */
.card-form-wrap {
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 18px;
}
.card-number-wrap { position: relative; }
.card-number-wrap .form-control { padding-right: 60px; }
.card-brand {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 700; color: #555;
    background: #eee; padding: 2px 7px; border-radius: 4px;
    pointer-events: none;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .package-features { grid-template-columns: 1fr; }
    .form-grid-2      { grid-template-columns: 1fr; }
    .payment-methods  { grid-template-columns: 1fr; }
.payment-methods-3 { grid-template-columns: 1fr; }
    .checkout-card-body { padding: 18px; }
    .stepper-item:not(:last-child)::after { width: 36px; }
}
