/* DIALOGS */
dialog { display: block; pointer-events: none; border: none; opacity: 0; box-sizing: border-box; transform: translateX(100%); transition: all ease 0.25s; z-index: 8; }
dialog::backdrop { display: block; opacity: 0; transition: all ease 0.25s; background: rgba(0, 0, 0, 0); }

dialog[open] { opacity: 1; pointer-events: inherit; transform: translateX(0); }
dialog[open]::backdrop { opacity: 1; background: rgba(0, 0, 0, 0.6); }
div.backdrop { z-index: 8; position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 1; background: rgba(0, 0, 0, 0.6); }


/* NOTIFICATION WINDOW */
dialog.notification-wrapper { position: fixed; top: 0; left: 0; padding: 0; z-index: 999999; }
dialog.notification-wrapper .notification-window { position: relative; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 25px 60px; font-size: 1.1em; line-height: 1.1; max-width: 500px; pointer-events: auto; }
dialog.notification-wrapper .notification-window.info { background: var(--color1); }
dialog.notification-wrapper .notification-window.error { background: var(--error); }
dialog.notification-wrapper .notification-window .close { position: absolute; top: 20px; right: 20px; font-size: 1.4em; line-height: .5; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }

/* MODALS */
dialog.modal { position: fixed; top: 0; bottom: auto; right: 0; left: auto; margin: 0; padding: 45px; width: 600px; max-width: 100%; height: 100vh; max-height: none; overflow-y: scroll;}
dialog.modal .modal-close { position: absolute; top: 30px; right: 30px; width: 24px; height: 24px; cursor: pointer; }
dialog.modal .modal-close:hover { opacity: 0.6; }
dialog.modal .modal-close img { width: 100%; height: 100%; filter: var(--colorfilter1); }
dialog.modal .full { padding: 0 30px 30px; }
dialog.modal h3 { font-weight: 700; font-size: 1.2em; line-height: 1.2; display: block; margin-bottom: .5em; }
dialog.modal .close { width: 100%; }
dialog.modal .button-row { display: flex; justify-content: space-around; }

/* FORM */
dialog.modal .progress { position: relative; display: flex; gap: 10px; top: -15px; margin-bottom: 20px; width: calc(100% - 30px); }
dialog.modal .progress .step { display: flex; flex-direction: column; gap: 5px; width: 50%; }
dialog.modal .progress .step:before { font-size: 14px; font-weight: 500; opacity: 0.25; }
dialog.modal .progress .step .bar { width: 100%; height: 5px; border-radius: 5px; background-color: var(--bodycolor2); }

dialog.modal .progress .step.one:before { content: "1. Prijsoverzicht"; }
dialog.modal .progress .step.two:before { content: "2. Uw gegevens + Bestellen"; }

dialog.modal .progress .step.one:before { opacity: 0.5; }
dialog.modal .progress .step.one .bar { background-color: var(--color2); }

dialog.modal:has(.inner-screen2.active) .progress .step.one:before { color: #4caf50; opacity: 1; }
dialog.modal:has(.inner-screen2.active) .progress .step.one .bar { background-color: #4caf50; }
dialog.modal:has(.inner-screen2.active) .progress .step.two:before { opacity: 0.75; }
dialog.modal:has(.inner-screen2.active) .progress .step.two .bar { background-color: var(--color2); }

dialog.modal .inner { }

dialog.modal .inner .inner-screen1 { }
dialog.modal .inner .inner-screen1 h2 { }

dialog.modal .inner .inner-screen1 .table { margin-bottom: 30px; width: 282px; border: 2px solid #efefef; border-right: none; border-bottom: none; box-sizing: border-box; }
dialog.modal .inner .inner-screen1 .title,
dialog.modal .inner .inner-screen1 .price { display: flex; }
dialog.modal .inner .inner-screen1 .title > span,
dialog.modal .inner .inner-screen1 .price > span { padding: 10px; line-height: 1; border: 2px solid #efefef; border-left: none; border-top: none; box-sizing: border-box; }
dialog.modal .inner .inner-screen1 .title > span:first-of-type,
dialog.modal .inner .inner-screen1 .price > span:first-of-type { width: 160px; }
dialog.modal .inner .inner-screen1 .title > span:last-of-type,
dialog.modal .inner .inner-screen1 .price > span:last-of-type { width: 120px; font-weight: 700; }

dialog.modal .inner .inner-screen1 h3 { margin-top: 20px; }
dialog.modal .inner .inner-screen1 ul { margin-bottom: 20px; }
dialog.modal .inner .inner-screen1 ul li { margin-left: 20px; list-style: disc; }
dialog.modal .inner .inner-screen1 p { margin-bottom: 20px; }
dialog.modal .inner .inner-screen1 button.btn { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
dialog.modal .inner .inner-screen1 button.btn img { position: relative; top: 1px; margin-right: -2px; width: 20px; height: 20px; filter: var(--colorfilter1); }

dialog.modal .inner .inner-screen2 { }

dialog.modal .inner .inner-screen2 .form { padding: 0; width: 100%; min-width: 0; border-radius: 0; background-color: transparent; }
dialog.modal .inner .inner-screen2 .form h2 { }
dialog.modal .inner .inner-screen2 .form form { }
dialog.modal .inner .inner-screen2 .form form input:not(.btn.submit),
dialog.modal .inner .inner-screen2 .form form textarea { background-color: var(--bodycolor2); }


@media screen and (max-width: 1100px) {

    dialog.modal { top: 20px; right: 20px; padding: 30px; width: 100%; min-width: auto; max-width: calc(100% - 40px); height: calc(100% - 40px); border-radius: 8px; }
    dialog.modal .modal-close { top: 20px; right: 20px; }
    
    dialog.modal .progress { /*flex-direction: column;*/ gap: 8px; top: -5px; margin-bottom: 20px; }
    dialog.modal .progress .step { gap: 2px; width: 100%; }
    dialog.modal .progress .step.one:before { content: "1. Informatie"; }
    dialog.modal .progress .step.two:before { content: "2. Bestellen"; }

    dialog.modal .inner .inner-screen1 .table { width: 100%; }
    dialog.modal .inner .inner-screen1 button.btn { margin-top: 20px; margin-bottom: 5px; }

}
