:root {
    --ezas-model-card-bg: #fff;
    --ezas-model-card-border: #ddd;
    --ezas-model-card-selected: #f7f7f7;
}

.ezas-model-selector {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ezas-model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ezas-model-card {
    position: relative;
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ezas-model-card__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ezas-model-card__image img,
.ezas-model-card__image--placeholder {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.ezas-model-card__name {
    font-size: 8px;
    font-weight: 500;
    color: #7f7f7f;
    text-transform: uppercase;
}

.ezas-model-card__tick {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: border-color 0.2s ease;
}

.ezas-model-card__tick::after {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.ezas-model-card__checkbox:checked+.ezas-model-card__image+.ezas-model-card__name+.ezas-model-card__tick,
.ezas-model-card--selected .ezas-model-card__tick {
    border-color: var(--color-red, #b72026);
    background-color: transparent;
}

.ezas-model-card__checkbox:checked+.ezas-model-card__image+.ezas-model-card__name+.ezas-model-card__tick::after,
.ezas-model-card--selected .ezas-model-card__tick::after {
    opacity: 1;
    border-color: var(--color-red, #b72026);
}

.ezas-model-card:has(.ezas-model-card__checkbox:checked) {
    box-shadow: 0 0px 10px rgb(0 0 0 / 25%);
}

.ezas-model-cta {
    align-self: center;
    border: none;
    background-color: var(--color-red, #b72026);
    color: #fff;
    border-radius: 999px;
    padding: 14px 56px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ezas-model-cta:hover {
    transform: translateY(-2px);
}

/* Modal */
.ezas-model-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 12000;
}

.ezas-model-modal.is-open {
    display: block;
}

.ezas-model-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ezas-model-modal__title {
    padding-bottom: 60px;
}

.ezas-model-modal__dialog {
    position: relative;
    background: #fff;
    max-width: 960px;
    padding: 60px;
    margin: 5% auto;
    border-radius: 34px;
    overflow: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
    height: 80%;
}

.ezas-model-modal__content {
    display: flex;

    gap: 32px;
}

.ezas-model-modal__left,
.ezas-model-modal__form {
    flex: 1;
}

.ezas-model-modal__divider {
    width: 1px;
    background: #000;
}

span.ezas-model-modal__selection-label {
    color: #000;
}

.ezas-model-modal__selection-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.ezas-model-modal__selection {
    margin-bottom: 30px;
}

.ezas-model-modal__selection-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    gap: 0px;
}

.ezas-model-modal__selection-pill span {
    font-size: 8px;
    font-weight: 500;
    color: #7f7f7f;
    text-transform: uppercase;
}

.ezas-model-modal__selection-pill img {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

.ezas-model-modal__select,
.ezas-model-modal__textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: #fff;
    font-family: 'Gotham', sans-serif;
    border-color: #000 !important;
    border-width: 2px;
    border-radius: 5px;
}

.ezas-model-modal__textarea {
    min-height: 160px;
}

.ezas-model-modal__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    padding-right: 48px;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
    height: 45px !important;
    min-height: 45px !important;
    border-color: #000 !important;
    border-width: 2px;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.ezas-model-modal__select[multiple] {
    background-image: none;
    min-height: 160px !important;
    height: auto !important;
    padding-right: 12px;
    overflow-y: auto;
}

.ezas-model-modal__select:focus {
    outline: none;
    border-color: var(--color-red, #b72026);
    box-shadow: 0 0 0 3px rgba(183, 32, 38, 0.15);
}

.ezas-model-modal__select::placeholder,
.ezas-model-modal__select option:first-child {
    color: #9b9b9b;
    font-weight: 400;
}

.ezas-model-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.ezas-model-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 40px 32px;
    border-top: 1px solid #ededed;
    background-color: #fafafa;
    flex-wrap: wrap;
}

.ezas-model-modal__footer-copy {
    flex: 1;
    min-width: 220px;
}

.ezas-model-modal__footer-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 600;
}

.ezas-model-modal__footer-text {
    margin: 0;
    font-size: 0.95rem;
    color: #3c3c3c;
}

.ezas-model-modal__footer-note {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #7c7c7c;
}

.ezas-model-modal__footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background-color: var(--color-red, #b72026);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.ezas-model-modal__footer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .ezas-model-modal__content {
        flex-direction: column;
    }

    .ezas-model-modal__divider {
        height: 1px;
        width: 100%;
    }

    .ezas-model-modal__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ezas-model-modal__footer-cta {
        width: 100%;
        justify-content: center;
    }
}

.ezas-model-modal__content .hide {
    display: none;
}

.ezas-model-modal__content .frm_form_field input {
    background-color: white;
    height: 36px !important;
    min-height: 36px !important;
    border-color: #000 !important;
    border-width: 2px;
}

.ezas-model-modal__content .frm_form_field label.frm_primary_label {
    font-size: 1rem;
    color: #000 !important;
}

.ezas-model-modal__content .frm_form_field {
    margin-bottom: 16px !important;
}

.ezas-model-modal__content .frm_form_field .frm_radio input {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    border-radius: 0px !important;
    border-color: #000 !important;
    background-color: #fff !important;
    border-width: 2px !important;
}

.ezas-model-modal__content .frm_form_field .frm_radio label,
.ezas-model-modal__content .frm_radio label {
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 1rem;
}

.ezas-model-modal.has-thank-you .ezas-model-modal__left,
.ezas-model-modal.has-thank-you .ezas-model-modal__divider {
    display: none;
}

.ezas-model-modal.has-thank-you .ezas-model-modal__form {
    flex: 1 1 100%;
}

.modal__content .frm_form_field .frm_radio input::before {
    height: 11px;
    width: 11px;
}

@media (max-width: 600px) {
    .ezas-model-modal__dialog {
        padding: 20px;
    }

    .ezas-model-modal__title {
        padding-bottom: 20px;
        font-size: 2rem;
    }

    .ezas-model-modal__dialog .with_frm_style .frm_form_fields>fieldset {
        padding: 0px !important;
    }
}