/* Bottom form - dark theme, same background as services-section */
.section-bottom-form {
    background-color: var(--color-brand-navy);
    padding: 80px 0;
    margin-bottom: 0;
}

.section-bottom-form__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.section-form--bottom {
    position: relative;
}

.section-form--bottom .section-form__wrapper-inner {
    max-width: 600px;
}

.section-form--bottom h2 {
    color: #ffffff;
    margin-bottom: var(--spacing-32);
    text-align: left;
}

.section-form--bottom h2 span {
    color: var(--accent-orange);
}

.section-form--bottom .form {
    width: 100%;
}

.section-form--bottom .form__group {
    margin-bottom: 16px;
}

.section-form--bottom .section-form__input-wrapper {
    gap: 16px;
    margin-bottom: 16px;
}

.section-form--bottom .section-form__input-wrapper .form__group {
    margin-bottom: 0;
}

.section-form--bottom {
    margin-bottom: 0;
}

/* Form inputs - dark theme with glass effect */
.section-form--bottom .form__control {
    background: #0B131E;
    border: 1px solid #FFFFFF1F;
    color: #ffffff;
    font-size: 14px;
    padding: 16px;
    border-radius: 12px;
}

.section-form--bottom .form__control::placeholder {
    font-family: var(--font-body);
    font-weight: var(--font-weight-500);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    color: #FFFFFF66;
}

.section-form--bottom .form__control:hover {
    background: #101C2E;
    border-color: rgba(255, 255, 255, 0.25);
}

.section-form--bottom .form__control:focus {
    outline: none;
    border: 1px solid var(--color-brand-teal);
    background: var(--color-brand-navy);
    box-shadow: 0 0 0 3px rgba(7, 145, 143, 0.25);
}

.section-form--bottom .form__control--checkbox:focus {
    box-shadow: none;
    outline: none;
}

.section-form--bottom .form__control.is-invalid,
.section-form--bottom .form__control--textarea-wrapper.is-invalid {
    border-color: color-mix(in srgb, var(--color-error) 80%, transparent);
    background: color-mix(in srgb, var(--color-error) 15%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 20%, transparent);
}

.section-form--bottom .form__control--textarea-wrapper.is-invalid .form__control {
    border: none;
    box-shadow: none;
}

.section-form--bottom .form__control.is-invalid:focus,
.section-form--bottom .form__control--textarea-wrapper.is-invalid:focus-within {
    border-color: color-mix(in srgb, var(--color-error) 90%, transparent);
    background: color-mix(in srgb, var(--color-error) 15%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 20%, transparent);
}

.section-form--bottom .form__control--textarea-wrapper.is-invalid:focus-within .form__control {
    border: none;
    box-shadow: none;
}

.section-form--bottom .form__control.valid-input,
.section-form--bottom .form__control--textarea-wrapper.valid-input {
    border-color: color-mix(in srgb, var(--color-success) 70%, transparent);
    background: color-mix(in srgb, var(--color-success) 10%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 15%, transparent);
}

.section-form--bottom .form__control--textarea-wrapper.valid-input .form__control {
    border: none;
    box-shadow: none;
}

.section-form--bottom .form__control.valid-input:focus,
.section-form--bottom .form__control--textarea-wrapper.valid-input:focus-within .form__control {
    border-color: color-mix(in srgb, var(--color-success) 90%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 25%, transparent);
}

/* Textarea wrapper with glass effect */
.section-form--bottom .form__control--textarea-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    transition: all var(--transition-duration-fast) var(--transition-timing-function);
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-form--bottom .form__control--textarea-wrapper:focus-within {
    outline: none;
    border: 1px solid var(--color-brand-teal);
    background: var(--color-brand-navy);
    box-shadow: 0 0 0 3px rgba(7, 145, 143, 0.25);
}

.section-form--bottom .form__control--textarea {
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
    width: 100%;
    background: transparent;
    border: none;
}

.section-form--bottom .form__control--textarea:focus {
    outline: none;
}

.section-form--bottom .upload-label.is-invalid {
    border-color: color-mix(in srgb, var(--color-error) 90%, transparent);
}

.section-form--bottom .upload-label.valid-input {
    border-color: color-mix(in srgb, var(--color-success) 80%, transparent);
}

.section-form--bottom .form__control--checkbox.is-invalid {
    border-color: color-mix(in srgb, var(--color-error) 90%, transparent);
}

.section-form--bottom .form__control--checkbox.valid-input {
    border-color: color-mix(in srgb, var(--color-success) 80%, transparent);
}

.section-form--bottom .invalid-feedback {
    color: var(--color-error-100);
    font-size: 13px;
    margin-top: 6px;
}

.section-form--bottom .section-form__wrapper-inner>.form-success {
    display: none;
    width: 100%;
    margin-bottom: 0;
}

.section-form--bottom.section-form--bottom--success .section-form__wrapper-inner>.form-success {
    display: block !important;
}

.section-form--bottom.section-form--bottom--success .section-form__wrapper-inner>.section-form--bottom__heading,
.section-form--bottom.section-form--bottom--success .section-form__wrapper-inner>.form.form--bottom {
    display: none !important;
}

.section-form--bottom .form-success .message--success {
    background: color-mix(in srgb, var(--color-success) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-success) 50%, transparent);
    border-radius: 12px;
    padding: var(--spacing-24) var(--spacing-32);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-form--bottom .form-success .message__title--success {
    color: #ffffff;
    text-align: left;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 var(--spacing-16);
}

.section-form--bottom .form-success .message__description--success {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.section-form--bottom .form-success .message__description--success .message__item {
text-align: left;
}

.section-form--bottom .form-success .message__description--success .message__item:last-child {
    margin-bottom: 0;
}

.section-form--bottom .form-success .message__description--success a {
    color: var(--accent-orange);
    text-decoration: underline;
}

.section-form--bottom .form-success .message__description--success a:hover {
    color: rgba(255, 200, 150, 0.95);
}

.section-form--bottom .error__container {
    margin-top: var(--spacing-16);
    margin-bottom: var(--spacing-16);
    width: 100%;
}

.section-form--bottom .error__container .message--error {
    background: color-mix(in srgb, var(--color-error) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-error) 60%, transparent);
    border-radius: 12px;
    padding: var(--spacing-24) var(--spacing-32);
    color: rgba(255, 220, 220, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-form--bottom .error__container .message__title--error {
    color: rgba(255, 255, 255, 0.98);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--spacing-16);
}

.section-form--bottom .error__container .message__description--error {
    color: rgba(255, 220, 220, 0.9);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.section-form--bottom .error__container .message__description--error .message__item a {
    color: var(--accent-orange);
    text-decoration: underline;
}

.section-form--bottom .error__container .message__description--error .message__item a:hover {
    color: rgba(255, 200, 150, 0.95);
}

/* Labels */
.section-form--bottom .form__label {
    color: rgba(255, 255, 255, 0.9);
}

/* File upload */
.section-form--bottom .form__control--file,
.section-form--bottom .upload-label {
    /* White at 40% on this near-black background lands at about 3.7:1, under the 4.5:1 AA asks
       for at 14px. 70% clears it with room to spare while still reading as secondary text, and
       the 12% border was too faint to show the drop zone at all. */
    border-color: #FFFFFF4D;
    color: #FFFFFFB3;
    background: #0B131E;
    border-radius: 12px;
}

.section-form--bottom .form__control--file {
    border: 1.8px dashed #FFFFFF4D;
}

.section-form--bottom .upload-label {
    padding: 16px;
    justify-content: flex-start;
    font-family: var(--font-body);
    font-weight: var(--font-weight-500);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
}

.section-form--bottom .icon-attach {
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-form--bottom .form input[type=checkbox]{
    cursor: default;
    border-color: rgba(255, 255, 255, 0.4);
    background: var(--color-brand-navy);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.section-form--bottom .upload-label:hover {
    background: #101C2E;
    border-color: rgba(255, 255, 255, 0.25);
}

.section-form--bottom .icon-attach::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Checkbox */
.section-form--bottom .form__control--checkbox {
    border-color: rgba(255, 255, 255, 0.4);
    background: var(--color-brand-navy);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-form--bottom .form__control--checkbox:checked {
    background: var(--color-brand-navy);
    border-color: var(--color-brand-teal);
}

.section-form--bottom .form input[type=checkbox]:checked::before {
    color: var(--color-brand-teal);
}

.section-form--bottom .form__label--checkbox {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.section-form--bottom .form__label--checkbox a,
.section-form--bottom .form__label--checkbox a:hover {
    color: inherit;
    text-decoration: none;
}

/* Consent + Button row on desktop */
.section-form--bottom__row-consent-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-24);
    margin-bottom: var(--spacing-16);
}

.section-form--bottom__row-consent-btn .form__group--captcha {
    flex: 1;
    margin-bottom: 0;
}

.section-form--bottom__row-consent-btn .form__group:last-child {
    margin-bottom: 0;
    flex-shrink: 0;
}

.section-form--bottom__row-consent-btn .btn {
    white-space: nowrap;
}



/* reCAPTCHA caption */
.section-form--bottom .form__caption {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

/* What's next section */
.section-form--bottom__next {
    position: relative;
}

.section-form--bottom__next-title {
    color: var(--accent-orange);
    margin-bottom: var(--spacing-32);
}

.section-form--bottom__next {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-form--bottom__next-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.section-form--bottom__next-list::before {
    display: none;
}

.section-form--bottom__next-line {
    position: absolute;
    left: 6px;
    width: 2px;
    pointer-events: none;
    z-index: 0;
}

.section-form--bottom__next-item {
    position: relative;
    padding-left: var(--spacing-32);
    padding-bottom: var(--spacing-40);
}

.section-form--bottom__next-item:last-child {
    margin-bottom: 0;
}

.section-form--bottom__next-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-brand-terracotta-300);
    z-index: 1;
}

.section-form--bottom__next-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 14px;
    width: 3px;
    height: calc(100% - 8px);
    pointer-events: none;
    z-index: 0;

    background: repeating-linear-gradient(
        to bottom,
        var(--accent-orange) 0px,
        var(--accent-orange) 7px,
        transparent 5px,
        transparent 11px);
}

.section-form--bottom__next-item-title {
    font-size: 20px;
    font-weight: var(--font-weight-600);
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: var(--spacing-16);
}

.section-form--bottom__next-item-desc {
    font-size: clamp(14px, 8px + 1vw, 16px);
    line-height: 1.6;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.7);
}

.section-from .section-form--bottom {
    max-height: unset;
}

/* Mobile */
@media (max-width: 1150px) {
    .section-bottom-form__wrapper {
        flex-direction: column-reverse;
        gap: var(--spacing-24);
    }
    .section-form--bottom__next {
        display: none;
    }
}
@media (max-width: 768px) {
    .section-form--bottom__row-consent-btn {
        flex-direction: column;
        align-items: stretch;
    }

    .section-form--bottom__row-consent-btn .form__group--captcha {
        margin-bottom: 16px;
    }


}
