@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");

:root {
    --bg: #050505;
    --bg-glow: #121212;
    --panel: rgba(20, 20, 20, 0.94);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --panel-green: rgba(8, 61, 35, 0.92);
    --text: #f8f3e8;
    --muted: rgba(248, 243, 232, 0.72);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 203, 5, 0.28);
    --yellow: #ffcb05;
    --yellow-soft: rgba(255, 203, 5, 0.12);
    --green: #1dde7d;
    --green-soft: rgba(29, 222, 125, 0.12);
    --blue-soft: rgba(61, 123, 255, 0.12);
    --danger: #ff8888;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 203, 5, 0.08), transparent 26%),
        radial-gradient(circle at bottom right, rgba(29, 222, 125, 0.08), transparent 25%),
        linear-gradient(180deg, var(--bg-glow), var(--bg));
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
    pointer-events: none;
    opacity: 0.18;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.application-topbar,
.application-page {
    position: relative;
    z-index: 1;
}

.application-topbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.application-brand img {
    width: min(250px, 44vw);
}

.application-backlink {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.application-backlink:hover,
.application-backlink:focus-visible {
    border-color: var(--yellow);
    transform: translateY(-1px);
    outline: none;
}

.application-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

.application-hero {
    max-width: 700px;
    margin-bottom: 34px;
}

.application-hero__eyebrow {
    margin: 0 0 16px;
    color: var(--yellow);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.application-hero h1 {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    max-width: 12ch;
    font-size: clamp(2rem, 4.6vw, 3.9rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.application-hero__copy {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.application-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.application-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.sidebar-card,
.form-panel {
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.sidebar-card {
    padding: 24px;
}

.sidebar-card--highlight {
    background: linear-gradient(180deg, rgba(255, 203, 5, 0.12), rgba(255, 203, 5, 0.04));
    border-color: var(--line-strong);
}

.sidebar-card__eyebrow {
    margin: 0 0 18px;
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.progress-steps {
    display: grid;
    gap: 14px;
}

.progress-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.progress-step.is-active {
    border-color: rgba(255, 203, 5, 0.3);
    background: rgba(255, 203, 5, 0.12);
}

.progress-step.is-complete {
    border-color: rgba(29, 222, 125, 0.25);
    background: rgba(29, 222, 125, 0.1);
}

.progress-step__index {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
}

.progress-step.is-active .progress-step__index {
    background: var(--yellow);
    color: #101010;
}

.progress-step.is-complete .progress-step__index {
    background: var(--green);
    color: #08150d;
}

.progress-step h2 {
    margin: 2px 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.progress-step p,
.sidebar-list li {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.85rem;
}

.form-panel {
    padding: 28px;
}

.application-form {
    display: grid;
    gap: 22px;
}

.form-alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 136, 136, 0.25);
    background: rgba(120, 18, 18, 0.32);
    color: #ffd6d6;
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-progress {
    display: none;
}

.mobile-progress p {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-progress__track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mobile-progress__track span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow);
    transition: width 0.22s ease;
}

.form-step {
    display: grid;
    gap: 22px;
}

.form-step__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.form-step__badge {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: rgba(255, 203, 5, 0.14);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}

.form-step__header h2 {
    margin: 0 0 6px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.form-step__header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
}

.field label span {
    color: var(--yellow);
}

.field label small {
    color: var(--muted);
    font-size: 0.82em;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 15px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
    min-height: 148px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(248, 243, 232, 0.36);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(255, 203, 5, 0.42);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.1);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error .location-card__content,
.field.has-error .consent-row {
    border-color: rgba(255, 136, 136, 0.48);
}

.field-note {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.error-text {
    min-height: 1.05rem;
    margin: 0;
    color: var(--danger);
    font-size: 0.86rem;
    line-height: 1.3;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.location-card {
    display: block;
}

.location-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.location-card__content {
    display: grid;
    gap: 10px;
    min-height: 100%;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.location-card__content:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 203, 5, 0.2);
}

.location-card input:focus-visible + .location-card__content {
    outline: 2px solid rgba(255, 203, 5, 0.5);
    outline-offset: 2px;
}

.location-card input:checked + .location-card__content {
    border-color: rgba(255, 203, 5, 0.44);
    background: rgba(255, 203, 5, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.08);
}

.location-card__city {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
}

.location-card__city::before {
    content: "📍 ";
}

.location-card__address {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-card__tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(29, 222, 125, 0.12);
    color: var(--green);
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.consent-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    color: rgba(248, 243, 232, 0.92);
    line-height: 1.65;
}

.consent-row input {
    margin-top: 4px;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--yellow);
}

.form-controls {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 4px;
}

.button {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid transparent;
    padding: 0 24px;
    font-size: 0.96rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button--primary {
    background: var(--yellow);
    color: #0b0b0b;
    box-shadow: 0 20px 45px rgba(255, 203, 5, 0.18);
}

.button--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    border-color: rgba(255, 203, 5, 0.28);
}

.button[hidden],
.form-step[hidden],
.form-alert[hidden] {
    display: none !important;
}

.thankyou-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 20px 80px;
}

.thankyou-card {
    margin-top: 42px;
    padding: 34px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.thankyou-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(29, 222, 125, 0.14);
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thankyou-card h1 {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.thankyou-card__copy {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.thankyou-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.thankyou-grid article {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.thankyou-grid h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.thankyou-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.thankyou-grid a {
    color: var(--yellow);
    font-weight: 800;
}

.thankyou-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.thankyou-actions .button {
    min-width: 210px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 1040px) {
    .application-layout {
        grid-template-columns: 1fr;
    }

    .application-sidebar {
        position: static;
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-progress {
        display: block;
    }

    .thankyou-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .application-sidebar {
        grid-template-columns: 1fr;
    }

    .form-step__header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .application-page,
    .thankyou-page {
        padding-inline: 16px;
    }

    .application-topbar {
        padding-inline: 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .application-brand img {
        width: min(260px, 72vw);
    }

    .application-backlink {
        width: 100%;
    }

    .form-panel,
    .sidebar-card,
    .thankyou-card {
        padding: 22px;
        border-radius: 24px;
    }

    .application-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.9rem);
    }

    .form-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .form-controls {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .application-page {
        padding-top: 24px;
    }

    .application-hero h1 {
        max-width: 100%;
        font-size: clamp(1.8rem, 10vw, 2.55rem);
        line-height: 1.02;
    }

    .application-hero h1 br {
        display: none;
    }

    .application-hero__copy {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .form-panel,
    .sidebar-card,
    .thankyou-card {
        padding: 20px;
    }

    .consent-row {
        padding: 16px;
    }
}
