*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-text: #100C0C;
    --color-text-alt: #52505F;
    --color-text-secondary: #FFF;
    --color-text-link: #878493;
    --color-text-third: #708FFF;

    --color-bg: #F7F7F8;
    --color-bg-alt: #FFF;
    --color-bg-secondary: #FFE370;
    --color-bg-third: #EBEFFF;
    --color-bg-drive: #878493;
    --color-bg-effect: #FDF1BE;
    --color-bg-fourth: #708FFF;
    --color-bg-fifth: #100C0C;
    --color-bg-sixth: #323232;
    --color-bg-empty: #F9F3D9;

    --color-border: #E8E6F0;
    --color-border-secondary: #708FFF;
    --color-border-alt: #FFF;

    --color-btn: #100C0C;

    --progress-primary: #708FFF;
    --progress-bg: #EBEFFF;

    --color-icon-star: #FFE370;
    --color-icon-primary: #708FFF;
}

/* Same tone as the body so overscroll/rubber-band never flashes white. */
html {
    background-color: var(--color-bg);
}

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    color: var(--color-text);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    transition: font-size 0.35s ease-in-out;
    background-color: var(--color-bg);
    min-width: 275px;
    position: relative;
    /* Own stacking context: with html carrying a background, body's no longer
       propagates to the canvas, so the z-index:-1 glow layer (::before) would
       otherwise paint underneath body's background and vanish. */
    z-index: 0;
    /* Sticky footer: on short pages (auth) the footer pins to the viewport
       bottom via footer { margin-top: auto } in sections/footer.css. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page glow — exact replica of the Figma "Bg elements / BG 1" present on every
   page frame: a #FDF1BE circle (r=519.5) with a 400px-sigma layer blur, centred
   at (1226.5, -40.5) on the 1440px artboard. The stops below are the numerically
   computed disk-Gaussian falloff (peak alpha 0.57). Geometry is FIXED in px like
   the mock (the blob does not scale with the viewport) and anchored to the
   content centre: 1226.5 - 720 = +506px right of centre. Page-level (behind all
   sections), so it washes from the hero into the next section with no seams;
   the layer ends exactly where the falloff reaches zero (-40 + 1520 = 1480). */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Capped at the page height: on short pages (auth) the fixed 1480px layer
       used to poke past the footer and add a scrollable white strip. The tail
       it loses there sits under the opaque footer anyway. */
    height: min(1480px, 100%);
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        circle 1520px at calc(50% + 506px) -40px,
        rgba(253, 241, 190, 0.570) 0%,
        rgba(253, 241, 190, 0.552) 8.3%,
        rgba(253, 241, 190, 0.501) 16.7%,
        rgba(253, 241, 190, 0.426) 25%,
        rgba(253, 241, 190, 0.338) 33.3%,
        rgba(253, 241, 190, 0.250) 41.7%,
        rgba(253, 241, 190, 0.171) 50%,
        rgba(253, 241, 190, 0.109) 58.3%,
        rgba(253, 241, 190, 0.064) 66.7%,
        rgba(253, 241, 190, 0.034) 75%,
        rgba(253, 241, 190, 0.017) 83.3%,
        rgba(253, 241, 190, 0.008) 91.7%,
        rgba(253, 241, 190, 0) 100%
    );
}

body,
p,
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-text-link);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

input[tupe="submit"],
button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-secondary);
    text-align: center;
    padding: 10px 20px;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
    outline: unset;
    border: unset;
    cursor: pointer;
}

.form-container {
    display: flex;
    flex-direction: column;
}
.form-control {
    font-family: 'Manrope', -apple-system, sans-serif;
    color: var(--color-text);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 5px;
    outline: unset;
}
textarea.form-control {
    padding: 15px;
}
.form-label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
/* Inline per-field validation error under a .form-control: LiveForm
   (assets/js/live-form.js) fills the text and toggles visibility with
   jQuery hide()/slideDown(), so the span must START hidden. */
.form-error-inline {
    color: #dc2626;
    font-size: 12px;
    display: none;
}

.full-container,
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.full-container {
    max-width: calc(1280px + 40px);
}
.container {
    max-width: calc(1065px + 40px);
}

.img-fluid
{
    max-width: 100%;
    height: auto;
}

.btn {
    background: var(--color-btn);
    transition: opacity 0.2s ease-in-out;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.topic {
    font-size: 14px;
    padding: 2px 10px;
    background-color: var(--color-bg-secondary);
    max-width: fit-content;
    border-radius: 6px;
    font-weight: 500;
    line-height: 20px;
}

.verify::after {
    font-family: 'heroicons-solid' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e962";
    font-size: 20px;
    color: var(--color-text-third);
}

@media (max-width: 1400px) {
    .full-container {
        max-width: 1140px;
    }
}

@media (max-width: calc(1140px + 30px)) {
    .full-container,
    .container {
        max-width: 991px;
    }
}

@media (max-width: calc(991px + 30px)) {

    body {
        font-size: 16px;
        line-height: 20px;
    }

    .full-container,
    .container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {

    .full-container {
        max-width: 768px;
    }
}

@media (max-width: 576px) {

    body {
        font-size: 14px;
        line-height: 20px;
    }

    .form-control {
        padding: 8px 15px;
    }
}
