@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-bold.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Jost";
    src: url("../fonts/jost-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --blue: #00a7e8;
    --blue-dark: #0087bd;
    --ink: #32312e;
    --muted: #67635d;
    --surface: #f6f6f6;
    --white: #ffffff;
    --line: #deddda;
    --error: #b42318;
    --success: #257043;
    --shadow: 0 18px 50px rgba(50, 49, 46, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.header-wrapper {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid #ecebea;
    background: var(--white);
}

.site-header {
    display: grid;
    width: min(1400px, calc(100% - 64px));
    min-height: 104px;
    margin: 0 auto;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.brand {
    display: block;
    width: 180px;
}

.brand img {
    width: 100%;
    height: auto;
}

.shop-link {
    justify-self: end;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

.shop-link span {
    color: var(--blue);
}

.shop-link:hover,
.shop-link:focus-visible {
    color: var(--blue);
}

.application-main {
    padding: clamp(54px, 7vw, 94px) 24px clamp(72px, 9vw, 120px);
}

.application-section {
    width: min(860px, 100%);
    margin: 0 auto;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h1 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: clamp(2.25rem, 5vw, 3.7rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.section-heading h1::after {
    display: block;
    width: 52px;
    height: 4px;
    margin: 23px auto 0;
    background: var(--blue);
    content: "";
}

.section-heading p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.96rem;
}

.form-shell {
    width: 100%;
    padding: clamp(28px, 5vw, 56px);
    border-top: 4px solid var(--blue);
    background: var(--white);
    box-shadow: var(--shadow);
}

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

.field {
    min-width: 0;
}

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

.field label,
.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.field label > span,
.field-label > span {
    color: var(--blue);
}

.field label .optional {
    float: right;
    color: #8c8881;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-control {
    width: 100%;
    min-height: 55px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: #fbfbfb;
    color: var(--ink);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field-control:hover {
    border-color: #a6a19a;
}

.field-control:focus {
    border-color: var(--ink);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 167, 232, 0.16);
}

.field-control--invalid {
    border-color: var(--error);
}

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

select.field-control {
    padding-right: 42px;
    appearance: none;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.field small {
    display: block;
    margin-top: 6px;
    color: #7b7771;
    font-size: 0.71rem;
}

.field textarea + small {
    text-align: right;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--error);
    font-size: 0.74rem;
    font-weight: 700;
}

.file-drop {
    display: flex !important;
    min-height: 105px;
    margin: 0 !important;
    padding: 18px 20px;
    align-items: center;
    gap: 16px;
    border: 1px dashed #a8a39b;
    background: #fbfbfb;
    cursor: pointer;
    transition: 160ms ease;
}

.file-drop:hover,
.file-drop:focus-within,
.file-drop.is-dragging {
    border-color: var(--blue);
    background: #effaff;
}

.file-drop.field-control--invalid {
    border-color: var(--error);
}

.file-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white) !important;
}

.file-icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.file-copy {
    min-width: 0;
    flex: 1;
}

.file-copy strong,
.file-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-copy small {
    margin: 2px 0 0;
    font-weight: 400;
}

.file-action {
    flex: 0 0 auto;
    color: var(--blue) !important;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.consent {
    display: flex;
    margin: 30px 0 0;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.77rem;
}

.consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.consent strong {
    color: var(--blue);
}

.consent-error {
    margin-left: 30px;
}

.submit-button {
    display: flex;
    width: 100%;
    min-height: 61px;
    margin-top: 28px;
    padding: 15px 22px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background 160ms ease, transform 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.submit-button svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.required-note {
    margin: 10px 0 0;
    color: #85817b;
    font-size: 0.69rem;
    text-align: right;
}

.notice {
    display: flex;
    padding: 18px 20px;
    gap: 14px;
    border-left: 4px solid;
    font-size: 0.86rem;
}

.notice--error {
    margin-bottom: 28px;
    flex-direction: column;
    gap: 2px;
    border-color: var(--error);
    background: #fff2f0;
    color: #7a271a;
}

.notice--success {
    min-height: 280px;
    padding: 40px;
    align-items: flex-start;
    border-color: var(--success);
    background: #eef8f1;
}

.notice--success .notice-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 1.5rem;
}

.notice--success h2 {
    margin: 1px 0 10px;
    font-size: 1.5rem;
    line-height: 1.25;
}

.notice--success p {
    margin: 0 0 18px;
    color: #41614d;
}

.notice--success a {
    color: var(--success);
    font-weight: 700;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

@media (max-width: 760px) {
    .site-header {
        width: min(100% - 32px, 1400px);
        min-height: 86px;
        grid-template-columns: 1fr auto;
    }

    .brand {
        width: 145px;
    }

    .shop-link {
        font-size: 0;
    }

    .shop-link span {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid var(--line);
        font-size: 0.9rem;
    }

    .application-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .form-shell {
        padding: 30px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .field--full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h1 {
        font-size: 2.35rem;
    }

    .file-drop {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .file-copy {
        width: calc(100% - 64px);
        flex: auto;
    }

    .file-action {
        margin-left: 62px;
    }

    .notice--success {
        min-height: auto;
        padding: 28px 22px;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
