:root {
    --font-body: "Inter", sans-serif;
    --font-display: "Playfair Display", serif;
    --color-plum: #771847;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-muted: #f5f5f5;
    --color-ink: #151515;
    --accent: var(--color-plum);
    --accent-soft: #f7eaf1;
    --panel: var(--color-muted);
    --text: var(--color-ink);
    --muted: #6f6f6f;
    --line: #b45a84;
    --line-soft: #ead0dc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
}

.page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 12px 14px 24px;
}

h1 {
    margin: 0;
    color: var(--color-plum);
    font-family: var(--font-display);
    font-size: 50px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: 0;
}

.title-rule {
    width: 140px;
    height: 4px;
    margin: 18px 0 24px;
    background: var(--color-plum);
}

.intro-text {
    margin: 0 0 30px;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
}

.form-card {
    background: var(--color-muted);
    padding: 36px 62px 46px;
}

.section {
    margin-bottom: 48px;
}

.section-title,
.privacy-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title {
    margin: 0 0 14px;
    color: var(--color-plum);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.section-title__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    object-fit: contain;
}

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

.grid-three {
    grid-template-columns: 106px repeat(2, minmax(0, 1fr));
}

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

label {
    display: block;
    margin-bottom: 7px;
    color: #777777;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}

input,
select,
textarea {
    width: 100%;
    height: 43px;
    border: 0;
    background: var(--color-white);
    color: var(--color-ink);
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    outline: 1px solid transparent;
}

input:focus,
select:focus {
    outline-color: var(--line);
}

.upload-box {
    margin-top: 12px;
    background: #ffffff;
    border: 0;
    padding: 28px 24px 24px;
}

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

.file-picker {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    margin: 0;
    padding: 0 14px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.file-name {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help {
    margin: 10px 0 0;
    color: #888888;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.privacy-title {
    margin: 0 0 5px;
    color: var(--color-plum);
    font-size: 12px;
    font-weight: 700;
}

.privacy-copy {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 8px;
    font-size: 13px;
    color: #3f3f3f;
}

.check-row input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--accent);
}

.recaptcha-wrap {
    width: fit-content;
    max-width: 100%;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-left: 4px solid var(--accent);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(138, 22, 77, .08);
}

.recaptcha-label {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.recaptcha-frame {
    min-height: 78px;
    overflow: hidden;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

button[type="submit"] {
    border: 0;
    border-radius: 0;
    background: var(--color-plum);
    color: var(--color-white);
    min-width: 154px;
    height: 30px;
    padding: 0 18px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
}

button[type="submit"]:disabled {
    cursor: wait;
    opacity: .65;
}

.error {
    display: none;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #b73737;
    background: #fff7f7;
    color: #8a1d1d;
}

.success-panel {
    display: none;
    background: var(--panel);
    min-height: 370px;
    padding: 68px 92px 62px;
    text-align: center;
}

.success-panel h2 {
    margin: 0 0 52px;
    font-size: 26px;
    line-height: 1.2;
}

.success-card {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 48px 35px 26px;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
}

.check {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
}

.success-card strong {
    display: block;
    margin-bottom: 24px;
}

.success-card p {
    margin: 0 0 18px;
}

.success-card small strong {
    display: inline;
    margin: 0;
    color: var(--accent);
}

@media (max-width: 720px) {
    .page {
        padding: 10px 10px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .form-card,
    .success-panel {
        padding: 24px 18px;
    }

    .grid,
    .grid-three {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .success-panel h2 {
        margin-bottom: 48px;
        font-size: 22px;
    }

    .success-card {
        padding: 48px 22px 28px;
    }
}
