/* =========================================================
   NEXTERN — FORM CARD: multi-step + rocket stepper
   Load this AFTER your existing meeting section CSS.
   Only touches the form card (.nxt-form-card).
========================================================= */

.nxt-form-card {
    --nxt-orange: #c8511c;
    --nxt-orange-dark: #b74716;
    --nxt-card-bg: #f8f6f0;
    --nxt-error: #d9452b;
}

.nxt-form-card:hover {
    --nxt-card-bg: #15130f;
    --nxt-error: #ff7a66;
}

.nxt-form-card:focus-within {
    --nxt-card-bg: #15130f;
    --nxt-error: #ff7a66;
}

.nxt-form-card [hidden] {
    display: none !important;
}


/* =========================
   ROCKET STEPPER
========================= */

.nxt-rocket {
    position: relative;
    height: 86px;
    margin: 22px 0 6px;
}

.nxt-rocket-track,
.nxt-rocket-fill {
    position: absolute;
    left: 6%;
    top: 46px;
    height: 2px;
    border-radius: 2px;
}

.nxt-rocket-track {
    width: 88%;
    background: currentColor;
    opacity: .14;
}

.nxt-rocket-fill {
    width: 0;
    background: var(--nxt-orange);
}

.nxt-rocket-stop,
.nxt-rocket-end {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
}

.nxt-rocket-dot {
    position: absolute;
    top: 35px;
    left: 0;
    transform: translateX(-50%);

    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid rgba(128, 122, 112, .45);
    background: var(--nxt-card-bg);

    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #8a847a;

    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.nxt-rocket-dot svg {
    display: none;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--nxt-card-bg);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nxt-rocket-label {
    position: absolute;
    top: 66px;
    left: 0;
    transform: translateX(-50%);

    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a847a;

    transition: color .3s ease;
}

.nxt-rocket-stop.is-current .nxt-rocket-dot {
    background: var(--nxt-orange);
    border-color: var(--nxt-orange);
    color: #fff;
    animation: nxt-rocket-pulse 1.5s ease-out infinite;
}

.nxt-rocket-stop.is-done .nxt-rocket-dot {
    background: currentColor;
    border-color: currentColor;
}

.nxt-rocket-stop.is-done .nxt-rocket-dot b {
    display: none;
}

.nxt-rocket-stop.is-done .nxt-rocket-dot svg {
    display: block;
    animation: nxt-rocket-pop .3s cubic-bezier(.2, .8, .2, 1) both;
}

.nxt-rocket-stop.is-current .nxt-rocket-label,
.nxt-rocket-stop.is-done .nxt-rocket-label,
.nxt-rocket-end .nxt-rocket-label {
    color: currentColor;
}


/* Finish flag */

.nxt-rocket-flag {
    position: absolute;
    left: -1px;
    top: 14px;
    width: 2px;
    height: 33px;
    background: currentColor;
}

.nxt-rocket-flag:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 17px solid var(--nxt-orange);
    transform-origin: left center;
    animation: nxt-rocket-flag 1.2s ease-in-out infinite;
}

.nxt-rocket-spark {
    position: absolute;
    left: 0;
    top: 26px;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--nxt-orange);
    opacity: 0;
}

.nxt-form-card.is-launched .nxt-rocket-spark {
    animation: nxt-rocket-burst .8s .55s cubic-bezier(.2, .8, .2, 1) both;
}


/* Ship */

.nxt-rocket-ship {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 0;
    width: 42px;
    height: 28px;
    margin-left: -24px;
    transition: left .9s cubic-bezier(.45, 0, .2, 1), transform .7s ease-in, opacity .7s ease-in;
}

.nxt-rocket-body {
    position: relative;
    animation: nxt-rocket-hover 1.6s ease-in-out infinite;
}

.nxt-rocket-body svg {
    display: block;
    overflow: visible;
}

.nxt-rocket-hull { fill: currentColor; }
.nxt-rocket-fin,
.nxt-rocket-window { fill: var(--nxt-orange); }

.nxt-rocket-flame {
    fill: #f7a66f;
    transform-box: fill-box;
    transform-origin: right center;
    animation: nxt-rocket-flame .12s ease-in-out infinite alternate;
}

.nxt-rocket-smoke {
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
}

/* while moving */
.nxt-rocket-ship.is-flying .nxt-rocket-flame { animation-name: nxt-rocket-flame-big; }
.nxt-rocket-ship.is-flying .nxt-rocket-smoke { animation: nxt-rocket-smoke .6s ease-out infinite; }
.nxt-rocket-ship.is-flying .nxt-rocket-smoke:nth-child(2) { animation-delay: .2s; }
.nxt-rocket-ship.is-flying .nxt-rocket-smoke:nth-child(3) { animation-delay: .4s; }
.nxt-rocket-ship.is-reverse .nxt-rocket-body { transform: scaleX(-1); animation: none; }

/* final step submitted — engines revving */
.nxt-form-card.is-sending .nxt-rocket-body { animation: nxt-rocket-shake .09s linear infinite; }
.nxt-form-card.is-sending .nxt-rocket-flame { animation-name: nxt-rocket-flame-big; }

/* launched */
.nxt-rocket-ship.is-gone {
    transform: translate(70px, -46px) rotate(-28deg) scale(.7);
    opacity: 0;
}


/* =========================
   STEP KICKER
========================= */

.nxt-step-kicker {
    margin: 4px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(21, 19, 15, .12);

    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--nxt-orange);
}

.nxt-form-card:hover .nxt-step-kicker {
    border-top-color: rgba(255, 255, 255, .12);
}


/* =========================
   STEPS (keep your 2-column grid)
========================= */

.nxt-form {
    margin-top: 18px;
}

.nxt-fstep {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
}

.nxt-fstep.is-active {
    display: grid;
    animation: nxt-step-in .4s cubic-bezier(.2, .8, .2, 1) both;
}

.nxt-optional {
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
    opacity: .7;
}


/* Group labels (chips / revenue) — same look as your labels */

.nxt-group-label {
    margin: 0 0 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #716d64;
    transition: color .35s ease;
}

.nxt-form-card:hover .nxt-group-label {
    color: #fff;
}


/* Errors */

.nxt-error {
    display: none;
    margin-top: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: var(--nxt-error);
}

.nxt-field.is-invalid .nxt-error {
    display: block;
    animation: nxt-step-in .25s ease-out both;
}

.nxt-field.is-invalid input,
.nxt-field.is-invalid select,
.nxt-field.is-invalid textarea {
    border-color: var(--nxt-error);
}

.nxt-field.nxt-shake {
    animation: nxt-shake .4s ease-in-out;
}


/* Service chips */

.nxt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nxt-form .nxt-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    min-height: 38px;
    padding: 0 14px;

    border: 1px solid rgba(128, 122, 112, .4);
    border-radius: 999px;

    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;

    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

.nxt-form .nxt-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.nxt-form .nxt-chip i {
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    color: var(--nxt-orange);
    transition: transform .25s ease, color .2s ease;
}

.nxt-form .nxt-chip:hover {
    border-color: var(--nxt-orange);
}

.nxt-form .nxt-chip:active {
    transform: scale(.96);
}

.nxt-form .nxt-chip.is-checked {
    background: var(--nxt-orange);
    border-color: var(--nxt-orange);
    color: #fff;
}

.nxt-form .nxt-chip.is-checked i {
    color: #fff;
    transform: rotate(45deg);
}

.nxt-form .nxt-chip:has(input:focus-visible) {
    outline: 2px solid var(--nxt-orange);
    outline-offset: 3px;
}


/* Revenue cards */

.nxt-revenue {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nxt-form .nxt-rev {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 46px;
    padding: 0 14px;

    border: 1px solid rgba(128, 122, 112, .4);
    border-radius: 9px;

    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;

    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.nxt-form .nxt-rev input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.nxt-radio {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(128, 122, 112, .7);
    border-radius: 50%;
}

.nxt-radio:after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nxt-orange);
    transform: scale(0);
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

.nxt-form .nxt-rev:hover {
    border-color: rgba(200, 81, 28, .6);
}

.nxt-form .nxt-rev.is-checked {
    border-color: var(--nxt-orange);
    background: rgba(200, 81, 28, .08);
}

.nxt-form .nxt-rev.is-checked .nxt-radio {
    border-color: var(--nxt-orange);
}

.nxt-form .nxt-rev.is-checked .nxt-radio:after {
    transform: scale(1);
}

.nxt-form .nxt-rev:has(input:focus-visible) {
    outline: 2px solid var(--nxt-orange);
    outline-offset: 3px;
}


/* =========================
   BUTTONS
========================= */

.nxt-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row-reverse;   /* Back shows on the left, Submit stays first in the code */
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.nxt-actions .nxt-submit {
    flex: 1;
    gap: 10px;
}

.nxt-submit-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.nxt-submit:hover .nxt-submit-arrow {
    transform: translateX(4px);
}

.nxt-submit.is-final:hover .nxt-submit-arrow {
    transform: translate(3px, -3px);
}

.nxt-form .nxt-back,
.nxt-form .nxt-back:hover {
    grid-column: auto;
    min-height: auto;
    padding: 12px 4px;

    background: transparent;
    box-shadow: none;
    transform: none;
    color: inherit;
    opacity: .65;

    font-size: 10px;
    letter-spacing: .14em;
}

.nxt-form .nxt-back:hover {
    opacity: 1;
}

/* Post-submission confirmation */
.nxt-form-card.is-submitted,
.nxt-form-card.is-submitted:hover {
    display: flex;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    padding: 42px 28px;
    transform: none;
    border-color: rgba(244, 240, 232, .08);
    background: #0E0F12;
    color: #F4F0E8;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .24);
}
.nxt-form-card.is-submitted::before { display: none; }
.nxt-form-card.is-submitted .nxt-form-head,
.nxt-form-card.is-submitted .nxt-rocket,
.nxt-form-card.is-submitted .nxt-step-kicker,
.nxt-form-card.is-submitted .nxt-form,
.nxt-form-card.is-submitted #meetingStatus { display: none; }
.nxt-form-card .nxt-success[hidden] { display: none !important; }
.nxt-form-card .nxt-success:not([hidden]) {
    display: flex;
    width: 100%;
    min-height: 410px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: nxt-success-in .55s cubic-bezier(.2, .8, .2, 1) both;
}
.nxt-success-boom {
    margin: 0 0 14px;
    color: #E0561F;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}
.nxt-success-check { width: 82px; height: 82px; overflow: visible; }
.nxt-success-ring { stroke-dasharray: 246; stroke-dashoffset: 246; }
.nxt-success-tick { stroke-dasharray: 54; stroke-dashoffset: 54; }
.nxt-success:not([hidden]) .nxt-success-ring { animation: nxt-success-draw .7s ease-out .12s forwards; }
.nxt-success:not([hidden]) .nxt-success-tick { animation: nxt-success-draw .38s ease-out .68s forwards; }
.nxt-success h2 {
    margin: 20px 0 0;
    color: #F4F0E8;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -.055em;
}
.nxt-success-copy { max-width: 380px; margin: 14px 0 25px; color: #A3A09A; font-size: 14px; line-height: 1.6; }
.nxt-form-card .nxt-success-replay {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #34322F;
    border-radius: 999px;
    background: transparent;
    color: #D2CEC7;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nxt-form-card .nxt-success-replay:hover { border-color: #E0561F; background: rgba(224, 86, 31, .1); color: #F4F0E8; }
@keyframes nxt-success-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes nxt-success-draw { to { stroke-dashoffset: 0; } }


/* =========================
   KEYFRAMES
========================= */

@keyframes nxt-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nxt-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes nxt-rocket-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 81, 28, .5); } 100% { box-shadow: 0 0 0 10px rgba(200, 81, 28, 0); } }
@keyframes nxt-rocket-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes nxt-rocket-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes nxt-rocket-flame { from { transform: scaleX(.7); opacity: .75; } to { transform: scaleX(1.1); opacity: 1; } }
@keyframes nxt-rocket-flame-big { from { transform: scaleX(1.2); opacity: .85; } to { transform: scaleX(1.9); opacity: 1; } }
@keyframes nxt-rocket-shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, -1px); } 100% { transform: translate(1px, 1px); } }
@keyframes nxt-rocket-smoke { 0% { transform: translate(0, 0) scale(.5); opacity: .35; } 100% { transform: translate(-22px, 2px) scale(1.4); opacity: 0; } }
@keyframes nxt-rocket-flag { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-10deg); } }
@keyframes nxt-rocket-burst { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
    .nxt-form-card.is-submitted { min-height: 420px; padding: 28px 20px; }
    .nxt-form-card .nxt-success:not([hidden]) { min-height: 350px; }
    .nxt-rocket-label {
        font-size: 8px;
        letter-spacing: .06em;
    }

    .nxt-fstep {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nxt-revenue {
        grid-template-columns: 1fr;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    .nxt-form-card *,
    .nxt-form-card *:before,
    .nxt-form-card *:after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

