:root {

    --color-background: #FFFFFF;
    --color-primary: #C0272D;
    --color-primary-container: #C0272D;
    --color-secondary: #054B55;
    --color-text-gray: #40454D;

    --color-button-primary: #C0272D;
    --color-button-primary-on: #FFF;
    --color-button-primary-hover: #9A1F24;

    --color-button-secondary: #ECECEC;
    --color-button-secondary-on: #C0272D;
    --color-button-secondary-hover: #CCCCCC;

}

@font-face {
    font-family: 'Regular';
    font-weight: 400;
    font-style: normal;
    src: url("fonts/DMSans-Regular.woff2") format('woff2');
}

@font-face {
    font-family: 'Medium';
    font-weight: 500;
    font-style: normal;
    src: url("fonts/DMSans-Medium.woff2") format('woff2');
}

@font-face {
    font-family: 'Steelfish';
    font-weight: 400;
    font-style: normal;
    src: url("fonts/Steelfish-Regular.woff2") format('woff2');
}

@font-face {
    font-family: 'Steelfish';
    font-weight: 700;
    font-style: normal;
    src: url("fonts/Steelfish-Regular-Bold.woff2") format('woff2');
}


/******************************************************************************** global */


body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Regular';
    color: var(--color-primary);
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--color-button-primary);
    transition: color .2s;
}

a:hover {
    color: var(--color-tertiary);
}

header,
footer,
main,
article,
section,
aside,
dialog,
form {
    position: relative;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    margin: 0px;
    padding: 0px;
}

main,
article {
    top: 0px;
    width: 100%;
    height: auto;
    min-height: 100%;
}

button {
      font-family: 'Regular';
}

body.red {
    background-color: var(--color-primary);
}

article {
    max-width: 1440px;
    margin: 0 auto;
}

@media only screen and (min-width: 1300px) and (min-height: 601px) {

    body.red {
        background-color: #FFF;
    }

    main {
        margin: 0 auto;
        display: flex;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        max-width: 1440px;
    }

    article {
        height: 600px;
        min-height: auto;
        background: #fff;
        box-shadow: 0px 0px 30px 10px rgba(0, 0, 0, 0.25);
    }

    main.animate article {
        box-shadow: none;
    }

}

@media only screen and (max-width: 1299px) and (min-width: 600px) {

    main {
        display: flex;
        height: auto;
        min-height: 100%;
        justify-content: center;
        align-items: center;
    }

}


strong {
    font-family: 'Medium';
    font-weight: normal;
    color: var(--color-tertiary);
}

main.animate {
    position: fixed;
    top: 0px;
    left: 0px;
    max-width: none;
    width: 100vw;
    opacity: 1;
    transition: opacity .5s ease-out;
}

main.fadeout {
    opacity: 0;
}


/******************************************************************************** home  */

#home {
    display: flex;
    flex-direction: row;
    background-color: var(--color-primary);
}

#home .video {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
}

#home .video video {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#home section {
    flex: 1 1 auto;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 80px;
}

#home section h1 {
    font-family: 'Steelfish';
    font-size: 4.9rem;
    line-height: 110%;
    font-weight: normal;
    max-width: 500px;
    margin-bottom: 32px;
    box-sizing: border-box;
}

#home section h2 {
    font-size: 2rem;
    font-weight: normal;
    text-wrap: balance;
    max-width: 500px;
    ;
}


#home section .bottom {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: 32px;
    position: relative;
}

#home section .bottom button {
    padding: 16px 40px;
    background: #FFF;
    color: var(--color-primary);
    border: none;
    font-size: 1.125rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .25s, color .25s, opacity .25s;
}

#home section .bottom button:hover {
    background: #CCC;
    color: #C0272D
}

#home section .bottom a {
    color: #FFF;
    font-size: 1.125rem;
    text-underline-offset: 3px;
    transition: color .25s;
}

#home section .bottom a:hover {
    color: #CCC;
}

#home section .bottom span {
    font-family: 'Steelfish';
    color: #FFF;
    font-size: 3.5rem;
    position: absolute;
    right: 0px;
}



@media only screen and (max-width: 1300px) and (min-width: 781px) {

    #home {
        max-height: 600px;
        width: auto;
    }

    #home .video {
        max-width: 40%;
        display: flex;
        height: auto;
        margin-right: 4vh;
        aspect-ratio: unset;        
    }

    #home section {
        padding: 42px 0 100px 40px;
    }

    #home section h1 {
        font-size: 4rem;
        margin-bottom: 32px;
    }

    #home section h2 {
        font-size: 1.8rem;
    }


    #home section .bottom span {
        left: 0px;
        margin-top: 145px
    }

}

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

    #home {
        display: flex;
        flex-direction: column-reverse;
        min-height: 100%;
    }

     #home .video {
        display: flex;  
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin: 0;   
    }
    
    #home section {
        flex: 1 1 auto;
        color: #FFF;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 20px 80px;
        margin: 0;
        box-sizing: border-box;
    }

    #home section h1 {
        font-size: 3rem;
        margin-bottom: 12px;
    }

    #home section h2 {
        font-size: 1.4rem;
    }

    #home section .bottom {
        gap: 20px;
        margin-top: 20px;
    }

    #home section .bottom button {
        padding: 11px 40px;
        font-size: 1rem;
    }

    #home section .bottom a {
        font-size: 1rem;
    }

    #home section .bottom span {
        font-size: 2rem;
        left: 0px;
        margin-top: 116px
    }


}

@media only screen and (max-width: 780px) and (max-height: 500px) {

    #home .video {
        display: flex;
        position: absolute;        
        flex: 0 0 auto;
        height: 100%;
        width: 100vw;
        margin: 0;        
    }

    #home .video video {
        height: 100%;
        width: 100vw;
        object-fit: cover;
        object-position: center center;
    }

    #home section {
        z-index: 1;
        flex: 1 1 auto;
        color: #FFF;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 20px 80px;
        margin: 0;
        box-sizing: border-box;
        background: #000000b8;
    }


}

@media only screen and (max-width: 780px) and (max-height: 750px)  {

    #home {
        flex-direction: column;
    }

}


/******************************************************************************** board */


.board.question {
    display: flex;
}

.board img.bg_top_right {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 270px;
    height: auto;
}

.board img.bg_bottom_right {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 180px;
    height: auto;
}

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

    .board img.bg_top_right,
    .board img.bg_bottom_right {
        display: none;
    }

}

/******************************************************************************** questions */

.board.question aside {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.board.question aside svg * {
    transition: fill .5s, stroke .5s;
}

.board.question aside svg g rect {    
    fill: #FFF;
}
.board.question aside svg g path {
    fill: #9fa2a6;
    fill-opacity: 1;
    stroke: #9fa2a6;
}

.board.question aside.letter_1 svg g[data-step="1"] rect,
.board.question aside.letter_2 svg g[data-step="1"] rect,
.board.question aside.letter_3 svg g[data-step="1"] rect,
.board.question aside.letter_4 svg g[data-step="1"] rect,
.board.question aside.letter_5 svg g[data-step="1"] rect,
.board.question aside.letter_6 svg g[data-step="1"] rect,
.board.question aside.letter_7 svg g[data-step="1"] rect,
.board.question aside.letter_2 svg g[data-step="2"] rect,
.board.question aside.letter_3 svg g[data-step="2"] rect,
.board.question aside.letter_4 svg g[data-step="2"] rect,
.board.question aside.letter_5 svg g[data-step="2"] rect,
.board.question aside.letter_6 svg g[data-step="2"] rect,
.board.question aside.letter_7 svg g[data-step="2"] rect,
.board.question aside.letter_3 svg g[data-step="3"] rect,
.board.question aside.letter_4 svg g[data-step="3"] rect,
.board.question aside.letter_5 svg g[data-step="3"] rect,
.board.question aside.letter_6 svg g[data-step="3"] rect,
.board.question aside.letter_7 svg g[data-step="3"] rect,
.board.question aside.letter_4 svg g[data-step="4"] rect,
.board.question aside.letter_5 svg g[data-step="4"] rect,
.board.question aside.letter_6 svg g[data-step="4"] rect,
.board.question aside.letter_7 svg g[data-step="4"] rect,
.board.question aside.letter_5 svg g[data-step="5"] rect,
.board.question aside.letter_6 svg g[data-step="5"] rect,
.board.question aside.letter_7 svg g[data-step="5"] rect,
.board.question aside.letter_6 svg g[data-step="6"] rect,
.board.question aside.letter_7 svg g[data-step="6"] rect,
.board.question aside.letter_7 svg g[data-step="7"] rect {
    stroke: var(--color-primary);
    fill: var(--color-primary);
}

.board.question aside.letter_1 svg g[data-step="1"] path,
.board.question aside.letter_2 svg g[data-step="1"] path,
.board.question aside.letter_3 svg g[data-step="1"] path,
.board.question aside.letter_4 svg g[data-step="1"] path,
.board.question aside.letter_5 svg g[data-step="1"] path,
.board.question aside.letter_6 svg g[data-step="1"] path,
.board.question aside.letter_7 svg g[data-step="1"] path,
.board.question aside.letter_2 svg g[data-step="2"] path,
.board.question aside.letter_3 svg g[data-step="2"] path,
.board.question aside.letter_4 svg g[data-step="2"] path,
.board.question aside.letter_5 svg g[data-step="2"] path,
.board.question aside.letter_6 svg g[data-step="2"] path,
.board.question aside.letter_7 svg g[data-step="2"] path,
.board.question aside.letter_3 svg g[data-step="3"] path,
.board.question aside.letter_4 svg g[data-step="3"] path,
.board.question aside.letter_5 svg g[data-step="3"] path,
.board.question aside.letter_6 svg g[data-step="3"] path,
.board.question aside.letter_7 svg g[data-step="3"] path,
.board.question aside.letter_4 svg g[data-step="4"] path,
.board.question aside.letter_5 svg g[data-step="4"] path,
.board.question aside.letter_6 svg g[data-step="4"] path,
.board.question aside.letter_7 svg g[data-step="4"] path,
.board.question aside.letter_5 svg g[data-step="5"] path,
.board.question aside.letter_6 svg g[data-step="5"] path,
.board.question aside.letter_7 svg g[data-step="5"] path,
.board.question aside.letter_6 svg g[data-step="6"] path,
.board.question aside.letter_7 svg g[data-step="6"] path,
.board.question aside.letter_7 svg g[data-step="7"] path {
    fill: #FFF;
    fill-opacity: 1;
    stroke: #fff;
}

.board.question section {
    position: relative;
    display: block;
    width: 40%;
    margin: 0px 80px;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.board.question section:before {
    position: absolute;
    content: ' ';
    display: none;
    background: #fff;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity .5s;
}


.board.question section.animate:before {
    display: block;
}

.board.question section.animate.fadein:before {
    display: block;
    opacity: .6;
}

.board.question section form {
    padding: 0px;
    width: 100%;
    box-sizing: border-box;
}

.board.question section .question {
    transition: opacity .35s ease-in-out, max-height .35s ease-in-out;
}

.board.question section .question:not(:first-of-type) {
    display: none;
}

.board.question section .question.animate {
    display: block;
    opacity: 0;
    max-height: 0;
}

.board.question section .question.next {
    display: block;
    opacity: 1;
    max-height: 1000px;
}

.board.question section fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.board.question section legend {
    font-size: 1.5rem;
    color: var(--color-text-gray);
    text-wrap: balance;
}

.board.question section legend p {
    margin: 0;
    padding: 0;
}


.board.question section form label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 20px;
    width: fit-content;
    color: var(--color-text-gray);
    font-size: 1.25rem;
    cursor: pointer;
    border: 1px solid var(--color-text-gray);
    box-sizing: border-box;
    padding: 8px;
    transition: background-color .5s, color .5s, border-color .5s;
}

.board.question section form input[type="radio"] {
    display: none;
}

.board.question section form input[type="radio"]:checked+label {
    background: var(--color-primary);
    color: #FFF;
    border-color: var(--color-primary);
}

.board.question section form input[type="radio"]:not(:checked) + label:hover {
    background: rgba(217, 217, 217, 0.5);
}



.board.question section form .buttons {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.board.question section form button {
    background-color: var(--color-button-primary);
    border: none;
    font-size: 1rem;
    padding: 11px 40px;
    color: var(--color-button-primary-on);
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .25s, color .25s, opacity .25s;  
}

main.animate .board.question section form button {
    pointer-events: none;
}

.board.question section form button.back {
    background-color: var(--color-button-secondary);
    color: var(--color-button-secondary-on);
}

.board.question section form button:not(:disabled):hover {
    background-color: var(--color-button-primary-hover);
}

.board.question section form button.back:not(:disabled):hover {
    background-color: var(--color-button-secondary-hover);
}

.board.question section form button:disabled {
    opacity: 0.50;
    cursor: default;
}

.board.question section form button.complete {
    background-image: none;
}

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


    .board.question section {
        width: 100%;
    }
    
    .board.question {
        max-width: 100%;
    }

    .board img.bg_top_right,
    .board img.bg_bottom_right {
        position: fixed;
    }
}

@media only screen and (max-width: 1299px) and (max-height: 900px) {

    .board img.bg_top_right,
    .board img.bg_bottom_right {
        display: none;
    }
}


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

    .board.question {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
        height: auto;
        max-height: 600px;
    }

    .board.question aside {
        position: relative;
        right: auto;
        top: 0px;
        width: 100%;
        height: auto;
        padding: 30px 10px 20px;
        transform: none;
        box-sizing: border-box;
        max-width: 680px;
    }

    .board.question aside svg {
        width: 100%;
        height: auto;
    }

    main.animate .board.question aside svg {
        visibility: hidden;
    }

}


@media only screen and (max-width: 1299px) and (min-width: 600px) {


    .board.question {
        height: auto;
        width: 100%;
        padding: 10px 100px 40px;
    }

    .board.question aside {
        margin-left: calc(-10% - 100px);
    }

    .board.question section {
        margin-left: -10%;
        padding-bottom: 40px;
    }

}

@media only screen and (max-width: 1110px) and (max-height: 600px) {

    .board img.bg_top_right {
        display: none
    }

}

@media only screen and (max-width: 950px) and (min-width: 600px) {

    .board.question aside,
    .board.question section {
        margin-left: 0;
    }
}

@media only screen and (min-width: 1299px) and (max-height: 599px) {

    .board.question section {
        padding: 20px 0;
    }

    .board.question aside {
        position: fixed;
    }

    .board img.bg_top_right,
    .board img.bg_bottom_right {
        display: none;
    }


}

@media only screen and (max-width: 1400px) and (min-width: 599px) and (min-height: 800px) {

    .board.question {
        height: 700px;
    }
}

@media only screen and (max-width: 1400px) and (min-width: 599px) and (max-height: 799px) {

    .board.question {
        height: 100vh;
    }
}


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

    .board.question section form {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .board.question section form legend {
        font-size: 1.25rem;
    }

    .board.question section form label:first-of-type {
        margin-top: 20px;
    }

    .board.question section form label {
        font-size: 1rem;
        ;
        margin-top: 16px;
    }

    .board.question section form .buttons {
        margin-top: 24px;
    }

    .board.question section form button {
        padding: 11px 31px;
    }

}

/******************************************************************************** results */

.board.results {
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    width: 100%;
}

.board.results section {
    flex: 1 1 auto;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 80px;
    box-sizing: border-box;
}

.board.results section h1 {
    font-family: 'Steelfish';
    font-size: 4.5rem;
    line-height: 110%;
    font-weight: normal;
    max-width: 500px;
    margin-bottom: 36px;
    box-sizing: border-box;
}

.board.results section em {
    font-style: normal;
    white-space: nowrap;
}

.board.results section h2 {
    font-size: 2rem;
    font-weight: normal;
    text-wrap: balance;
    max-width: 600px;
    ;
}

.board.results section h3 {
    font-size: 1.75rem;
    font-weight: normal;
    text-wrap: balance;
    margin-bottom: 40px;
}

.board.results section .bottom {
    display: flex;
    ;
    gap: 32px;
    align-items: center;
    margin-top: 36px;
    position: relative;
    ;
}

.board.results section .bottom button {
    padding: 16px 40px;
    background: #FFF;
    color: var(--color-primary);
    border: none;
    font-size: 1.125rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .25s, color .25s, opacity .25s;
    white-space: nowrap;
}

.board.results section .bottom button:hover {
    background: #CCC;
    color: #C0272D
}

.board.results section .bottom a {
    color: #FFF;
    font-size: 1.125rem;
    text-underline-offset: 3px;
    transition: color .25s;
}

.board.results section .bottom a:hover {
    color: #CCC;
}

.board.results aside {
    flex: 1 1 auto;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 42px 80px 42px 10px;
    box-sizing: border-box;
}

.board.results .bar {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.board.results section .bar {
    display: none;
}

.board.results .bar .start,
.board.results .bar .end {
    width: 4px;
    height: 42px;
    background-color: #FFF;
}

.board.results .bar .line {
    width: 100%;
    height: 5px;
    background-color: #FFF;
}

.board.results .bar .labels {
    position: absolute;
    font-family: 'Regular';
    color: #FFF;
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 154px;
    font-size: 1.5rem;
}

.board.results .bubble {
    position: absolute;
    left: 0px;
    width: calc(100% - 80px);
    height: 80px;
}

.board.results .bubble .head {
    position: absolute;
    width: 80px;
    height: 80px;
    background: url('../img/bubble.png') no-repeat;
    background-size: contain;
}

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

    .board.results {
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 100%;
        position: relative;
    }

    .board.results aside {
        display: none;
    }

    .board.results section .bar {
        display: flex;
        height: 100px;
        margin: 20px 0 20px;
    }

    .board.results section .bar .labels {
        font-size: 1rem;
        margin-top: 95px
    }

    .board.results section .bubble {
         width: calc(100% - 45px);
        height: 45px;
    }

    .board.results .bubble .head {
        width: 45px;
        height: 45px;
    }

    .board.results section {
        width: 100%;
        padding: 20px;
    }

    .board.results section h1 {
        font-size: 3rem;
        margin-bottom: 36px;
        box-sizing: border-box;
        margin-bottom: 16px;
    }

    .board.results section h2 {
        font-size: 1.4rem;
        max-width: 600px;
        font-weight: normal;
    }

    .board.results section h3 {
        font-size: 1.45rem;
        margin-bottom: 30px;
    }

    .board.results section .bottom {
        gap: 24px;
    }

    .board.results section .bottom button {
        padding: 11px 29px;
        font-size: 1rem;
    }

    .board.results section .bottom a {
        font-size: 1rem;
    }

}

@media only screen and (max-width: 1200px) and (min-width: 600px) {

    .board.results {
        align-items: center
    }

    .board.results section {
        max-width: 600px;
    }

    .board.results section .bubble {
        width: calc(100% - 60px);
        height: 60px;
    }

     .board.results section .bubble .head {
        width: 60px;
        height: 60px;
    }

    .board.results section h1 {
        font-size: 4.3rem;
        line-height: 110%;
        margin-bottom: 30px;
    }

    .board.results section h2 {
        font-size: 1.5rem;
    }

    .board.results section h3 {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

}

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

   main {
       display: flex;
       min-height: 100%;
  }

    .board.results section h3 {
        font-size: 1.45rem;
        margin-bottom: 10px;
    }

  .board.results section {
        padding: 20px;
    }

}

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

  .board.results section {
        padding: 10px 10px 10px;
    }

}


/******************************************************************************** dialog */

body:has(dialog.fullwidth.animate) {
    overflow: hidden;
}

dialog {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #1010107a;
    z-index: 100000;
    border: none;
    padding: 20px;
    transition: opacity .25s ease-in-out
}

dialog.animate {
    opacity: 0;
    display: flex;
}

dialog.fadein {
    opacity: 1;
}

dialog form {
    position: relative;
    margin: auto;
    top: 0px;
    left: 0px;
    width: 100%;
    max-width: 650px;
    max-height: 100%;
    height: auto;
    display: block;
    background-color: #ffffff;
    padding: 30px 40px;
    gap: 40px;
    box-shadow: 0px 0px 30px 10px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
}


dialog form.modal {
    padding: 40px 40px;
}

dialog.fullwidth form {
    max-width: 1440px;
    height: auto;
}


dialog .close img {
    pointer-events: none;
}

dialog form h1 {
    position: relative;
    font-size: 2.625rem;
    text-align: center;
    margin: 0;
    padding: 0;
    color: var(--color-primary);
    font-family: 'Steelfish';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

dialog form h1 em {
    font-style: normal;
    word-wrap: none;
    white-space: nowrap;
}

dialog.modal form h1 {
    font-size: 2.625rem;
    margin-bottom: 20px;
}


dialog form p {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    -webkit-font-smoothing: antialiased;

}

dialog form p.overview {
    padding: 0;
    margin: 0 0 20px;
    width: 100%;
    text-align: center;
}

dialog.modal form p {
    line-height: 130%;
    text-align: center;
}

dialog form label {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--color-text-gray);
    font-family: 'Regular';
    font-size: 0.875rem;
    margin-bottom: 5px;
}

dialog form .field {
    scroll-margin-top: 5px;
    margin: 20px 0 24px;
}

dialog form .columns {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 20px;
}

dialog form .columns .field {
    width: calc(50% - 10px);
    margin: 0;
}


dialog form input,
dialog form select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #D0D5DD;
    font-size: 1rem;
    font-family: 'Regular';
    color: var(--color-text-gray);
    border-radius: 0;
    outline: none;
    transition: border-color .25s;
}

dialog form select {
    appearance: none;
    background: none;
    background-image: url(../img/icon_select.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 24px auto;
}

dialog form select:invalid,
dialog form input::placeholder {
    color: #D0D5DD;
    -webkit-font-smoothing: antialiased;
}
dialog form select option {
    color: var(--color-text-gray);
}

dialog form input[type="text"]:focus,
dialog form input[type="email"]:focus {
    border: 1px solid var(--color-text-gray);
}

dialog form .field.checkbox {
    margin: 20px 0 0px;
}

dialog form .field.checkbox label {
    display: flex;
    cursor: pointer;
}

dialog form input[type="checkbox"] {
    position: relative;
    appearance: none;
    padding: 0;
    margin: 0;
    margin-top: -2px;
    flex: 0 0 auto;
    height: 25px;
    width: 25px;
    background-color: #F7F7F7;
    border: 1px solid #D0D5DD;
    margin-right: 16px;
    cursor: pointer;
}

dialog form input[type="checkbox"]:checked::after {
    position: absolute;
    content: '';
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    background: url(../img/icon_checkmark.svg) no-repeat;
    background-size: 90%;
    background-position: center center;
}

dialog form .field.checkbox.error input[type="checkbox"] {
    background-color: #c0272d94;
}

dialog form .field .error {
    max-height: 0px;
    margin-top: 5px;
    color: var(--color-primary);
    font-size: 1rem;
    opacity: 0;
    transition: opacity .25s, max-height .25s;
    pointer-events: none;
}


dialog form .field.error input,
dialog form .field.error select {
    border-color: var(--color-primary);
}

dialog form .field.error .error {
    opacity: 1;
    max-height: 40px;
}

dialog form .field.error select:invalid,
dialog form .field.error input::placeholder {
    color: var(--color-text-gray);
}


dialog form a {
    color: var(--color-text-gray);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-wrap: none;
    white-space: nowrap;
}

dialog form button {
    display: block;
    background-color: var(--color-button-primary);
    font-family: 'Medium';
    border: none;
    width: fit-content;
    margin: 30px auto 0;
    font-size: 1rem;
    padding: 11px 40px;
    color: var(--color-button-primary-on);
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .25s, color .25s;
}

dialog form button.remove_top_margin {
    margin: 10px auto 0;
}

dialog form button:hover {
    background-color: var(--color-button-primary-hover);
}

dialog form button.grey {
    background-color: var(--color-button-secondary);
    color: var(--color-button-secondary-on);
}

dialog form button.grey:hover {
    background-color: var(--color-button-secondary-hover);
}

dialog form .buttons {
    display: flex;
    width: fit-content;
    gap: 16px;
    margin: 0 auto;
}

dialog form .buttons button {
    margin-top: 10px;
    word-wrap: none;
    white-space: nowrap;
}

dialog.content {
    background: #fff;
    color: var(--color-text-gray);
    padding: 114px 140px;
    box-sizing: border-box;
    overflow: auto;
}

dialog.content.animate,
dialog.content.fadein {
    z-index: 100001;
    display: block !important;
}

dialog.content a.back {
    display: block;
    font-family: 'Medium';
    font-size: 1rem;
    text-decoration: none;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    padding-left: 26px;
    background: url('../img/icon_arrow_back.svg') no-repeat left center;
}

dialog.content>div h1 {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

dialog.content>div ol li {
    margin: 20px 0px;
}

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

    dialog form button.remove_top_margin {
        margin: 20px auto 0;
    }

}


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

    dialog.content {
        padding: 24px 20px;
    }

    dialog.content>div h1 {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

}

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

    dialog {
        padding: 0;
        background: #fff;
    }

    dialog.fullwidth form {
        max-width: none;
        box-shadow: none;
        padding: 20px;
    }

    dialog form button.remove_top_margin {
        margin: 20px auto 0;
    }


}

@media only screen and (min-width: 1299px) and (min-height: 600px) {

    dialog.fullwidth form {
        max-width: 1440px;
        height: 600px;
        box-shadow: none;
    }

    dialog.fullwidth {
       background: none;
    }

}

@media only screen and (max-width: 1440px) and (max-height: 800px)  {

    dialog.fullwidth {
        padding: 0;
        background: #fff;
    }

    dialog.fullwidth form {
        max-width: none;
        height: 100%;
        padding: 20px;
    }

}


@media only screen and (max-width: 1299px) and (max-height: 600px) {

    dialog {
        padding: 0;
        background: #fff;
    }

    dialog.fullwidth form {
        max-width: none;
        height: 100%;
        padding: 20px;
    }

}


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

    dialog {
        padding: 0;
        background: #fff;
    }

    dialog.modal form {
        width: 100%;
        box-shadow: none;
    }

    dialog form button {
        width: 100%;
    }

    dialog form .buttons {
        display: block;
        width: 100%;
        margin: 20px auto 0;
    }


    dialog form .columns {
        width: 100%;
    }

    dialog form .columns .field {
        width: 100%;
    }

    dialog form button.remove_top_margin {
        margin: 40px auto 0;
    }

    dialog.content>div h1 {
        font-size: 1.125rem;
        margin-bottom: 20px;
    }

}