/*
 * Form 230 redirect page styles
 * Futuristic HowAbout.Tech redesign — accessible, mobile-first, no external UI deps
 */

:root {
    --rf-text: #eef3ff;
    --rf-text-strong: #ffffff;
    --rf-text-muted: #aeb9d4;
    --rf-text-dark: #172033;
    --rf-text-dark-muted: #64708a;
    --rf-border: rgba(255, 255, 255, .16);
    --rf-border-strong: rgba(103, 214, 190, .42);
    --rf-border-focus: #67D6BE;
    --rf-bg-page: #070914;
    --rf-bg-card: rgba(255, 255, 255, .92);
    --rf-bg-card-strong: #ffffff;
    --rf-bg-input: #fbfcff;
    --rf-accent: #ff3038;
    --rf-accent-2: #67D6BE;
    --rf-accent-3: #6f7cff;
    --rf-error: #ff3b55;
    --rf-success: #03c13f;
    --rf-radius: 14px;
    --rf-radius-lg: 24px;
    --rf-radius-xl: 34px;
    --rf-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    --rf-shadow-card: 0 22px 60px rgba(10, 25, 52, .14);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--rf-text);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 48, 56, .24), transparent 32rem),
        radial-gradient(circle at 86% 12%, rgba(103, 214, 190, .22), transparent 30rem),
        radial-gradient(circle at 52% 80%, rgba(111, 124, 255, .18), transparent 34rem),
        linear-gradient(135deg, #070914 0%, #0a1934 52%, #05060d 100%);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

body::after {
    content: "";
    position: fixed;
    width: 42rem;
    height: 42rem;
    right: -18rem;
    top: 10rem;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid rgba(103, 214, 190, .18);
    box-shadow: inset 0 0 80px rgba(103, 214, 190, .06), 0 0 80px rgba(255, 48, 56, .08);
}

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

/* ─── Header / Hero ──────────────────────────────────────── */

.rf-header {
    position: relative;
    z-index: 1;
    padding: 28px 18px 36px;
}

.rf-header__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.rf-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rf-text-strong);
    text-decoration: none;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.rf-header__brand:hover { border-color: rgba(103,214,190,.42); }

.rf-header__logo {
    height: 36px;
    width: 36px;
    border-radius: 10px;
}

.rf-header__brand-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.rf-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    padding: clamp(46px, 9vw, 92px) 0 28px;
}

.rf-eyebrow,
.rf-form-intro__kicker {
    margin: 0 0 14px;
    color: var(--rf-accent-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
}

.rf-header__title {
    font-size: clamp(44px, 9vw, 82px);
    line-height: .92;
    font-weight: 850;
    margin: 0 0 18px 0;
    color: var(--rf-text-strong);
    letter-spacing: -.065em;
    max-width: 780px;
}

.rf-header__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.55;
    color: var(--rf-text-muted);
    margin: 0;
    max-width: 760px;
    font-weight: 450;
}

.rf-hero__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.rf-hero__steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--rf-text);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(14px);
    font-size: 15px;
}

.rf-hero__steps strong {
    color: var(--rf-accent-2);
    font-size: 14px;
    letter-spacing: .1em;
}

.rf-hero__visual {
    position: relative;
    min-height: 530px;
    display: grid;
    place-items: center;
}

.rf-orbit {
    position: relative;
    width: min(360px, 78vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(103,214,190,.2) 0 18%, transparent 19%),
        radial-gradient(circle at center, rgba(255,255,255,.08) 0 43%, transparent 44%);
}

.rf-orbit::before {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,48,56,.95), rgba(103,214,190,.8));
    filter: blur(28px);
    opacity: .55;
}

.rf-orbit__core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 142px;
    height: 142px;
    border-radius: 42px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -.05em;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 28px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}

.rf-orbit__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
}

.rf-orbit__ring--one { transform: rotate(14deg) scaleX(.88); border-color: rgba(103,214,190,.35); }
.rf-orbit__ring--two { transform: rotate(-32deg) scaleX(.7); border-color: rgba(255,48,56,.35); }

.rf-orbit__dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 22px currentColor;
}

.rf-orbit__dot--one { top: 18%; right: 22%; color: var(--rf-accent-2); background: var(--rf-accent-2); }
.rf-orbit__dot--two { bottom: 24%; left: 15%; color: var(--rf-accent); background: var(--rf-accent); }

.rf-hero-card {
    position: absolute;
    right: 0;
    bottom: 75px;
    width: min(310px, 78vw);
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(20px);
}

.rf-hero-card span {
    display: block;
    color: var(--rf-accent-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    margin-bottom: 6px;
}

.rf-hero-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

/* ─── Main / form layout ──────────────────────────────────── */

.rf-main {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 0 16px 78px;
}

.rf-form-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: var(--rf-radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: var(--rf-shadow);
    backdrop-filter: blur(22px);
}

.rf-form-intro h2 {
    margin: 0 0 8px;
    color: var(--rf-text-strong);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1;
    letter-spacing: -.045em;
}

.rf-form-intro p:not(.rf-form-intro__kicker) {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 14px;
}

.rf-trust-grid {
    display: grid;
    gap: 10px;
}

.rf-trust-grid span {
    position: relative;
    padding: 12px 14px 12px 38px;
    border-radius: 18px;
    color: var(--rf-text);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    font-size: 13px;
    font-weight: 650;
}

.rf-trust-grid span::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rf-accent-2);
    transform: translateY(-50%);
    box-shadow: 0 0 18px rgba(103,214,190,.9);
}

.rf-form {
    display: grid;
    gap: 18px;
    counter-reset: rf-step;
}

.rf-section {
    counter-increment: rf-step;
    position: relative;
    background: var(--rf-bg-card);
    color: var(--rf-text-dark);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--rf-radius-xl);
    padding: clamp(30px, 4vw, 38px) clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px);
    box-shadow: var(--rf-shadow-card);
    margin: 0;
    overflow: hidden;
    min-inline-size: 0;
}

.rf-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--rf-accent), var(--rf-accent-2), var(--rf-accent-3));
}

.rf-section::after {
    content: "";
    position: absolute;
    right: -76px;
    top: -76px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103,214,190,.18), transparent 68%);
    pointer-events: none;
}

.rf-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    padding: 0;
    margin: 0 0 22px 0;
    letter-spacing: -.02em;
}

legend.rf-section__title {
    float: left;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 0 24px 0;
    transform: none;
}

.rf-section > legend.rf-section__title + * {
    clear: both;
}

.rf-section__title::before {
    content: counter(rf-step, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 13px;
    color: #07111f;
    background: linear-gradient(135deg, rgba(103,214,190,.95), rgba(255,255,255,.9));
    font-size: 12px;
    letter-spacing: .08em;
    box-shadow: 0 12px 30px rgba(103,214,190,.32);
}

/* ─── Rows / grids ────────────────────────────────────────── */

.rf-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.rf-row:last-child { margin-bottom: 0; }

.rf-row--2 { grid-template-columns: 1fr; }
.rf-row--3 { grid-template-columns: 1fr; }
.rf-row--4 { grid-template-columns: 1fr 1fr; }
.rf-row--street { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .rf-row--2 { grid-template-columns: 1fr 1fr; }
    .rf-row--3 { grid-template-columns: 2fr 2fr 1fr; }
    .rf-row--4 { grid-template-columns: repeat(4, 1fr); }
    .rf-row--street { grid-template-columns: 1fr 120px; }
}

/* ─── Fields ──────────────────────────────────────────────── */

.rf-field { display: flex; flex-direction: column; min-width: 0; }
.rf-field--grow { flex: 1 1 auto; }

.rf-field label {
    font-size: 12px;
    font-weight: 800;
    color: var(--rf-text-dark);
    margin-bottom: 7px;
    letter-spacing: .01em;
}

.rf-req { color: var(--rf-error); margin-left: 2px; }

.rf-field input,
.rf-field select {
    font: inherit;
    font-size: 15px;
    color: var(--rf-text-dark);
    background: var(--rf-bg-input);
    border: 1px solid rgba(23,32,51,.13);
    border-radius: 16px;
    padding: 13px 14px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s, background-color .15s, transform .15s;
    min-height: 50px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(23,32,51,.04);
}

.rf-field input:hover,
.rf-field select:hover {
    border-color: rgba(23,32,51,.24);
}

.rf-field input:focus,
.rf-field select:focus {
    outline: none;
    border-color: var(--rf-border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(103,214,190,.18), 0 14px 32px rgba(10,25,52,.08);
}

.rf-field.rf-field--error input,
.rf-field.rf-field--error select {
    border-color: var(--rf-error);
    box-shadow: 0 0 0 4px rgba(255,59,85,.14);
}

.rf-help {
    display: block;
    font-size: 12px;
    color: var(--rf-text-dark-muted);
    margin-top: 6px;
}

/* ─── Consent checkbox ───────────────────────────────────── */

.rf-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rf-text-dark);
    padding: 16px;
    border-radius: 20px;
    background: rgba(10,25,52,.04);
    border: 1px solid rgba(10,25,52,.08);
}

.rf-check input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--rf-accent-2);
}

.rf-check.rf-field--error {
    border-color: var(--rf-error);
    background: rgba(255,59,85,.07);
}

.rf-check.rf-field--error span { color: #991b1b; }

/* ─── Signature pad ───────────────────────────────────────── */

.rf-sig {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px dashed rgba(10,25,52,.28);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.rf-sig.rf-sig--error { border-color: var(--rf-error); border-style: solid; }

.rf-sig__canvas {
    display: block;
    width: 100%;
    height: 230px;
    touch-action: none;
    cursor: crosshair;
    background:
        linear-gradient(to bottom, transparent calc(100% - 1px), rgba(10,25,52,.09) calc(100% - 1px)),
        radial-gradient(circle at 14px 14px, rgba(103,214,190,.14) 1px, transparent 1px);
    background-size: 100% 46px, 22px 22px;
}

.rf-sig__actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 12px;
    border-top: 1px solid rgba(10,25,52,.08);
    background: rgba(10,25,52,.035);
}

/* ─── Buttons ─────────────────────────────────────────────── */

.rf-btn {
    font: inherit;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s, border-color .15s, color .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1.2;
}
.rf-btn:active { transform: translateY(1px); }

.rf-btn--primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rf-accent), #fb4c64 46%, var(--rf-accent-2));
    color: #fff;
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 18px 42px rgba(255,48,56,.28), 0 12px 32px rgba(103,214,190,.16);
}

.rf-btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    transform: translateX(-120%);
    transition: transform .5s ease;
}

.rf-btn--primary:hover:not(:disabled)::before { transform: translateX(120%); }
.rf-btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 22px 54px rgba(255,48,56,.32), 0 16px 40px rgba(103,214,190,.2); }
.rf-btn--primary:disabled { opacity: .68; cursor: not-allowed; }

.rf-btn--ghost {
    background: rgba(255,255,255,.86);
    color: var(--rf-text-dark);
    border-color: rgba(10,25,52,.1);
}
.rf-btn--ghost:hover { background: #fff; border-color: rgba(103,214,190,.4); }

.rf-btn--sm { padding: 9px 15px; font-size: 13px; min-height: 38px; }

.rf-submit-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

/* ─── Messages ────────────────────────────────────────────── */

.rf-msg {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 16px 38px rgba(0,0,0,.14);
}
.rf-msg--error { background: #fff1f3; border-color: #ffc4cd; color: #991b1b; }
.rf-msg--success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

.rf-disclaimer {
    font-size: 12px;
    color: rgba(238,243,255,.72);
    margin: 2px auto 0;
    text-align: center;
    line-height: 1.55;
    max-width: 760px;
}

/* ─── Thank-you screen ───────────────────────────────────── */

.rf-thanks {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    padding: 92px 24px;
    text-align: center;
}

.rf-thanks__glow {
    position: absolute;
    inset: 72px 50% auto auto;
    width: 240px;
    height: 240px;
    transform: translateX(50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103,214,190,.32), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.rf-thanks__logo-link {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    transition: opacity .15s, transform .15s;
}
.rf-thanks__logo-link:hover { opacity: .9; transform: translateY(-1px); }

.rf-thanks__logo {
    height: clamp(64px, 12vw, 90px);
    width: auto;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 20px 52px rgba(0,0,0,.24);
}

.rf-thanks__title {
    position: relative;
    font-size: clamp(34px, 7vw, 58px);
    line-height: .96;
    margin: 0 0 18px 0;
    color: var(--rf-text-strong);
    font-weight: 850;
    letter-spacing: -.055em;
}

.rf-thanks__text {
    position: relative;
    font-size: 16px;
    color: var(--rf-text-muted);
    margin: 0 auto 34px;
    max-width: 500px;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 840px) {
    .rf-hero,
    .rf-form-intro {
        grid-template-columns: 1fr;
    }

    .rf-hero__visual {
        min-height: 300px;
    }

    .rf-hero-card {
        right: 50%;
        transform: translateX(50%);
        bottom: 0;
    }
}

@media (max-width: 640px) {
    .rf-hero__steps {
        align-items: stretch;
    }

    .rf-hero__steps > span {
        display: flex;
        justify-content: flex-start !important;
        align-items: center;
        text-align: left;
        gap: 18px;
    }

    .rf-hero__steps > span strong {
        margin: 0;
        flex: 0 0 auto;
    }
    
    .rf-hero-card {
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        box-sizing: border-box;

        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    .rf-hero-card span {
        font-size: 12px;
        letter-spacing: .18em;
    }
}

@media (max-width: 560px) {
    .rf-header { padding-top: 18px; }

    .rf-header__brand-text { display: none; }

    .rf-hero { padding-top: 34px; }

    .rf-hero__steps span {
        width: 100%;
        justify-content: space-between;
        border-radius: 18px;
    }

    .rf-form-intro,
    .rf-section {
        border-radius: 24px;
    }

    .rf-row--4 { grid-template-columns: 1fr 1fr; }

    .rf-submit-row { justify-content: stretch; }
    .rf-submit-row .rf-btn { width: 100%; }

    .rf-disclaimer { text-align: left; }
}

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