#madrigal-uk-consent-form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: "fustat", Arial, sans-serif;
}

.madrigal-form-row{
    display: flex;
    align-items: center;
    gap: 2rem;
}


.madrigal-form-column{
    flex: 1;
    margin-right: 0;
}

label{
    font-size: 0.8rem;
    font-weight: 600;
    padding-left: 1.1rem;
    color: #ffffff;
}

label span.required{
    color: red;
}

form input,
select{
    padding: 0.5rem;
    background-color: #f0fafe;
    border: none !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 0.8rem !important;

    &:focus{
        outline: none !important;
        box-shadow: 0 0 0 2px #04aced !important;
    }
}

select{
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2300014D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 0.7rem;
}

.madrigal-field-error{
    color: red;
    font-size: 0.8rem;
}

.madrigal-age-confirmation{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;

    label{
        font-weight: 400;
        padding-left: 0;
    }

    label span:not(.required){
        padding-left: 0.5rem;
    }
}
.madrigal-data-protection-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    background-color: #f4f3ef;
    padding: 2rem 2.5rem;

    a{
        color: #00014D;
        text-decoration: underline !important;
    }

    label{
        font-weight: 400;
        padding-left: 0;
        color: #242423;
    }

    label span:not(.required){
        padding-left: 0.5rem;
    }
}

.madrigal-data-protection-title{
    font-weight: bold;
    font-size: 1.2rem;
}

.madrigal-data-protection-footer{
    width: 80%;
    font-size: 0.8rem;
    background-color: #c6e6ef;
    border-radius: 15px;
    margin-top: 2rem;
    padding: 1rem 2.5rem;

    > a{
        color: #00014D;
        text-decoration: underline !important;
    }
}

.madrigal-honeypot{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.madrigal-form-actions{
    display: flex;
    justify-content: center;

    > button{
        background-color: #FF6C00;
        color: #00014D;
        font-weight: bold;
        border: none;
        padding: 0.5rem 1.5rem;
        border-radius: 12px;
        cursor: pointer;
        font-size: 1rem;

        &:hover{
            background-color: #005fbf;
        }
    }
}

#madrigal-submit-button:disabled{
    cursor: not-allowed;
    opacity: 0.7;
}

.madrigal-submit-spinner{
    display: none;
    width: 1em;
    height: 1em;
    margin-left: 0.6rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: madrigal-spin 0.6s linear infinite;
}

#madrigal-submit-button[data-state="loading"] .madrigal-submit-spinner{
    display: inline-block;
}

@keyframes madrigal-spin{
    to{
        transform: rotate(360deg);
    }
}

.madrigal-success{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.madrigal-success-image{
    max-width: 120px !important;
    height: auto;
}

.madrigal-success-heading{
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
}

.madrigal-success-message{
    font-size: 0.9rem;
    color: #ffffff !important;
    margin: 1rem 0 0 0;
}

.madrigal-progressive-reveal{
    position: relative;
}

#madrigal-progressive-collapsed{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#madrigal-progressive-collapsed.is-collapsed{
    max-height: 3rem;
    overflow: hidden;
    filter: blur(4px);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    transition: max-height 0.3s ease, filter 0.3s ease;
}

button.madrigal-progressive-toggle{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50% !important;
    border: none !important;
    background-color: transparent !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

button.madrigal-progressive-toggle:hover{
    background-color: #FF6C0080 !important;
}

.madrigal-progressive-toggle[hidden]{
    display: none;
}

.madrigal-progressive-chevron{
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -0.2rem;
}