html,
body {
    margin: 0;
    min-height: 100%;
    width: 100%;
}

body {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;

    background-color: #eef1f5;
    background-image: url("/upload/brokerage/gvh.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

#request-form-app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.request-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: #17191d;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e3e6eb;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(20, 28, 45, 0.5), 0 3px 10px rgba(20, 28, 45, 0.5);
    -webkit-font-smoothing: antialiased;
}

.request-form *,
.request-form *::before,
.request-form *::after {
    box-sizing: border-box;
}

.field {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.field--small,
.field--wide {
    width: 100%;
    max-width: none;
}

.field__label {
    display: block;
    margin: 0 0 3px;
    color: #20242a;
    font-weight: bold;
}

.field__required {
    margin-right: 4px;
    color: #d93030;
}

.field__input,
.field__textarea,
.select__control {
    display: block;
    width: 100%;
    color: #17191d;
    background: #ffffff;
    border: 1px solid #d9dde3;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field__input,
.select__control {
    height: 30px;
    padding: 0 10px;
}

.field__textarea {
    display: block;
    min-height: 112px;
    padding: 11px 13px;
    line-height: 20px;
    resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
    color: #a5abb4;
}

.field__input:hover,
.field__textarea:hover,
.select__control:hover {
    border-color: #bfc5ce;
}

.field__input:focus,
.field__textarea:focus,
.select__control:focus {
    border-color: #5b7ff0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(91, 127, 240, 0.11);
}

.select {
    position: relative;
    width: 100%;
}

.select__control {
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.select__control option {
    color: #17191d;
    background: #ffffff;
}

.select__arrow {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 17px;
    height: 17px;
    color: #737a85;
    pointer-events: none;
    transform: translateY(-50%);
}

.field__error {
    margin-top: 5px;
    color: #d33b43;
    line-height: 17px;
}

.field--error .field__input,
.field--error .field__textarea,
.field--error .select__control {
    border-color: #dc6269;
    background: #fffafa;
}

.field--error .field__input:focus,
.field--error .field__textarea:focus,
.field--error .select__control:focus {
    border-color: #d9575f;
    box-shadow: 0 0 0 3px rgba(217, 87, 95, 0.10);
}

.consent {
    width: 100%;
    margin: 3px 0 24px;
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.consent:hover {
    border-color: #cfd4dc;
}

.consent--error {
    border-color: #df858a;
    background: #fffafa;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    width: 100%;
    cursor: pointer;
}

.checkbox__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkbox__box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    margin-right: 9px;
    background: #ffffff;
    border: 1px solid #c9ced6;
    border-radius: 5px;
    color: transparent;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.checkbox__box svg {
    width: 13px;
    height: 13px;
}

.checkbox__input:checked + .checkbox__box {
    background: #557bef;
    border-color: #557bef;
    color: #ffffff;
}

.checkbox__input:focus-visible + .checkbox__box {
    box-shadow: 0 0 0 3px rgba(85, 123, 239, 0.15);
}

.checkbox__text {
    color: #363b43;
    font-size: 12px;
    font-weight: 400;
}

.request-form__footer {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 2px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 40px;
    padding: 0 16px;
    color: #ffffff;
    background: #557bef;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    line-height: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(85, 123, 239, 0.20);
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.submit-button:hover:not(:disabled) {
    background: #466de0;
    box-shadow: 0 7px 17px rgba(85, 123, 239, 0.25);
    transform: translateY(-1px);
}

.submit-button:active:not(:disabled) {
    box-shadow: 0 3px 8px rgba(85, 123, 239, 0.18);
    transform: translateY(0);
}

.submit-button:disabled {
    cursor: default;
    opacity: 0.68;
}

.submit-button__loading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.submit-button__loading > span {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: request-form-spin 0.7s linear infinite;
}

@keyframes request-form-spin {
    to {transform: rotate(360deg);}
}

.request-form__success {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dce5df;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 28, 45, 0.07);
}

.request-form__success-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: #4da778;
    border-radius: 50%;
}

.request-form__success-icon svg {
    width: 21px;
    height: 21px;
}

.request-form__success-title {
    margin-bottom: 4px;
    color: #17191d;
    line-height: 23px;
    font-weight: 700;
}

.request-form__success-text {
    color: #727985;
    line-height: 20px;
}

.field__hint {
    display: inline-block;
    margin-left: 6px;
    color: #8a9099;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

/* =========================================================
   MOBILE ADAPTATION
   ========================================================= */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }

    #request-form-app {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        display: block;
        padding: 16px;
        box-sizing: border-box;
    }

    .request-form {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20px 18px;
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(20, 28, 45, 0.30), 0 2px 8px rgba(20, 28, 45, 0.20);
    }

    .field {
        width: 100%;
        margin-bottom: 18px;
    }

    .field__label {
        margin-bottom: 5px;
        line-height: 18px;
    }

    .field__input,
    .select__control {
        width: 100%;
        height: 44px;
        min-height: 44px;
        padding-left: 11px;
        padding-right: 11px;
        font-size: 16px;
    }

    .select__control {
        padding-right: 40px;
    }

    .select__arrow {
        right: 11px;
    }

    .field__textarea {
        width: 100%;
        min-height: 110px;
        padding: 10px 11px;
        font-size: 16px;
        line-height: 21px;
    }

    .field__error {
        margin-top: 6px;
        font-size: 13px;
        line-height: 18px;
    }

    .field__hint {
        display: inline;
        margin-left: 4px;
        font-size: 11px;
    }

    .consent {
        margin: 2px 0 20px;
        padding: 12px;
    }

    .checkbox__box {
        width: 20px;
        height: 20px;
        margin-right: 9px;
    }

    .checkbox__text {
        font-size: 12px;
        line-height: 17px;
    }

    .request-form__footer {
        width: 100%;
        padding-top: 0;
    }

    .submit-button {
        width: 100%;
        height: 46px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    #request-form-app {
        padding: 10px;
    }

    .request-form {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .field {
        margin-bottom: 16px;
    }

    .field__label {
        font-size: 13px;
        line-height: 18px;
    }

    .field__input,
    .select__control {
        height: 44px;
        min-height: 44px;
    }

    .field__textarea {
        min-height: 100px;
    }

    .consent {
        padding: 10px;
        margin-bottom: 18px;
    }

    .checkbox__text {
        font-size: 11px;
        line-height: 16px;
    }

    .submit-button {
        height: 46px;
    }
}