/* Form fields */
.contact-floating-form .floating-field,
.registration-form .floating-field {
    position: relative;
    margin-bottom: 1.25rem;
}

.contact-floating-form .floating-field .form-control,
.contact-floating-form .floating-field .custom-select,
.registration-form .floating-field .form-control {
    height: 58px;
    min-height: 58px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    color: #243042;
    background-color: #fff;
    padding: 1.05rem 1rem .75rem;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-floating-form .floating-field .custom-select {
    padding-top: 1.05rem;
    padding-bottom: .75rem;
}

.contact-floating-form .floating-field textarea.form-control {
    min-height: 150px;
    height: auto;
    padding-top: 1.35rem;
    resize: vertical;
}

.contact-floating-form .floating-field .form-control:focus,
.contact-floating-form .floating-field .custom-select:focus,
.registration-form .floating-field .form-control:focus {
    border-color: #f47d20;
    box-shadow: 0 0 0 .15rem rgba(244, 125, 32, .12);
}

.contact-floating-form.was-validated .floating-field .form-control:invalid,
.contact-floating-form.was-validated .floating-field .custom-select:invalid,
.contact-floating-form .floating-field .form-control.is-invalid,
.contact-floating-form .floating-field .custom-select.is-invalid,
.contact-floating-form .floating-field.has-error .form-control,
.contact-floating-form .floating-field.has-error .custom-select,
.contact-floating-form .floating-field.has-danger .form-control,
.contact-floating-form .floating-field.has-danger .custom-select,
.registration-form.was-validated .floating-field .form-control:invalid,
.registration-form .floating-field .form-control.is-invalid,
.registration-form .floating-field.has-error .form-control,
.registration-form .floating-field.has-danger .form-control {
    border-color: #dc3545;
}

.contact-floating-form.was-validated .floating-field .form-control:invalid:focus,
.contact-floating-form.was-validated .floating-field .custom-select:invalid:focus,
.contact-floating-form .floating-field .form-control.is-invalid:focus,
.contact-floating-form .floating-field .custom-select.is-invalid:focus,
.contact-floating-form .floating-field.has-error .form-control:focus,
.contact-floating-form .floating-field.has-error .custom-select:focus,
.contact-floating-form .floating-field.has-danger .form-control:focus,
.contact-floating-form .floating-field.has-danger .custom-select:focus,
.registration-form.was-validated .floating-field .form-control:invalid:focus,
.registration-form .floating-field .form-control.is-invalid:focus,
.registration-form .floating-field.has-error .form-control:focus,
.registration-form .floating-field.has-danger .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .14);
}

.contact-floating-form.was-validated .floating-field .form-control:valid,
.contact-floating-form.was-validated .floating-field .custom-select:valid,
.contact-floating-form .floating-field .form-control.is-valid,
.contact-floating-form .floating-field .custom-select.is-valid,
.contact-floating-form .floating-field.has-success .form-control,
.contact-floating-form .floating-field.has-success .custom-select,
.registration-form.was-validated .floating-field .form-control:valid,
.registration-form .floating-field .form-control.is-valid,
.registration-form .floating-field.has-success .form-control {
    border-color: #28a745;
}

.contact-floating-form.was-validated .floating-field .form-control:valid:focus,
.contact-floating-form.was-validated .floating-field .custom-select:valid:focus,
.contact-floating-form .floating-field .form-control.is-valid:focus,
.contact-floating-form .floating-field .custom-select.is-valid:focus,
.contact-floating-form .floating-field.has-success .form-control:focus,
.contact-floating-form .floating-field.has-success .custom-select:focus,
.registration-form.was-validated .floating-field .form-control:valid:focus,
.registration-form .floating-field .form-control.is-valid:focus,
.registration-form .floating-field.has-success .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 .15rem rgba(40, 167, 69, .14);
}

.contact-floating-form .floating-field label,
.registration-form .floating-field label {
    position: absolute;
    top: 29px;
    left: .85rem;
    z-index: 2;
    max-width: calc(100% - 1.7rem);
    margin: 0;
    padding: 0 .35rem;
    color: #7b8494;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: top .18s ease, color .18s ease, font-size .18s ease;
}

.contact-floating-form .floating-field textarea + label {
    top: 1.45rem;
}

.contact-floating-form .floating-field.is-focused label,
.contact-floating-form .floating-field.is-filled label,
.contact-floating-form .floating-field-select label,
.contact-floating-form .floating-field .form-control:focus + label,
.contact-floating-form .floating-field .form-control:not(:placeholder-shown) + label,
.registration-form .floating-field.is-focused label,
.registration-form .floating-field.is-filled label,
.registration-form .floating-field .form-control:focus + label,
.registration-form .floating-field .form-control:not(:placeholder-shown) + label {
    top: 0;
    font-size: .82rem;
}

.contact-floating-form .floating-field.is-focused label,
.contact-floating-form .floating-field .form-control:focus + label,
.contact-floating-form .floating-field .custom-select:focus + label,
.registration-form .floating-field.is-focused label,
.registration-form .floating-field .form-control:focus + label {
    color: #f47d20;
}

.contact-floating-form.was-validated .floating-field .form-control:valid + label,
.contact-floating-form.was-validated .floating-field .custom-select:valid + label,
.contact-floating-form .floating-field .form-control.is-valid + label,
.contact-floating-form .floating-field .custom-select.is-valid + label,
.contact-floating-form .floating-field.has-success label,
.registration-form.was-validated .floating-field .form-control:valid + label,
.registration-form .floating-field .form-control.is-valid + label,
.registration-form .floating-field.has-success label {
    color: #28a745;
}

.contact-floating-form.was-validated .floating-field .form-control:invalid + label,
.contact-floating-form.was-validated .floating-field .custom-select:invalid + label,
.contact-floating-form .floating-field .form-control.is-invalid + label,
.contact-floating-form .floating-field .custom-select.is-invalid + label,
.contact-floating-form .floating-field.has-error label,
.contact-floating-form .floating-field.has-danger label,
.registration-form.was-validated .floating-field .form-control:invalid + label,
.registration-form .floating-field .form-control.is-invalid + label,
.registration-form .floating-field.has-error label,
.registration-form .floating-field.has-danger label {
    color: #dc3545;
}

.contact-floating-form .floating-field .form-control::placeholder,
.registration-form .floating-field .form-control::placeholder {
    color: transparent;
}

.contact-floating-form .floating-field .invalid-feedback,
.registration-form .floating-field .invalid-feedback {
    margin-top: .35rem;
}

/* Form privacy checkbox */
.contact-floating-form .privacy-consent,
.registration-form .privacy-consent {
    padding-left: 2.25rem;
    color: #243042;
    font-size: .9rem;
    line-height: 1.45rem;
    min-height: 1.45rem;
}

.contact-floating-form .privacy-consent .custom-control-label,
.registration-form .privacy-consent .custom-control-label {
    cursor: pointer;
    min-height: 1.45rem;
    line-height: 1.45rem;
}

.contact-floating-form .privacy-consent .custom-control-label::before,
.contact-floating-form .privacy-consent .custom-control-label::after,
.registration-form .privacy-consent .custom-control-label::before,
.registration-form .privacy-consent .custom-control-label::after {
    top: 0;
    left: -2.25rem;
    width: 1.45rem;
    height: 1.45rem;
}

.contact-floating-form .privacy-consent .custom-control-input:focus ~ .custom-control-label::before,
.registration-form .privacy-consent .custom-control-input:focus ~ .custom-control-label::before {
    border-color: #f47d20;
    box-shadow: 0 0 0 .15rem rgba(244, 125, 32, .12);
}

.contact-floating-form .privacy-consent .custom-control-input:checked ~ .custom-control-label::before,
.registration-form .privacy-consent .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #28a745;
    background-color: #28a745;
}

.contact-floating-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label::before,
.registration-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label::before {
    border-color: #dc3545;
}

.contact-floating-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label,
.contact-floating-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label a,
.registration-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label,
.registration-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label a {
    color: #dc3545 !important;
}

.contact-floating-form.was-validated .privacy-consent .custom-control-input:invalid:focus ~ .custom-control-label::before,
.registration-form.was-validated .privacy-consent .custom-control-input:invalid:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .14);
}

.contact-floating-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label::before,
.registration-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label::before {
    border-color: #28a745;
}

.contact-floating-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label,
.contact-floating-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label a,
.registration-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label,
.registration-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label a {
    color: #28a745 !important;
}

@media (max-width: 575.98px) {
    .contact-floating-form .floating-field .form-control,
    .contact-floating-form .floating-field .custom-select,
    .registration-form .floating-field .form-control {
        height: 56px;
        min-height: 56px;
    }
}

/* Shared floating labels for CTA, popup and WhatsApp forms */
.floating-label-form .floating-field {
    position: relative;
    margin-bottom: 1.25rem;
}

.floating-label-form .floating-field .form-control,
.floating-label-form .floating-field .custom-select {
    height: 58px;
    min-height: 58px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    color: #243042;
    background-color: #fff;
    padding: 1.05rem 1rem .75rem;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.floating-label-form .floating-field .custom-select {
    padding-top: 1.05rem;
    padding-bottom: .75rem;
}

.floating-label-form .floating-field textarea.form-control {
    min-height: 120px;
    height: auto;
    padding-top: 1.35rem;
    resize: vertical;
}

.floating-label-form .floating-field .form-control:focus,
.floating-label-form .floating-field .custom-select:focus {
    border-color: #f47d20;
    box-shadow: 0 0 0 .15rem rgba(244, 125, 32, .12);
}

.floating-label-form.was-validated .floating-field .form-control:invalid,
.floating-label-form.was-validated .floating-field .custom-select:invalid,
.floating-label-form .floating-field .form-control.is-invalid,
.floating-label-form .floating-field .custom-select.is-invalid,
.floating-label-form .floating-field.has-error .form-control,
.floating-label-form .floating-field.has-error .custom-select,
.floating-label-form .floating-field.has-danger .form-control,
.floating-label-form .floating-field.has-danger .custom-select {
    border-color: #dc3545;
}

.floating-label-form.was-validated .floating-field .form-control:invalid:focus,
.floating-label-form.was-validated .floating-field .custom-select:invalid:focus,
.floating-label-form .floating-field .form-control.is-invalid:focus,
.floating-label-form .floating-field .custom-select.is-invalid:focus,
.floating-label-form .floating-field.has-error .form-control:focus,
.floating-label-form .floating-field.has-error .custom-select:focus,
.floating-label-form .floating-field.has-danger .form-control:focus,
.floating-label-form .floating-field.has-danger .custom-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .14);
}

.floating-label-form.was-validated .floating-field .form-control:valid,
.floating-label-form.was-validated .floating-field .custom-select:valid,
.floating-label-form .floating-field .form-control.is-valid,
.floating-label-form .floating-field .custom-select.is-valid,
.floating-label-form .floating-field.has-success .form-control,
.floating-label-form .floating-field.has-success .custom-select {
    border-color: #28a745;
}

.floating-label-form.was-validated .floating-field .form-control:valid:focus,
.floating-label-form.was-validated .floating-field .custom-select:valid:focus,
.floating-label-form .floating-field .form-control.is-valid:focus,
.floating-label-form .floating-field .custom-select.is-valid:focus,
.floating-label-form .floating-field.has-success .form-control:focus,
.floating-label-form .floating-field.has-success .custom-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 .15rem rgba(40, 167, 69, .14);
}

.floating-label-form .floating-field label {
    position: absolute;
    top: 29px;
    left: .85rem;
    z-index: 2;
    max-width: calc(100% - 1.7rem);
    margin: 0;
    padding: 0 .35rem;
    color: #7b8494;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: top .18s ease, color .18s ease, font-size .18s ease;
}

.floating-label-form .floating-field textarea + label {
    top: 1.45rem;
}

.floating-label-form .floating-field.is-focused label,
.floating-label-form .floating-field.is-filled label,
.floating-label-form .floating-field-select label,
.floating-label-form .floating-field .form-control:focus + label,
.floating-label-form .floating-field .form-control:not(:placeholder-shown) + label {
    top: 0;
    font-size: .82rem;
}

.floating-label-form .floating-field.is-focused label,
.floating-label-form .floating-field .form-control:focus + label,
.floating-label-form .floating-field .custom-select:focus + label {
    color: #f47d20;
}

.floating-label-form.was-validated .floating-field .form-control:valid + label,
.floating-label-form.was-validated .floating-field .custom-select:valid + label,
.floating-label-form .floating-field .form-control.is-valid + label,
.floating-label-form .floating-field .custom-select.is-valid + label,
.floating-label-form .floating-field.has-success label {
    color: #28a745;
}

.floating-label-form.was-validated .floating-field .form-control:invalid + label,
.floating-label-form.was-validated .floating-field .custom-select:invalid + label,
.floating-label-form .floating-field .form-control.is-invalid + label,
.floating-label-form .floating-field .custom-select.is-invalid + label,
.floating-label-form .floating-field.has-error label,
.floating-label-form .floating-field.has-danger label {
    color: #dc3545;
}

.floating-label-form .floating-field .form-control::placeholder {
    color: transparent;
}

.floating-label-form .floating-field .invalid-feedback {
    margin-top: .35rem;
}

.floating-label-form .privacy-consent {
    padding-left: 2.25rem;
    color: #243042;
    font-size: .9rem;
    line-height: 1.45rem;
    min-height: 1.45rem;
}

.floating-label-form .privacy-consent .custom-control-label {
    cursor: pointer;
    min-height: 1.45rem;
    line-height: 1.45rem;
}

.floating-label-form .privacy-consent .custom-control-label::before,
.floating-label-form .privacy-consent .custom-control-label::after {
    top: 0;
    left: -2.25rem;
    width: 1.45rem;
    height: 1.45rem;
}

.floating-label-form .privacy-consent .custom-control-input:focus ~ .custom-control-label::before {
    border-color: #f47d20;
    box-shadow: 0 0 0 .15rem rgba(244, 125, 32, .12);
}

.floating-label-form .privacy-consent .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #28a745;
    background-color: #28a745;
}

.floating-label-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label::before {
    border-color: #dc3545;
}

.floating-label-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label,
.floating-label-form.was-validated .privacy-consent .custom-control-input:invalid ~ .custom-control-label a {
    color: #dc3545 !important;
}

.floating-label-form.was-validated .privacy-consent .custom-control-input:invalid:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .14);
}

.floating-label-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label::before {
    border-color: #28a745;
}

.floating-label-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label,
.floating-label-form.was-validated .privacy-consent .custom-control-input:valid ~ .custom-control-label a {
    color: #28a745 !important;
}

@media (max-width: 575.98px) {
    .floating-label-form .floating-field .form-control,
    .floating-label-form .floating-field .custom-select {
        height: 56px;
        min-height: 56px;
    }
}

/* Newsletter form */
.newsletter-inline-field {
    position: relative;
}

.newsletter-inline-field .form-control {
    height: 58px;
    min-height: 58px;
    padding-right: 9.75rem;
    border-radius: 8px;
}

.newsletter-inline-field .btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    min-width: 8.5rem;
    height: 46px;
    padding-right: 1rem;
    padding-left: 1rem;
    border-radius: 6px;
}

.newsletter-inline-field .invalid-feedback {
    margin-top: .35rem;
}

@media (max-width: 575.98px) {
    .newsletter-inline-field .form-control {
        height: 56px;
        min-height: 56px;
        padding-right: 7.5rem;
    }

    .newsletter-inline-field .btn {
        top: 5px;
        right: 5px;
        min-width: 6.5rem;
        height: 46px;
        padding-right: .75rem;
        padding-left: .75rem;
        font-size: .82rem;
    }
}
