@media (prefers-reduced-motion: no-preference) {
    @media (prefers-reduced-motion: no-preference) {
        .topic-block-title {
            display: none !important;
        }
    }
}

div#warning {
    margin-top: 10px;
    background-color: #ffe4e1;
    color: #2f4f4f;
    padding: 20px;
    border: 1px dashed #000;
}

.form-fields {
    font-size: 14px;
}

.flex-2-large {
    display: flex;
    gap: 20px; /* Space between the two containers */
    width: 100%;
}

.topic-page ul {
    margin: 12px 0;
}

.topic-block-body {
    margin-left: 0px;
    line-height: 20px;
    margin: 12px 0;
}

    .topic-block-body h1 {
        color: #007ba4;
        padding-bottom: .5rem;
    }

.topic-page .page-body {
    line-height: 20px;
    font-size: 14px;
    color: #888;
}

.black-white-container.hidden-mobile,
.section4.mainform.b2bform.inmeet-form.light-gray-container {
    flex: 1;
    margin-top: 30px;
}

.section4.mainform.b2bform.inmeet-form.light-gray-container {
    background-color: #eee;
    padding: 20px;
}

.black-white-container.hidden-mobile {
}

/* Stack on mobile */
@media (max-width: 768px) {
    .container-wrapper {
        flex-direction: column;
    }

    /* Hide the black-white-container on mobile as per your class name */
    .black-white-container.hidden-mobile {
        display: none;
    }
}

.TitelBox {
    padding: 10px;
    font-size: 16px;
    background: #007ba4;
    color: white;
}

.TitelBox-FORM {
    color: #007ba4;
    font-size: 16px;
    padding: 30px
}

.Steps {
    padding: 15px;
    border: 1px solid #777;
    line-height: 20px;
}

    .Steps ul li {
        margin-bottom: 20px;
    }

.step-header {
    color: #007ba4;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.steps-number-orange {
    font-size: 1.1rem;
    background-color: #ef9645;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
}


/* Form grid layout */
@media (prefers-reduced-motion: no-preference) {
    @media (prefers-reduced-motion: no-preference) {
        .inputs {
            display: flex;
            grid-template-columns: 200px 1fr;
            align-items: center;
            gap: 15px;
            /*margin-left: 20px;*/
        }
    }
}

.inputs label {
    font-weight: bold;
    text-align: left;
    font-size: .85rem;
    color: #777;
}

    .inputs label.left {
        text-align: left;
        width:45%;
    }

    .inputs label.required-input::after {
        content: " *";
        color: #e74c3c;
    }

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 5px;
}

/* Special handling for postcode and housenumber */
.inputs input.postcode {
    width: 212px;
    margin-right: 10px;
}

.inputs input.housenumber {
    width: 100px;
}



#addressedit {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
    margin-left: 18px;
}

    #addressedit a {
        color: #2196F3;
        text-decoration: none;
        cursor: pointer;
        margin-left: 5px;
    }

        #addressedit a:hover {
            text-decoration: underline;
        }

/* Error message styling */
.message-error {
    grid-column: 2;
    color: #e74c3c;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 5px;
}

.field-validation-valid {
    grid-column: 2;
    color: #e74c3c;
    font-size: 12px;
    min-height: 18px;
    display: block;
}

/* Textarea specific */
textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Submit button */
.submitbutton {
    grid-column: 1 / -1;
    background-color: #ec9546;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 20px auto;
    display: block;
    width: 300px;
}


    .submitbutton i {
        margin-right: 8px;
    }

.section4 > div:last-child {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 10px;
    padding-bottom: 20px;
    font-weight: bold;
}

.wait-icon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

        .inputs label {
            text-align: left;
            padding-right: 0;
        }

    .submitbutton {
        width: 100%;
    }

    .inputs input.postcode,
    .inputs input.housenumber {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Country select specific */
#CountryId {
    padding: 10px;
}


/* Radio and checkbox alignment (if added later) */
.inputs input[type="radio"],
.inputs input[type="checkbox"] {
    margin-right: 8px;
}

/* Helper text styling */
::placeholder {
    color: #999;
    font-style: italic;
}


#inmeet-aanvraag .required {
    display: none;
}

.standard-light-border {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.TitelInfoBox {
    color: #007ba4;
}

.Infobox {
    color: #888;
}

.inmeet-form-new {
    padding: 10px;
}

    .inmeet-form-new .TitelBox-FORM {
        padding:0px;
    }


.inmeet-form-new .complete {
    margin-top: 10px;
    background-color: #008000;
    color: #fff;
    padding: 20px;
}

    .inmeet-form-new .header {
        text-align: left;
        color: white;
        background-color: #007BA4;
        display: block;
        padding: 15px;
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }

.option-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

    .option-row:hover {
        background-color: #e9e9e9;
    }

.option-radio {
    margin-right: 15px;
}

.option-label {
    flex-grow: 1;
}

#datepicker {
    width: 50%;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.ui-datepicker {
    border: none;
    background: transparent;
    width: 100%;
}

.ui-datepicker-header {
    background: transparent;
    border: none;
    color: #000;
    text-align: center;
}

.ui-datepicker-prev, .ui-datepicker-next {
    cursor: pointer;
    color: #000;
}

.ui-datepicker-title {
    font-size: 1.2em;
    margin: 0;
}

.ui-datepicker-calendar {
    width: 100%;
}

    .ui-datepicker-calendar th {
        color: #000;
        font-weight: normal;
    }

    .ui-datepicker-calendar td {
        padding: 5px;
        border: none;
    }

    .ui-datepicker-calendar .ui-state-default {
        padding: 16px;
        background: #fff;
        border: 1px solid #ddd;
        color: #000;
        border-radius: 50%;
        width: 5em;
        height: 5em;
        line-height: 2em;
        text-align: center;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .ui-datepicker-calendar .ui-state-active {
        background: #007BFF !important;
        color: #fff !important;
    }

    .ui-datepicker-calendar .ui-state-hover {
        background: #e9ecef !important;
        color: #000 !important;
    }

    .ui-datepicker-calendar .ui-state-highlight {
        background: orange !important;
        color: #fff !important;
    }

.ui-datepicker-week-end .ui-state-default {
    display: block;
    opacity: 40%;
}




@media screen and (max-width: 580px) {


    .inputs input[type="text"], .inputs input[type="password"], .inputs input[type="email"], .inputs input[type="tel"], .inputs select, .inputs textarea {
        width: 496px;
        max-width: 100%;
        vertical-align: middle;
       /* margin-right: 30px;*/
    }


    .topic-block-title {
        display: block !important;
    }

    .topic-block-body {
        margin-left: 0;
    }

        .topic-block-body h1 {
            color: #007ba4;
            font-size: 1.5rem;
            margin: 1rem 0;
        }

    /* Main containers */
    .flex-2-large {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .black-white-container.hidden-mobile,
    .section4.mainform.b2bform.inmeet-form.light-gray-container {
        margin-top: 20px;
        width: 100%;
    }

    .section4.mainform.b2bform.inmeet-form.light-gray-container {
        background-color: #eee;
    }

    .black-white-container.hidden-mobile {
        display: none;
    }


    .TitelBox {
        padding: 12px;
        font-size: 1rem;
        background: #007ba4;
        color: white;
        margin: 0;
    }

    .TitelBox-FORM {
        color: #007ba4;
        font-size: 1rem;
        padding: 20px 15px;
    }

    .Steps {
        padding: 15px;
        border: 1px solid #777;
        line-height: 1.5;
        margin: 10px 0;
        font-size: 0.9rem;
    }   

    .step-header {
        color: #007ba4;
        display: flex;
        align-items: center;
        margin: 10px 0;
        padding-bottom: 10px;
    }

    .Steps ul li {
        margin-bottom: 20px;
    }

    .steps-number-orange {
        font-size: 0.9rem;
        background-color: #ef9645;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        margin-right: 10px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-weight: bold;
        flex-shrink: 0;
    }

    .inputs {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .inputs label {
            font-weight: 600;
            text-align: left;
            font-size: 0.85rem;
            margin-bottom: 4px;
            margin-left: -25px;
            width: 90% !important;
        }

            .inputs label.required-input::after {
                content: " *";
                color: #e74c3c;
            }

    .required {
        color: #e74c3c;
        font-weight: bold;
        margin-left: 3px;
    }

    .inputs input,
    .inputs select,
    .inputs textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
       /* font-size: 1rem;*/
        box-sizing: border-box;
    }

        .inputs input.postcode {
            width: 50%;
            margin-bottom: 5px;
        }
                
        .inputs input.housenumber {
            width: 30%;
            margin-bottom: 5px;
        }

    #addressedit {
        display: block;
        color: #777;
        font-size: 0.85rem;
        margin-left: 10px;
    }

        #addressedit a {
            color: #2196F3;
            text-decoration: none;
            cursor: pointer;
            margin-left: 5px;
        }

            #addressedit a:hover {
                text-decoration: underline;
            }

    .message-error,
    .field-validation-valid {
        color: #e74c3c;
        font-size: 0.8rem;
        margin-top: 4px;
        display: block;
    }

    textarea {
        width: 100%;
        resize: vertical;
        min-height: 100px;
        font-family: inherit;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    #datepicker {
        clear: both;
        width: 100%;
        margin: 0 auto;
        font-family: 'Arial', sans-serif;
    }

    .ui-datepicker-calendar .ui-state-default {
        padding: 5px;
        background: #fff;
        border: 1px solid #ddd;
        color: #000;
        border-radius: 50%;
        width: 3em;
        height: 3em;
        line-height: 2em;
        text-align: center;
        margin: 0 auto;
        margin-bottom: 10px;
    }
}

@media (min-width: 770px) {

    #datepicker {
        clear: both;
        width: 100%;
        margin: 0 auto;
        font-family: 'Arial', sans-serif;
    }

}