/* =====================================================================
   AirUs — Apply For Management form
   ---------------------------------------------------------------------
   Everything is scoped under `.airus-afm-wrap` so that:
     • the form matches the AirUs site design system (Inter, the brand
       orange #FF7300, hairline borders, pill buttons, soft cards); and
     • theme / Elementor / WordPress defaults CANNOT override it. A scoped
       selector like `.airus-afm-wrap .airus-afm-step h2` has specificity
       (0,2,1), which beats Elementor's `.elementor-kit-N h2` (0,1,1) and
       theme element selectors. The reset layer below additionally
       neutralises inherited/themed properties on the form's own elements
       (the plugin owns 100% of this DOM, so the `!important`s there are
       safe and intentional — they stop default Elementor/WP styling from
       creeping in).
   All original class names are preserved (the JS hooks .active / .visible
   / .success / .error / [data-step] and sets the progress width inline).
   ===================================================================== */

/* ── Design tokens (scoped to the wrapper so they never leak) ───────── */
.airus-afm-wrap {
    --afm-o:       #FF7300;            /* brand orange */
    --afm-o-dark:  #e56700;            /* orange hover */
    --afm-o-06:    rgba(255,115,0,.06);
    --afm-o-16:    rgba(255,115,0,.16);
    --afm-ink:     #0a0a0a;            /* primary text */
    --afm-ink-2:   #1a1a1a;            /* dark buttons */
    --afm-muted:   #555;               /* secondary text */
    --afm-faint:   #888;               /* hints */
    --afm-bg:      #ffffff;
    --afm-bg-2:    #f9f8f6;            /* subtle fills */
    --afm-rule:    rgba(0,0,0,.12);    /* control borders */
    --afm-rule-soft: rgba(0,0,0,.07);  /* hairlines */
    --afm-radius:  16px;
    --afm-radius-lg: 22px;
    --afm-font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --afm-ease:    cubic-bezier(.2,.7,.3,1);

    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
    font-family: var(--afm-font);
    color: var(--afm-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* The card never exceeds its wrapper (overflow guard for narrow containers) */
.airus-afm-wrap .airus-afm-form { max-width: 100%; }

/* ── Reset / de-Elementor — neutralise theme + Elementor-kit defaults on
   OUR elements only. Scoped under `.airus-afm-wrap`, so it can't affect the
   rest of the page. ─────────────────────────────────────────────────── */
.airus-afm-wrap *,
.airus-afm-wrap *::before,
.airus-afm-wrap *::after {
    box-sizing: border-box;
}

.airus-afm-wrap h2,
.airus-afm-wrap p,
.airus-afm-wrap span,
.airus-afm-wrap a,
.airus-afm-wrap strong,
.airus-afm-wrap small,
.airus-afm-wrap em,
.airus-afm-wrap label,
.airus-afm-wrap input,
.airus-afm-wrap select,
.airus-afm-wrap textarea,
.airus-afm-wrap button {
    font-family: var(--afm-font) !important;   /* stop theme/Elementor fonts */
    letter-spacing: normal;
    text-transform: none !important;           /* Elementor / themes often uppercase */
}

/* Form controls + buttons: strip native + theme chrome so our look is the
   only one that shows. */
.airus-afm-wrap input,
.airus-afm-wrap select,
.airus-afm-wrap textarea,
.airus-afm-wrap button {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0;
    line-height: 1.4;
    max-width: 100%;
    box-shadow: none;
    background-image: none;
    color: var(--afm-ink);
}
.airus-afm-wrap button { background: none; }
.airus-afm-wrap a { box-shadow: none !important; text-decoration: none; }

/* ── Card shell ────────────────────────────────────────────────────── */
.airus-afm-wrap .airus-afm-form {
    background: var(--afm-bg);
    border: 1px solid var(--afm-rule-soft);
    border-radius: var(--afm-radius-lg);
    padding: 36px;
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

/* ── Progress ──────────────────────────────────────────────────────── */
.airus-afm-wrap .airus-afm-progress { margin-bottom: 30px; }

.airus-afm-wrap .airus-afm-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--afm-bg-2);
    border: 1px solid var(--afm-rule-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.airus-afm-wrap .airus-afm-progress-bar span {
    display: block;
    height: 100%;
    width: 11.111%;                     /* JS overrides via inline width */
    background: var(--afm-o);           /* brand-orange fill */
    border-radius: 999px;
    transition: width .3s var(--afm-ease);
}
.airus-afm-wrap .airus-afm-progress-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase !important;   /* small label, intentional caps */
    color: var(--afm-faint);
}

/* ── Steps ─────────────────────────────────────────────────────────── */
.airus-afm-wrap .airus-afm-step { display: none; }
.airus-afm-wrap .airus-afm-step.active { display: block; }

.airus-afm-wrap .airus-afm-step h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--afm-ink);
}
.airus-afm-wrap .airus-afm-intro {
    margin: 0 0 26px;
    font-size: 15px;
    font-weight: 300;
    color: var(--afm-muted);
}

/* ── Fields ────────────────────────────────────────────────────────── */
.airus-afm-wrap .airus-afm-field { margin-bottom: 24px; }

.airus-afm-wrap .airus-afm-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 9px;
    color: var(--afm-ink);
}
.airus-afm-wrap .airus-afm-field label span { color: var(--afm-o); }   /* required mark */

.airus-afm-wrap .airus-afm-field input[type="text"],
.airus-afm-wrap .airus-afm-field input[type="email"],
.airus-afm-wrap .airus-afm-field input[type="url"],
.airus-afm-wrap .airus-afm-field input[type="tel"],
.airus-afm-wrap .airus-afm-field input[type="number"],
.airus-afm-wrap .airus-afm-field textarea,
.airus-afm-wrap .airus-afm-field select {
    width: 100%;
    border: 1px solid var(--afm-rule);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--afm-ink);
    background: var(--afm-bg);
    transition: border-color .18s var(--afm-ease), box-shadow .18s var(--afm-ease);
}
.airus-afm-wrap .airus-afm-field textarea { resize: vertical; min-height: 120px; }

.airus-afm-wrap .airus-afm-field input::placeholder,
.airus-afm-wrap .airus-afm-field textarea::placeholder { color: var(--afm-faint); }

/* Custom caret for selects (we stripped the native appearance) */
.airus-afm-wrap .airus-afm-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* Focus — branded ring, replaces the theme's */
.airus-afm-wrap .airus-afm-field input:focus,
.airus-afm-wrap .airus-afm-field textarea:focus,
.airus-afm-wrap .airus-afm-field select:focus {
    outline: none;
    border-color: var(--afm-o);
    box-shadow: 0 0 0 3px var(--afm-o-16);
}

/* ── Layout helpers ────────────────────────────────────────────────────
   NOTE: tracks use minmax(0, 1fr) — NOT 1fr (= minmax(auto,1fr)). The `auto`
   minimum refuses to shrink below the items' content min-size, which makes the
   grid overflow a narrow container (e.g. an Elementor column). minmax(0,1fr)
   lets the tracks shrink, so the grid always fits its container. Combined with
   min-width:0 on the items. */
.airus-afm-wrap .airus-afm-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}
.airus-afm-wrap .airus-card-grid,
.airus-afm-wrap .airus-package-grid,
.airus-afm-wrap .airus-option-grid {
    display: grid;
    gap: 12px;
}
.airus-afm-wrap .airus-card-grid    { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.airus-afm-wrap .airus-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.airus-afm-wrap .airus-option-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Let grid/flex items shrink instead of forcing the track wider (overflow guard) */
.airus-afm-wrap .airus-card-grid > *,
.airus-afm-wrap .airus-package-grid > *,
.airus-afm-wrap .airus-option-grid > *,
.airus-afm-wrap .airus-afm-two-col > * { min-width: 0; }
.airus-afm-wrap .airus-pkg-tagline,
.airus-afm-wrap .airus-pkg-feat,
.airus-afm-wrap .airus-pkg-foot { min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }

/* ── Selectable cards / option buttons ─────────────────────────────── */
.airus-afm-wrap .airus-select-card,
.airus-afm-wrap .airus-package-grid button,
.airus-afm-wrap .airus-option-row button,
.airus-afm-wrap .airus-option-grid button {
    border: 1px solid var(--afm-rule);
    background: var(--afm-bg);
    border-radius: var(--afm-radius);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    font: inherit;
    font-weight: 600;
    color: var(--afm-ink);
    transition: border-color .18s var(--afm-ease), background-color .18s var(--afm-ease),
                color .18s var(--afm-ease), transform .18s var(--afm-ease), box-shadow .18s var(--afm-ease);
}

/* Hover — small single-label cards get the full orange wash (white text).
   The richer PACKAGE cards get only a subtle highlight (below) so hover is
   never mistaken for the selected state; full orange is reserved for .active. */
.airus-afm-wrap .airus-select-card:hover,
.airus-afm-wrap .airus-option-row button:hover,
.airus-afm-wrap .airus-option-grid button:hover {
    border-color: var(--afm-o);
    background: var(--afm-o);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--afm-o-16);
}

/* Package cards — subtle hover (text stays dark; matches the AirUs hero cards) */
.airus-afm-wrap .airus-package-grid button:hover {
    border-color: var(--afm-o);
    background: var(--afm-o-06);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--afm-o-16);
}

/* Selected (JS adds .active) */
.airus-afm-wrap .airus-select-card.active,
.airus-afm-wrap .airus-package-grid button.active,
.airus-afm-wrap .airus-option-row button.active,
.airus-afm-wrap .airus-option-grid button.active {
    border-color: var(--afm-o);
    background: var(--afm-o);
    color: #fff;
}
.airus-afm-wrap .airus-select-card.active span,
.airus-afm-wrap .airus-package-grid button.active small,
.airus-afm-wrap .airus-package-grid button.active a { color: #fff; }

.airus-afm-wrap .airus-select-card span {
    display: block;
    font-size: 30px;
    margin-bottom: 8px;
}

/* Package cards (richer content, left-aligned) */
.airus-afm-wrap .airus-package-grid button { text-align: left; }
.airus-afm-wrap .airus-package-grid button strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.airus-afm-wrap .airus-package-grid button small {
    display: block;
    color: var(--afm-muted);
    font-weight: 400;
    margin-bottom: 10px;
}
.airus-afm-wrap .airus-package-grid button.active small { color: rgba(255,255,255,.85); }
.airus-afm-wrap .airus-package-grid button a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    color: var(--afm-o);
    text-decoration: underline;
}

/* Package breakdown — mirrors the AirUs Pricing-hero cards (orange % fee, orange
   check-circle features, divider, "Start-Up Fee" foot), adapted to the light form
   card. Everything flips to white on hover / when selected (.active). */
.airus-afm-wrap .airus-package-grid button { display: flex; flex-direction: column; }

.airus-afm-wrap .airus-pkg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.airus-afm-wrap .airus-pkg-head strong { min-width: 0; margin-bottom: 0; }

/* Tagline sits on its own full-width line BELOW the name/fee row, so it never
   crowds the "+ VAT" of the fee block. (Specificity beats the generic button small.) */
.airus-afm-wrap .airus-package-grid .airus-pkg-tagline {
    display: block;
    margin: 8px 0 0;
    color: var(--afm-muted);
    font-weight: 400;
}

.airus-afm-wrap .airus-pkg-fee { display: block; text-align: right; flex-shrink: 0; padding-left: 8px; }
.airus-afm-wrap .airus-pkg-pct {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--afm-o);
}
.airus-afm-wrap .airus-pkg-vat {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--afm-faint);
    margin-top: 3px;
}

.airus-afm-wrap .airus-pkg-divider {
    display: block;
    height: 1px;
    background: var(--afm-o-16);
    margin: 16px 0;
}

.airus-afm-wrap .airus-pkg-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.airus-afm-wrap .airus-pkg-feat {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1.4;
    color: var(--afm-muted);
}
.airus-afm-wrap .airus-pkg-feat::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--afm-o-06);
    border: 1.5px solid var(--afm-o-16);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' fill='none' stroke='%23FF7300' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.airus-afm-wrap .airus-pkg-foot {
    display: block;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--afm-o-16);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--afm-faint);
}
.airus-afm-wrap .airus-package-grid .airus-pkg-foot strong {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--afm-muted);
}

/* Selected (.active) — flip the whole breakdown to white on the orange card.
   (Hover stays subtle and dark — see the package hover rule above.) */
.airus-afm-wrap .airus-package-grid button.active .airus-pkg-pct,
.airus-afm-wrap .airus-package-grid button.active .airus-pkg-vat,
.airus-afm-wrap .airus-package-grid button.active .airus-pkg-feat,
.airus-afm-wrap .airus-package-grid button.active .airus-pkg-foot,
.airus-afm-wrap .airus-package-grid button.active .airus-pkg-foot strong { color: #fff; }

.airus-afm-wrap .airus-package-grid button.active .airus-pkg-divider { background: rgba(255,255,255,.28); }
.airus-afm-wrap .airus-package-grid button.active .airus-pkg-foot { border-top-color: rgba(255,255,255,.28); }

.airus-afm-wrap .airus-package-grid button.active .airus-pkg-feat::before {
    background-color: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Option row (chips) */
.airus-afm-wrap .airus-option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.airus-afm-wrap .airus-option-row button { min-width: 140px; }

/* ── Checkbox / declaration cards ──────────────────────────────────── */
.airus-afm-wrap .airus-checkbox-list label {
    display: block;
    border: 1px solid var(--afm-rule);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .18s var(--afm-ease), background-color .18s var(--afm-ease);
}
.airus-afm-wrap .airus-checkbox-list label:hover { border-color: var(--afm-o); background: var(--afm-o-06); }

.airus-afm-wrap .airus-checkbox-list input,
.airus-afm-wrap .airus-declaration input {
    -webkit-appearance: auto !important;   /* keep real checkboxes usable */
    appearance: auto !important;
    accent-color: var(--afm-o);
    margin-right: 9px;
}

.airus-afm-wrap .airus-declaration label {
    border: 1px solid var(--afm-rule);
    border-radius: 14px;
    padding: 16px;
    line-height: 1.55;
    font-weight: 500;
}

/* ── Stepper (number +/−) ──────────────────────────────────────────── */
.airus-afm-wrap .airus-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.airus-afm-wrap .airus-stepper button {
    width: 48px;
    height: 48px;
    border: 1px solid var(--afm-rule);
    color: var(--afm-ink);
    background: var(--afm-bg);
    border-radius: 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s var(--afm-ease), background-color .18s var(--afm-ease), color .18s var(--afm-ease);
}
.airus-afm-wrap .airus-stepper button:hover,
.airus-afm-wrap .airus-stepper button:focus {
    border-color: var(--afm-o);
    background: var(--afm-o);
    color: #fff;
    outline: none;
}
.airus-afm-wrap .airus-stepper input {
    max-width: 90px;
    text-align: center;
    border: 1px solid var(--afm-rule);
    border-radius: 12px;
    padding: 14px 12px;
    font-size: 15px;
}

/* ── Phone row ─────────────────────────────────────────────────────── */
.airus-afm-wrap .airus-phone-row {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 10px;
}

/* ── Conditional reveal + help text ────────────────────────────────── */
.airus-afm-wrap .airus-conditional { display: none; }
.airus-afm-wrap .airus-conditional.visible { display: block; }

.airus-afm-wrap .airus-help-text {
    font-size: 13px;
    color: var(--afm-muted);
    margin-top: 7px;
}

/* ── Nav + submit buttons ──────────────────────────────────────────── */
.airus-afm-wrap .airus-afm-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}
.airus-afm-wrap .airus-afm-nav button,
.airus-afm-wrap .airus-submit-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: background-color .18s var(--afm-ease), color .18s var(--afm-ease),
                border-color .18s var(--afm-ease), transform .18s var(--afm-ease);
}

/* Back — quiet ghost */
.airus-afm-wrap .airus-prev {
    background: var(--afm-bg-2);
    border-color: var(--afm-rule-soft);
    color: var(--afm-ink);
}
.airus-afm-wrap .airus-prev:hover { border-color: var(--afm-rule); background: #f1efec; }

/* Next — dark (AirUs dark button) */
.airus-afm-wrap .airus-next {
    background: var(--afm-ink-2);
    color: #fff;
}
.airus-afm-wrap .airus-next:hover { background: #000; transform: translateY(-1px); }

/* Submit — brand orange (the AirUs primary CTA) */
.airus-afm-wrap .airus-submit-btn {
    background: var(--afm-o);
    color: #fff;
}
.airus-afm-wrap .airus-submit-btn:hover { background: var(--afm-o-dark); transform: translateY(-1px); }

.airus-afm-wrap .airus-afm-nav button:disabled,
.airus-afm-wrap .airus-submit-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

.airus-afm-wrap .airus-submit-box {
    text-align: center;
    padding-top: 10px;
}
.airus-afm-wrap .airus-submit-box p {
    margin-top: 14px;
    font-size: 14px;
    color: var(--afm-muted);
}

/* ── Messages ──────────────────────────────────────────────────────── */
.airus-afm-wrap .airus-afm-message {
    display: none;
    margin-top: 18px;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
}
.airus-afm-wrap .airus-afm-message.success {
    display: block;
    background: #e8f7ee;
    color: #145c2e;
}
.airus-afm-wrap .airus-afm-message.error {
    display: block;
    background: #fdecec;
    color: #8a1f1f;
}

/* ── Success screen (replaces the whole form once submitted) ─────────── */
.airus-afm-wrap .airus-afm-success { display: none; }

.airus-afm-wrap .airus-afm-form.is-submitted .airus-afm-progress,
.airus-afm-wrap .airus-afm-form.is-submitted .airus-afm-step,
.airus-afm-wrap .airus-afm-form.is-submitted .airus-afm-nav,
.airus-afm-wrap .airus-afm-form.is-submitted .airus-afm-message { display: none !important; }
.airus-afm-wrap .airus-afm-form.is-submitted .airus-afm-success { display: block; }

.airus-afm-wrap .airus-afm-success {
    text-align: center;
    padding: 36px 24px 44px;
    animation: afm-success-in .5s var(--afm-ease) both;
}
.airus-afm-wrap .airus-afm-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--afm-o-06);
    border: 1.5px solid var(--afm-o-16);
    animation: afm-success-pop .45s var(--afm-ease) .12s both;
}
.airus-afm-wrap .airus-afm-success-icon svg { width: 34px; height: 34px; color: var(--afm-o); }
.airus-afm-wrap .airus-afm-success h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--afm-ink);
}
.airus-afm-wrap .airus-afm-success-text {
    margin: 0 auto;
    max-width: 440px;
    font-size: 16px;
    font-weight: 500;
    color: var(--afm-ink-2);
}
.airus-afm-wrap .airus-afm-success-sub {
    margin: 12px auto 28px;
    max-width: 420px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--afm-muted);
}
.airus-afm-wrap .airus-afm-restart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: var(--afm-ink-2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s var(--afm-ease), transform .18s var(--afm-ease);
}
.airus-afm-wrap .airus-afm-restart:hover { background: #000; transform: translateY(-1px); }

@keyframes afm-success-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@keyframes afm-success-pop {
    0%   { opacity: 0; transform: scale(.6); }
    60%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Google Places autocomplete dropdown ────────────────────────────────
   .pac-container is injected into <body> by Google (outside .airus-afm-wrap),
   so it must be styled globally. Keep it above the form and on-brand. */
.pac-container {
    z-index: 100000 !important;          /* above Elementor/theme overlays */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    margin-top: 6px;
    overflow: hidden;
}
.pac-item { padding: 8px 14px; font-size: 13.5px; cursor: pointer; }
.pac-item:hover, .pac-item-selected { background: #f9f8f6; }
.pac-item-query { font-size: 13.5px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .airus-afm-wrap .airus-afm-form { padding: 24px; }

    .airus-afm-wrap .airus-afm-two-col,
    .airus-afm-wrap .airus-card-grid,
    .airus-afm-wrap .airus-package-grid,
    .airus-afm-wrap .airus-option-grid,
    .airus-afm-wrap .airus-phone-row {
        grid-template-columns: 1fr;
    }
    .airus-afm-wrap .airus-option-row button { width: 100%; }
    .airus-afm-wrap .airus-afm-step h2 { font-size: 24px; }
    .airus-afm-wrap .airus-afm-nav { flex-wrap: wrap; }
    .airus-afm-wrap .airus-afm-nav button,
    .airus-afm-wrap .airus-submit-btn { flex: 1 1 auto; }
}
