/* ============================================================
   quote.css — Premium Quote Wizard · SEOAD
   Light theme · Poppins
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;900&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #e52027;
    --red-light: rgba(229, 32, 39, 0.08);
    --red-mid: rgba(229, 32, 39, 0.15);
    --ink: #0a0a0a;
    --ink-2: #1c1c1c;
    --ink-3: #374151;
    --muted: #6b7280;
    --border: #e8e8e8;
    --bg: #f7f6f3;
    --surface: #ffffff;
    --surface-2: #fafaf9;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
    --font-head: "Poppins", sans-serif;
    --font-body: "Poppins", sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

/* ══════════════════════════════════════════
   STEPPER
══════════════════════════════════════════ */
#stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: 0 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    position: relative;
    cursor: default;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 1px;
    background: var(--border);
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 1px solid var(--border);
    color: #8b8b8b;
    font-size: 18px;
    transition: none;
}
.step-lbl {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
    white-space: nowrap;
}
.step.done .step-num {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.step.done .step-lbl {
    color: var(--ink-3);
}
.step.active .step-num {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.step.active .step-lbl {
    color: var(--ink);
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
/* LAYOUT */
.wrap {
    width: 100%;
    max-width: 1400px; /* increased from 960px */
    margin: 48px auto 100px;
    padding: 0 24px;
}

#content {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 52px 56px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* ── Section tag & Top Bar ── */
.wizard-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}
.wizard-top-bar .stag {
    margin-bottom: 0;
}
.wizard-close-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.wizard-close-link:hover {
    background: var(--red-light);
    color: var(--red);
    transform: rotate(90deg) scale(1.05);
}

.stag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-light);
    border-radius: 6px;
    padding: 5px 12px;
    margin-bottom: 18px;
}

.ptitle {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.psub {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   PAGE 1 — CATEGORY TABS + SERVICE CARDS
══════════════════════════════════════════ */

/* ── Category Tab Bar ── */
.cat-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}
.cat-tabs::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}
.cat-tab i {
    font-size: 15px;
}
.cat-tab:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.04);
}
.cat-tab.active {
    background: var(--surface);
    color: var(--red);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.cat-tab.active i {
    color: var(--red);
}

/* Badge showing how many selected in this category */
.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ── Category Header ── */
.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cat-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--red-light);
    color: var(--red);
    flex-shrink: 0;
}
.cat-header-text {
    flex: 1;
}
.cat-header-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
}
.cat-header-full {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.cat-header-count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* ── Service Cards Grid ── */
.svc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 22px 10px 18px;
    border-radius: 16px;
    border: 1.5px solid #ececec;
    background: #fff;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
}

.svc-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.svc-card.sel {
    border-color: var(--red);
    background: rgba(229, 32, 39, 0.03);
    box-shadow: 0 8px 24px rgba(229, 32, 39, 0.12);
}

.svc-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #eef4ff;
    color: #3b6cf7;
    transition: all 0.22s ease;
}

/* Category-specific icon colors */
.cat-aeo .svc-card-icon {
    background: #eef4ff;
    color: #3b6cf7;
}
.cat-geo .svc-card-icon {
    background: #e8f5e9;
    color: #2e7d32;
}
.cat-seo .svc-card-icon {
    background: #fff3e0;
    color: #e65100;
}
.cat-smm .svc-card-icon {
    background: #fce4ec;
    color: #c2185b;
}
.cat-dm .svc-card-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}
.cat-ppc .svc-card-icon {
    background: #e0f2f1;
    color: #00695c;
}

.svc-card.sel .svc-card-icon {
    background: rgba(229, 32, 39, 0.1);
    color: var(--red);
}

.svc-card-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
}

/* Tick badge top-right */
.svc-card-tick {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #dadada;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.svc-card-tick i {
    color: transparent;
    font-size: 11px;
}
.svc-card.sel .svc-card-tick {
    background: var(--red);
    border-color: var(--red);
}
.svc-card.sel .svc-card-tick i {
    color: #fff;
}

/* ── All-selected summary strip ── */
.sel-summary-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}
.strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.strip-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.strip-label i {
    font-size: 13px;
    color: var(--red);
}
.strip-clear-btn {
    background: none;
    border: none;
    color: #e52027;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.15s;
    text-decoration: underline;
}
.strip-clear-btn:hover {
    color: #b91c1c;
}
.strip-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}
.sel-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--red-light);
    color: var(--red);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(229, 32, 39, 0.2);
    box-sizing: border-box;
    line-height: 1.2;
    transition: all 0.15s ease;
}
.sel-chip:hover {
    background: rgba(229, 32, 39, 0.14);
    border-color: rgba(229, 32, 39, 0.35);
}
.sel-chip i {
    font-size: 12px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s, transform 0.15s;
    margin-left: 2px;
}
.sel-chip i:hover {
    opacity: 1;
    transform: scale(1.15);
}
.strip-empty {
    font-size: 12px;
    color: #94a3b8;
    font-style: normal;
}

/* ══════════════════════════════════════════
   PAGE 2 — BUDGET
══════════════════════════════════════════ */
.budget-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.budget-section-label i {
    font-size: 14px;
}

.currency-toggle {
    display: inline-flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 36px;
}

.cur-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 9px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.cur-btn:hover {
    color: var(--ink);
}
.cur-btn.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 10px rgba(229, 32, 39, 0.3);
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.budget-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
    text-align: center;
}
.budget-tile:hover {
    border-color: var(--red);
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.budget-tile.sel {
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 6px 20px rgba(229, 32, 39, 0.25);
    transform: translateY(-2px);
}
.budget-tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.budget-tile .bt-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.2s;
}
.budget-tile.sel .bt-label {
    color: #fff;
}
.budget-tile .bt-icon {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 4px;
    transition: color 0.2s;
}
.budget-tile:hover .bt-icon {
    color: var(--red);
}
.budget-tile.sel .bt-icon {
    color: rgba(255, 255, 255, 0.8);
}

.budget-tile.custom-tile {
    border-style: dashed;
    border-color: #c8c8c8;
}
.budget-tile.custom-tile:hover,
.budget-tile.custom-tile.sel {
    border-style: solid;
}

.custom-input-wrap {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: -24px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--surface-2);
    border: 1.5px solid var(--red);
    border-radius: var(--radius-md);
    animation: slideDown 0.2s ease;
}
.custom-input-wrap.visible {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-input-wrap label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
}
.custom-input-wrap input {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    background: #fff;
}
.custom-input-wrap input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-light);
}

/* ══════════════════════════════════════════
   PAGE 3 — DETAILS
══════════════════════════════════════════ */
.sum-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 24px;
    box-sizing: border-box;
    width: 100%;
}
.sum-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.sum-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.tag {
    display: inline-flex;
    align-items: center;
    background: var(--red-light);
    color: var(--red);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(229, 32, 39, 0.2);
    line-height: 1.25;
}
.sum-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}
.sum-plan-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}
.sum-plan-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.err-banner {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(229, 32, 39, 0.05);
    border: 1px solid rgba(229, 32, 39, 0.2);
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    margin-bottom: 8px;
}
.fc,
.fc-full {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.fc-full {
    grid-column: 1 / -1;
}

.fc label,
.fc-full label {
    font-size: 16.5px;
    font-weight: 600;
    color: #000000;
}
.fc label .req,
.fc-full label .req {
    color: var(--red);
    margin-left: 2px;
}

.fc input,
.fc-full input,
.fc textarea,
.fc-full textarea,
.fc select,
.fc-full select {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    width: 100%;
}
.fc input::placeholder,
.fc-full input::placeholder,
.fc textarea::placeholder,
.fc-full textarea::placeholder {
    color: #c4c8d0;
}
.fc input:focus,
.fc-full input:focus,
.fc textarea:focus,
.fc-full textarea:focus,
.fc select:focus,
.fc-full select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-light);
}
.fc input.err,
.fc-full input.err,
.fc textarea.err,
.fc-full textarea.err {
    border-color: var(--red);
    background: rgba(229, 32, 39, 0.02);
}
.fc-full textarea {
    resize: vertical;
    min-height: 120px;
}

.phone-r {
    display: flex;
    gap: 10px;
}
.dial {
    width: 135px !important;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px !important;
    cursor: pointer;
}
.em {
    display: none;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--red);
    margin-top: 1px;
}

/* ══════════════════════════════════════════
   NAV ROW
══════════════════════════════════════════ */
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.sel-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.sel-count strong {
    color: var(--red);
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #d0d0d0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: not-allowed;
    transition: all 0.22s ease;
    letter-spacing: 0.01em;
}
.btn-next:not([disabled]) {
    background: var(--red);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(229, 32, 39, 0.28);
}
.btn-next:not([disabled]):hover {
    background: #c91a20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 32, 39, 0.38);
}
.btn-next:not([disabled]):active {
    transform: translateY(0);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 24px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s;
}
.btn-back:hover {
    border-color: var(--ink-3);
    color: var(--ink-3);
}

/* ══════════════════════════════════════════
   SUCCESS
══════════════════════════════════════════ */
.success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
    text-align: center;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.success-icon i {
    font-size: 40px;
    color: var(--red);
}
.success-title {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.success-sub {
    font-size: 15px;
    color: var(--muted);
    font-weight: 400;
    max-width: 440px;
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .wrap {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 992px) {
    .wrap {
        padding: 0 20px;
        margin: 32px auto 80px;
    }

    #content {
        padding: 40px 32px;
    }

    .budget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wrap {
        margin: 18px auto 60px;
        padding: 0 12px;
    }

    #content {
        padding: 24px 18px;
        border-radius: 18px;
    }

    #stepper {
        padding: 12px 10px;
        gap: 0;
        justify-content: center;
    }

    .step {
        padding: 8px 12px;
        gap: 6px;
    }

    .step-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-lbl {
        font-size: 11px;
    }

    .step:not(:last-child)::after {
        width: 18px;
    }

    .svc-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fgrid {
        grid-template-columns: 1fr;
    }

    .phone-r {
        flex-direction: column;
    }

    .dial {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .wrap {
        margin: 12px auto 40px;
        padding: 0 8px;
    }

    #content {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .stag {
        font-size: 9.5px;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    .ptitle {
        font-size: 22px !important;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .psub {
        font-size: 13px !important;
        margin-bottom: 18px;
    }

    .budget-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .svc-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .svc-card {
        padding: 15px 8px 12px;
        border-radius: 12px;
    }

    .svc-card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 10px;
    }

    .svc-card-label {
        font-size: 12px;
    }

    .cat-tabs {
        padding: 4px;
        gap: 5px;
        margin-bottom: 18px;
    }

    .cat-tab {
        padding: 7px 12px;
        font-size: 12px;
    }

    .cat-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .cat-header-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .cat-header-label {
        font-size: 10px;
    }

    .cat-header-full {
        font-size: 15px;
        word-break: break-word;
    }

    .cat-header-count {
        font-size: 11px;
        padding: 3px 7px;
        background: #f1f5f9;
        border-radius: 6px;
    }

    .nav-row {
        flex-direction: column;
        gap: 10px;
    }

    .btn-next,
    .btn-back {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .sum-card {
        padding: 14px 12px;
        margin-bottom: 20px;
    }

    .tag {
        font-size: 11px;
        padding: 3px 9px;
    }

    .sum-plan {
        font-size: 12px;
        padding-top: 8px;
    }

    .sum-plan-val {
        font-size: 12px;
    }

    .step-lbl {
        display: none;
    }

    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 380px) {
    .wrap {
        padding: 0 4px;
    }

    #content {
        padding: 18px 10px;
        border-radius: 14px;
    }

    .svc-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .svc-card {
        padding: 13px 6px 10px;
    }

    .svc-card-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .svc-card-label {
        font-size: 11px;
    }

    .budget-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .budget-tile {
        padding: 12px 6px;
    }

    .budget-tile .bt-label {
        font-size: 11.5px;
    }

    .cat-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .ptitle {
        font-size: 20px !important;
    }
}
.svc-card-icon i {
    font-size: 32px;
}

/* Brand colors for service cards */
.svc-card .fa-google {
    color: #4285f4;
}

.svc-card .fa-openai {
    color: #111;
}

.svc-card .fa-microsoft {
    color: #00a4ef;
}

.svc-card .fa-meta {
    color: #0668e1;
}

.svc-card .fa-instagram {
    color: #e4405f;
}

.svc-card .fa-facebook {
    color: #1877f2;
}

.svc-card .fa-linkedin {
    color: #0a66c2;
}

.svc-card .fa-x-twitter {
    color: #000;
}

.svc-card .fa-youtube {
    color: #ff0000;
}

.svc-card .fa-whatsapp {
    color: #25d366;
}

.svc-card .fa-tiktok {
    color: #000;
}

.svc-card .fa-pinterest {
    color: #e60023;
}

.svc-card .fa-reddit {
    color: #ff4500;
}

.svc-card .fa-medium {
    color: #000;
}

/* Ensure global floating whatsapp widget icon is crisp white */
.whatsapp-float,
.whatsapp-float i,
.whatsapp-float .fa-whatsapp {
    color: #ffffff !important;
}

/* ── Premium Unified Phone Group ── */
.premium-phone-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.premium-phone-wrap:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-light);
}

/* Country Picker Custom Trigger */
.premium-country-picker {
    position: relative;
    flex-shrink: 0;
}
.premium-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 12px 14px;
    background: #f8fafc;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}
.premium-country-btn:hover {
    background: #f1f5f9;
}
.country-flag-icon {
    font-size: 16px;
    line-height: 1;
}
.country-dial-code {
    font-family: inherit;
    letter-spacing: 0.2px;
}
.country-chevron {
    color: #64748b;
    transition: transform 0.2s;
}
.premium-country-picker.open .country-chevron {
    transform: rotate(180deg);
}

/* Floating Custom Country Dropdown Menu */
.premium-country-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: dropFade 0.2s ease;
}
@media (max-width: 480px) {
    .premium-country-menu {
        width: 100%;
        right: 0;
    }
}
.premium-phone-wrap.open .premium-country-menu {
    display: block;
}
.country-menu-search-wrap {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.country-menu-search {
    width: 100%;
    padding: 7px 10px;
    font-size: 12.5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    outline: none;
}
.country-menu-search:focus {
    border-color: var(--red);
}
.country-options-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
}
.country-options-scroll::-webkit-scrollbar {
    width: 6px;
}
.country-options-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}
.country-option:hover,
.country-option.active {
    background: #fef2f2;
    color: #1e293b;
    font-weight: 600;
}
.opt-flag {
    font-size: 16px;
    flex-shrink: 0;
}
.opt-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.opt-code {
    font-weight: 700;
    color: var(--red);
    font-size: 12px;
    flex-shrink: 0;
}

/* Phone text input */
.premium-phone-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.premium-phone-input::placeholder {
    color: #999999;
}

/* ── Anti-Bot Math Captcha Box ── */
.math-captcha-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.25s ease;
}
.math-captcha-card:focus-within {
    border-color: var(--red);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--red-light);
}
.math-question-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.math-badge {
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.math-expression {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.math-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.math-answer-field {
    width: 75px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 10px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}
.math-answer-field:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-light);
}
.math-reload-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #475569;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.math-reload-btn:hover {
    background: #f1f5f9;
    color: var(--red);
    border-color: var(--red);
}

.is-invalid-field {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 12px;
        margin: 24px auto 60px;
    }
    #content {
        padding: 28px 18px;
        border-radius: 16px;
    }
    .phone-unified-select {
        width: 110px;
        font-size: 12px;
        padding: 10px 4px;
    }
    .phone-unified-input {
        padding: 10px 10px;
        font-size: 14px;
    }
    .math-captcha-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .math-input-group {
        width: 100%;
    }
    .math-answer-field {
        flex: 1;
    }
}
