/*https://www.youtube.com/watch?v=wL9YzgA13c4*/
/* Minute 25 -> transition */
/*Minute 31 -> media-query*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard Chrome und andere */
}

html{
    height: 100%;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f4f4;
    padding: 0 15px;
}

.head{
    position: relative;
    max-width: 900px;
    width: 100%;
    border-radius: 6px;
    height: 180px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
}

.main{
    position: relative;
    max-width: 900px;
    width: 100%;
    border-radius: 6px;
    padding: 30px;
    margin: 15px;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    height: auto;
    overflow: hidden;
    border: none;
}
.main header{
    position: relative;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333
}

.language {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}
.flag {
  width: 2em;
  height: calc(2em / 1.5);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid #333;
}
.flag:hover {
  transform: scale(1.2);
}

.main form{
    position: relative;
    margin-top: 16px;
    background-color: #fff;
}
.main form .form{
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}
.main form .form.secActive{
    visibility: visible;
    position: static;
}

.main form .details{
    margin-top: 30px;
}

.main form .title{
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin: 6px 0;
    margin-bottom: 8px;
    color: #333;
}

.main form .fields{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main form .input-field{
    display: flex;
    width: calc(100% / 3 - 15px);
    flex-direction: column;
    margin: 4px 0;
}
.wide{
    width: 100%;
    flex-grow: 1;
    flex-basis: 100%;
}

.input-field label{
    font-size: 14px;
    font-weight: 500;
    color: #2e2e2e;
}


.input-field input, .input-field select, .input-field textarea{
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 7px 10px 5px 10px;
    height: 36px;
    margin: 8px 0;
}
.input-field textarea{
    padding: 7px 10px 5px 10px;
    resize: none;
}
.input-field input:focus, .input-field select:focus, .input-field textarea:focus{
    background-color: rgba(0, 123, 255, 0.1);
    box-shadow: 0 0 5px 2px rgba(63, 63, 127, 0.7);
    /*border: 1px solid #ffffff;*/
}
input::placeholder, textarea::placeholder {
    color: #909090;
    opacity: 1;
}

.main .buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.main .buttons > * {
    max-width: 50%;
}
.main form button{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 200px;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    margin-top: 25px;
    background-color: #4070f4;
    cursor: pointer;
}
form button:hover{
    background-color: #265df2;
}
form button:focus{
    background-color: #265df2;
    box-shadow: 0 0 5px 2px rgba(63, 63, 127, 0.7);
    border: 1px solid #ffffff;
}
form button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}
form .buttons{
    display: flex;
    align-items: center;
}



.input-field .check {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.input-field .check input[type="checkbox"] {
    opacity: 0;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    position: absolute;
}
.input-field .check .checkmark {
    top: -1px;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    border: 1px solid #aaa;
    display: inline-block;
    position: relative;
}
.input-field .check input[type="checkbox"]:focus + .checkmark {
    background-color: #4070f4;
    box-shadow: 0 0 5px 2px rgba(63, 63, 127, 0.7);
    border: 1px solid #ffffff;
}
.input-field .check .checkmark::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 3px;
    width: 5px;
    height: 2px;
    border: 2px solid;
    border-color: transparent transparent #fff #fff;
    transform: rotate(-45deg);
    display: none;
}
.input-field .check input[type="checkbox"]:checked ~ .checkmark {
    background-color: #4070f4;
}
.input-field .check input[type="checkbox"] + .checkmark:hover {
    background-color: #265df2;
}
.input-field .check input[type="checkbox"]:checked ~ .checkmark::before {
    display: block;
}
.checktext {
    margin-left: .5em;
}

a {
    color: #4070f4;
    text-decoration: none;
}
a:hover {
    color: #265df2;
    text-decoration: underline;
}

@media (max-width: 750px) {
    .main form .input-field{
        width: calc(100% / 2 - 15px);
        margin: 4px 0;
    }
}

@media (max-width: 550px) {
    body {
        padding: 0;
    }
    .main {
        border-radius: 0;
    }
    .main form .input-field{
        width: calc(100%);
        margin: 4px 0;
    }
    .input-field textarea{
        height: 4em;
    }
}




.foot {
    color: #2e2e2e;
    width: 100%;
    font-size: .9em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-grow: 1;

}
.foot > div {
    text-align: center;
}
.foot p{
    margin: 5px 0;
}
.address-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.separator {
    display: inline;
    margin: 0 10px;
}
@media (max-width: 550px) {
    .separator {
        display: none;
    }
    .address-container {
        flex-direction: column;
    }
}