/*
 * legacy-form-v1.css: the form stylesheet core::shopify-pages.form-page printed inline on every legacy
 * form page, extracted once and served by the app, versioned by file name. The five per-form colours
 * the view wrote from the form record are CSS custom properties here, with the view's own defaults;
 * the landing-page renderer sets them on the form's wrapper. Never edit this file in place: a
 * change is a legacy-form-v2.css, so a page published against v1 keeps drawing as it did.
 */
.aico-form-row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: -8px !important;
    margin-right: -8px !important;
    margin-bottom: 16px !important;
}

.aico-form-column {
    box-sizing: border-box !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    flex-grow: 0 !important;
}

.aico-form-column[data-column-size="QUARTER_ROW"] {
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

.aico-form-column[data-column-size="ONE_THIRD"] {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

.aico-form-column[data-column-size="HALF_ROW"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.aico-form-column[data-column-size="FULL_ROW"],
.aico-form-column:not([data-column-size]) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.no-break {
    white-space: nowrap;
}

select.show-prefix-only {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

select.show-prefix-only option {
    color: initial;
    text-shadow: none;
}


/*Hardcoded green for FCSG WEURO*/
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.custom-radio:checked {
    border-color: green;
}

.custom-radio:checked::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 7px;
    height: 7px;
    background-color: green;
    border-radius: 50%;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border: 2px solid #ccc;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.custom-checkbox:checked {
    border-color: green;
    background-color: green;
}

.custom-checkbox:checked::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 3px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/*-----*/

.dropdown-toggle {
    background-color: transparent !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.dropdown-toggle:focus {
    border-color: #000000 !important;
}

:root {
    --main-fcz-color: #000000;
    --main-fcz-color-hover: #000000;

}

.aico-form-error {
    font-size: small;
    font-weight: bold;
    color: rgb(255, 126, 126);
}

.aico-form-minimum-length {
    font-size: small;
    font-weight: bold;
    color: rgb(255, 126, 126);
}


.d-none {
    display: none;
}

.form-label {
}

.form-item {
    display: flex;
    flex-direction: column;
}

.input-select {
    height: 40px;
    line-height: 40px;
    padding: 0.3rem 0.5rem;
    width: 100% !important;
    width: fit-content;
    border-radius: 3px;
    border: 1px solid;
    font-family: Arial;
    font-size: 1.6rem;
}

.aico-custom-form select,
.aico-custom-form .option {
    font-family: Arial;
    font-size: 1.6rem;
    height: 40px;
    line-height: 34px;
}

.aico-custom-form textarea {
    width: 100%;
    border-radius: 3px;
    border: 1px solid var(--legacy-form-border-color, #000000);
    min-height: 200px;
}

.multi-input {
    min-width: 0;
}

.aico-custom-form h4 {
    margin-bottom: 0.1rem;
    margin-top: 1rem;
}

.fieldset label {
    font-weight: 400;
    padding-left: 5px;
}

.d-flex-column {
    display: flex;
    flex-direction: column;
}

.d-flex {
    display: flex;
}

.fieldset {
    align-items: center;
}

.aico-custom-form {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
}

.custom-submission-button {
    background: #0384c6;
    border: none;
    border-radius: 3px;
    color: white;
    padding: 0.3rem 0.5rem;
}

.custom-submission-button:hover {
    background: #0372aa;
}

.aico-custom-form button {
    text-transform: uppercase;
    height: 48px;
    width: 100%;
    border-radius: 5px;
    outline: 0;
    border: none;
    background: var(--legacy-form-button-bg-color, #000000);
    color: var(--legacy-form-button-text-color, white);
    font-family: "Tusker Grotesk 6500";
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

.aico-custom-form button:hover {
    background: var(--legacy-form-button-hover-color, #000000);
}

.aico-custom-form #file-upload-button {
    text-transform: uppercase;
    height: 20px;
    outline: 0;
    border: 0;
    background: var(--legacy-form-border-color, #000000);
    color: white;
    font-family: "Tusker Grotesk 6500";
}

.aico_required {
    color: red;
}

.aico_form_success-message {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    text-align: center;
    width: 100%;
    background: #c5efc3;
}

.aico_form_error-message {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    text-align: center;
    width: 100%;
    background: #efc3c3;
}

.aico_label {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--legacy-form-text-color, black);
}

input[type="checkbox"]:checked + label + .text {
    display: block;
}

.disabled-submit-form-btn {
    background: #ccc !important;
    color: #000 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
