
.form-container {
    position: relative;
}

.btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-family: ;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: #212529;
    --bs-btn-bg: transparent;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 0.375rem;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb),0.5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;
}

.btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.btn:focus {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    outline: 0;
    box-shadow: var(--bs-btn-focus-box-shadow);
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    --bs-btn-focus-shadow-rgb: 60,153,110;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #13653f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #dc3545;
    --bs-btn-border-color: #dc3545;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #bb2d3b;
    --bs-btn-hover-border-color: #b02a37;
    --bs-btn-focus-shadow-rgb: 225,83,97;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #dc3545;
    --bs-btn-disabled-border-color: #dc3545;
}


.spinner-border {
    display: inline-block;
    width: var(--bs-spinner-width);
    height: var(--bs-spinner-height);
    vertical-align: var(--bs-spinner-vertical-align);
    border-radius: 50%;
    -webkit-animation: var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);
    animation: var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);
}

@-webkit-keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    color: #ea4628;
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.25em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;
    border: var(--bs-spinner-border-width) solid currentcolor;
    border-right-color: transparent;
}

.form-container a,
#marketing-consent-modal .marketing-message-note a {
    color: #B74628;
}

.form-header {
    color: #2c2e33;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c2e33;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}

.form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 10px 10px;
    margin-bottom: 10px;
}

@media(min-width:576px) {
    .form-row {
        gap: 0 10px;
        flex-direction: row;
        margin-bottom: 20px;
    }
}

.form-row .form-group {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 4px 10px;
    font-size: 20px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    outline: none;
    -webkit-transition: border-color 0.3s;
    -o-transition: border-color 0.3s;
    transition: border-color 0.3s;
    color: #212529;
    font-weight: 500;
    height: 40px;
}

.form-group select {
    -moz-appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-size: 16px;
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: right 10px center;
    background-image: url("./img/arrow.svg");
}

.form-group input:focus,.form-group select:focus {
    border-bottom: 2px solid #000;
}

.form-checkbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.form-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #ea4628;
    border: 1px solid #707070;
}

.form-description {
    color: #000;
    margin: 20px 0;
    font-size: 12px;
    line-height: 1.45;
}

.form-footer button {
    height: 50px;
    color: #B74628;
    background: #f7ead3;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    border: 0;
}

.form-footer button:hover,
.form-footer button:focus {
    background: #d0361a;
    color: #fff;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #dc3545;
}

.is-invalid~.invalid-feedback {
    display: block;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220,53,69,0.25);
}


.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}

.dialog-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dialog-inline {
    display: flex;
    column-gap: 12px;
    align-items: center;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    color: #ea4628;
}

.dialog-inline p {
    margin: 0;
    font-size: 1rem;
    color: #000;
}

.next-reg-form .director-title {
    font-size: 23px !important;
}

.next-reg-form p {
    font-size: 21px !important;
}

#repayment-calculator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#repayment-calculator label {
    float: left;
    width: 100%;
    margin: 20px 0 0;
    position: relative;
    line-height: 120%;
    font-size: 24px;
}

#repayment-calculator .form-group .form-control {
    margin-top: 10px;
    float: left;
    width: 100% !important;
    background-color: #fff;
    border: 1px solid #ddd;
    height: 65px;
    padding: 0 20px !important;
    font-size: 24px;
    font-weight: 500;
    color: #666;
    line-height: 120%;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: all 0.5s ease 0s;
    transition: all 0.5s ease 0s;
}

#repayment-calculator .slider,.form-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 10px !important;
    background: #d3d3d3 !important;
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-top: 20px;
    padding: 0 !important;
}

#repayment-calculator .slider:focus,.form-slider:focus {
    border-bottom: unset !important;
}

#repayment-calculator .slider::-webkit-slider-thumb,.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #ea4628;
    height: 2rem;
    width: 20px;
}

.apply-for-funding-btn {
    margin-top: 59px;
    height: 65px;
    line-height: 200%;
    font-size: 24px;
    font-weight: 600;
    background: #ea4628;
    border-color: #ea4628;
    color: #fff;
}

.apply-for-funding-btn:hover {
    background: #ea4628;
    border-color: #ea4628;
    color: #fff;
}

.tooltip-value {
    position: absolute;
    top: 42px;
    background: #333;
    color: #fff;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-50%);
    z-index: 9999;
}


.marketing-message {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

#marketing-consent-modal .modal-body {
    padding-top: 15px;
    padding-bottom: 40px;
}

#marketing-consent-modal .btn-marketing-consent {
    width: 45%;
}

#marketing-consent-modal .btn-marketing-consent-yes {
    margin-right: 10px;
}

#marketing-consent-modal .marketing-message-note {
    font-size: 16px;
    line-height: 21px;
    margin-top: 16px;
    text-align: center;
    margin-bottom: 0;
}


/* =========================================================================
   Application form (one step) – template-parts/application-form.php
   Everything below is scoped to .fa-apply.
   ========================================================================= */

.fa-apply {
    --fa-ink: #1f1f1d;
    --fa-muted: #6b6762;
    --fa-line: #c9c4bc;
    --fa-orange: #d9441f;
    --fa-orange-deep: #b03a14;
    --fa-card: #fdf8ee;
    --fa-button: #f7e5cc;
    /* No card of its own: the Elementor container around the widget is the card
       (background, rounded corners, padding), so there is only one box. */
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--fa-ink);
    text-align: left;
}

.fa-apply *,
.fa-apply *::before,
.fa-apply *::after {
    box-sizing: border-box;
}

.fa-apply [hidden] {
    display: none !important;
}

/* Section headings: full-width rule underneath */
.fa-apply .fa-apply__h {
    margin: 0 0 6px;
    padding: 0 0 3px;
    border-bottom: 1px solid var(--fa-ink);
    font-family: "Barlow", var(--e-global-typography-primary-font-family, inherit), sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--fa-ink);
}

.fa-apply .form-row {
    gap: 6px 8px;
    margin-bottom: 6px;
}

.fa-apply .form-row:last-child {
    margin-bottom: 6px;
}

.fa-apply .fa-apply__row-tight {
    margin-bottom: 4px;
}

.fa-apply .reg-form-part1 > .form-row + .fa-apply__h,
.fa-apply .fa-apply__hint + .fa-apply__h,
.fa-apply .fa-apply__panel + .fa-apply__h {
    margin-top: 14px;
}

.fa-apply .fa-apply__h + .form-row {
    margin-top: 0;
}

/* Underlined inputs and selects */
.fa-apply .form-group input:not([type="checkbox"]):not([type="range"]),
.fa-apply .form-group select {
    height: 44px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 2px solid var(--fa-line);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    color: var(--fa-ink);
}

.fa-apply .form-group select {
    font-weight: 500;
    padding-right: 36px;
    background-size: 16px;
    background-position: right 10px center;
}

.fa-apply .form-group input::placeholder {
    color: #8a857e;
    opacity: 1;
}

.fa-apply .form-group input:focus,
.fa-apply .form-group select:focus {
    border-bottom-color: var(--fa-orange);
    outline: none;
}

.fa-apply .form-group input:disabled {
    background: transparent;
    cursor: default;
    -webkit-text-fill-color: var(--fa-ink);
    opacity: 1;
}

.fa-apply .form-group input:disabled::placeholder {
    -webkit-text-fill-color: #8a857e;
}

.fa-apply .form-group input.is-invalid,
.fa-apply .form-group select.is-invalid {
    border-bottom-color: #dc3545;
}

.fa-apply .invalid-feedback {
    font-size: 12.5px;
    font-weight: 600;
}

.fa-apply .fa-apply__hint {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--fa-muted);
}

/* Sliders */
.fa-apply .fa-apply__slider {
    margin: 12px 0 6px;
}

.fa-apply .fa-apply__slider label {
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 400;
    color: var(--fa-ink);
}

.fa-apply .fa-apply__range {
    --fa-fill: 50%;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 1px solid #cfc9c0;
    border-radius: 999px;
    background: linear-gradient(to right, var(--fa-orange) 0, var(--fa-orange) var(--fa-fill), #ebe7e1 var(--fa-fill), #ebe7e1 100%);
    cursor: pointer;
}

.fa-apply .fa-apply__range:focus {
    outline: none;
}

.fa-apply .fa-apply__range:focus-visible {
    outline: 2px solid var(--fa-orange-deep);
    outline-offset: 4px;
}

.fa-apply .fa-apply__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--fa-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.fa-apply .fa-apply__range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--fa-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.fa-apply .fa-apply__range::-moz-range-track {
    background: transparent;
}

.fa-apply .fa-apply__value {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fa-ink);
    font-variant-numeric: tabular-nums;
}

.fa-apply .fa-apply__note {
    margin: 10px 0 4px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--fa-muted);
}

/* reCAPTCHA */
.fa-apply .fa-apply__captcha {
    margin: 14px 0 12px;
}

.fa-apply .fa-apply__captcha-placeholder {
    margin: 0;
    padding: 9px 12px;
    border: 1px dashed #cfc6b8;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: var(--fa-muted);
}

/* Marketing checkbox */
.fa-apply .fa-apply__check {
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
}

.fa-apply .fa-apply__check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex: none;
    border: 1.5px solid #a9a39b;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
}

.fa-apply .fa-apply__check input[type="checkbox"]:checked {
    border-color: var(--fa-orange);
    background: var(--fa-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;
}

.fa-apply .fa-apply__check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--fa-orange-deep);
    outline-offset: 2px;
}

.fa-apply .fa-apply__check label {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--fa-muted);
    cursor: pointer;
}

/* Submit */
.fa-apply .form-footer button {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--fa-button);
    color: var(--fa-orange-deep);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    transition: background-color .15s ease, color .15s ease;
}

.fa-apply .form-footer button:hover,
.fa-apply .form-footer button:focus {
    background: var(--fa-orange);
    color: #fff;
}

.fa-apply .fa-apply__fine {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--fa-muted);
}

.fa-apply .fa-apply__fine a {
    color: var(--fa-ink);
    text-decoration: underline;
}

.fa-apply .fa-apply__fine a:hover {
    color: var(--fa-orange-deep);
}

@media (max-width: 575.98px) {
    .fa-apply .fa-apply__h {
        font-size: 20px;
    }
}
