.yye-application {
    --yye-ink: #17212f;
    --yye-muted: #647084;
    --yye-line: #dfe6ef;
    --yye-accent: #c92832;
    --yye-accent-dark: #9f1f28;
    --yye-surface: #ffffff;
    --yye-soft: #f6f8fb;
    width: min(100%, 860px);
    margin: 32px auto;
    padding: 28px;
    color: var(--yye-ink);
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid var(--yye-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(23, 33, 47, 0.09);
    font-family: inherit;
}

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

.yye-application__header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--yye-line);
}

.yye-application__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--yye-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.yye-application h2 {
    margin: 0 0 8px;
    color: var(--yye-ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: 0;
}

.yye-application p {
    margin: 0;
    color: var(--yye-muted);
    font-size: 16px;
    line-height: 1.55;
}

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

.yye-field {
    display: grid;
    gap: 8px;
}

.yye-field--wide,
.yye-consent,
.yye-application__footer {
    grid-column: 1 / -1;
}

.yye-field label {
    color: var(--yye-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.yye-field label span,
.yye-consent strong {
    color: var(--yye-accent);
}

.yye-field input,
.yye-field select,
.yye-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--yye-ink);
    background: var(--yye-surface);
    border: 1px solid var(--yye-line);
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.yye-field input:focus,
.yye-field select:focus,
.yye-field textarea:focus {
    background: #fff;
    border-color: var(--yye-accent);
    box-shadow: 0 0 0 4px rgba(201, 40, 50, 0.12);
}

.yye-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    color: var(--yye-muted);
    background: var(--yye-soft);
    border: 1px solid var(--yye-line);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

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

.yye-application__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.yye-application button {
    min-height: 50px;
    padding: 0 26px;
    color: #fff;
    background: var(--yye-accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 12px 24px rgba(201, 40, 50, 0.22);
}

.yye-application button:hover,
.yye-application button:focus {
    background: var(--yye-accent-dark);
    transform: translateY(-1px);
}

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

.yye-application__message {
    min-height: 22px;
    color: var(--yye-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.yye-application__message.is-success {
    color: #137a4a;
}

.yye-application__message.is-error {
    color: var(--yye-accent-dark);
}

@media (max-width: 720px) {
    .yye-application {
        margin: 18px auto;
        padding: 20px;
    }

    .yye-application__form {
        grid-template-columns: 1fr;
    }

    .yye-application__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .yye-application button {
        width: 100%;
    }

    .yye-application__message {
        text-align: left;
    }
}
