#sfc-messages-form,
#sfc-messages-form * {
    box-sizing: border-box;
}

#sfc-messages-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

#sfc-messages-form .sfc-messages-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

#sfc-messages-form .form-fields-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 16px;
}

#sfc-messages-form .contact-form-field {
    width: 290px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#sfc-messages-form .contact-form-field--message {
    width: 600px;
}

#sfc-messages-form .contact-form-label {
    min-height: 26px;
    display: flex;
    align-items: center;
    color: #505050;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.5px;
}

#sfc-messages-form .contact-form-label span {
    color: #ff0000;
}

#sfc-messages-form .contact-form-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fafafa;
    padding: 0 24px;
    color: #505050;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#sfc-messages-form .contact-form-input::placeholder {
    color: #d9d9d9;
    opacity: 1;
}

#sfc-messages-form .contact-form-input:focus {
    border-color: #ae0d09;
    box-shadow: 0 0 0 1px #ae0d09;
}

#sfc-messages-form .contact-form-textarea {
    min-height: 140px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

#sfc-messages-form .contact-agreement {
    position: relative;
    display: block;
    color: #505050;
}

#sfc-messages-form .contact-agreement input {
    position: absolute;
    top: 4px;
    left: 0;
    width: 1px;
    height: 1px;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

#sfc-messages-form .contact-agreement label {
    position: relative;
    display: block;
    min-height: 26px;
    padding-left: 30px;
    color: #505050;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.5px;
}

#sfc-messages-form .contact-agreement label::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 19px;
    height: 19px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

#sfc-messages-form .contact-agreement input:checked + label::before {
    border-color: #ae0d09;
    background: #ae0d09 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Cpath d='M4.3 9.7 7.8 13.1 14.8 5.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}

#sfc-messages-form .contact-agreement input:focus-visible + label::before {
    outline: 1px solid #ae0d09;
    outline-offset: 2px;
}

#sfc-messages-form .contact-agreement a {
    color: inherit;
    text-decoration: none;
}

#sfc-messages-form .contact-agreement a:hover,
#sfc-messages-form .contact-agreement a:focus-visible {
    color: #ae0d09;
}

#sfc-messages-form .contact-bot-check {
    width: 100%;
}

#sfc-messages-form .contact-bot-check .sfc-cfp-wrap {
    display: block;
}

#sfc-messages-form .contact-bot-check .sfc-cfp-widget {
    max-width: 300px;
}

#sfc-messages-form .contact-bot-check .sfc-cfp-box {
    border-color: #d9d9d9;
    border-radius: 0;
    background: #fafafa;
}

#sfc-messages-form .contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: #ae0d09;
    padding: 12px 30px;
    color: #ffffff;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

#sfc-messages-form .contact-submit-btn:hover,
#sfc-messages-form .contact-submit-btn:focus-visible {
    background: #71100c;
}

#sfc-messages-form .contact-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#sfc-messages-form .contact-form-input.field-error {
    border-color: #ae0d09;
    box-shadow: 0 0 0 1px #ae0d09;
}

#sfc-messages-form .contact-agreement.field-error label::before {
    border-color: #ae0d09;
    box-shadow: 0 0 0 1px #ae0d09;
}

#sfc-messages-form .error-inline {
    margin: 3px 0 0;
    color: #ae0d09;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0.2px;
}

#sfc-messages-form .form-message {
    min-height: 20px;
    margin: 0;
    color: #505050;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
}

#sfc-messages-form .form-message.is-success {
    color: #2e7d32;
}

#sfc-messages-form .form-message.is-error {
    color: #ae0d09;
}

@media screen and (max-width: 640px) {
    #sfc-messages-form {
        max-width: none;
    }

    #sfc-messages-form .contact-form-field,
    #sfc-messages-form .contact-form-field--message {
        width: 100%;
    }

    #sfc-messages-form .contact-submit-btn {
        width: 100%;
    }
}
