:root {
    --primary-color: #DA291C;
    --gray-color: #222222;
    --medium-gray-color: #acacac;
    --light-gray-color: #e4e4e5;    
}

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

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

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

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

body,
html {
    margin: 0;
    padding: 0;
    font-family: TedNextRegular;
    width: 100%;
}

header,
footer,
main,
article,
section {
    position: relative;
    box-sizing: border-box;
}

/********************************* header */

header {    
    top: 0px;
    left: 0px;
    z-index: 1;
    background-color: var(--primary-color);
    height: 120px;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 40px;
}

header .center {   
    max-width: 1100px;
    width: 100%;;
    margin: 0 auto;
}

header .logos {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

header .logos img {
    height: 100%;
    width: auto;
} 

header .logos .break {
    content: " ";
    display: block;
    height: 140%;
    background-color: #fff;;
    width: 2px;
} 

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

    header {    
        padding: 0px;
    }

    header .logos {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 0;        
    }

    header .logos .break {
        content: " ";
        display: block;
        height: 80%;
        background-color: #fff;;
        width: 1px;
    } 

    header .logos img {        
        width: 25%;
    }

}

/********************************* footer */

footer {
    width: 100%;
    margin: 0 auto;
    border-top: 2px solid var(--medium-gray-color);
    height: 200px;
    box-sizing: border-box;
    padding: 0 40px;
}

footer .center {   
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    margin-top: 45px;
    font-family: TedNextSemiBold;
    color: var(--gray-color);
}



/********************************* main */

main {
    box-sizing: border-box;
    padding: 0 40px;
}

main > h1 {    
    margin: 0;
    padding: 0;
    font-family: TedNextSemiBold;
    color: var(--primary-color);
    font-size: 3rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
    font-weight: normal;
}

@media only screen and (max-width: 800px) {
    main {
        padding: 0 20px;
    }
    main > h1 {   
        font-size: 2.5rem;
    }
}

main > p {    
    margin: 0;
    padding: 0;
    color: var(--gray-color);
    font-size: 1.2rem;
    line-height: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0;
}

main > p strong {    
    font-family: TedNextSemiBold;
}

main > ul {        
    position: relative;
    max-width: 800px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

main > ul li:before {     
  position: absolute;
  content: ' ';
  margin-left: -40px;
  margin-top: -3px;
  display: block;
  width: 25px;
  height: 25px;
  background-image: url(../img/icon_checkmark.jpg);
  background-size: contain;
}

/********************************* form */

form {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    margin-top: 45px;
    border-top: 2px solid var(--medium-gray-color);
}

section {    
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 100px;
}

section p {    
    font-family: TedNextSemiBold;
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.5em;
}

section p a {
    text-decoration: none;
    color: var(--primary-color);
} 

section.off {
    display: none;
} 

section h2,
section h3 {    
    margin: 0;
    padding: 0;
    font-family: TedNextSemiBold;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 50px;
    font-weight: normal;
}

section h3 {  
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    line-height: 1.5em;
}

section .field {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 40px;    
}

section .center {
    max-width: 600px;
    margin: 0 auto;
}

section .field {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 40px;    
}

section .sub {
    padding: 1px 25px 10px;
    margin-top: -10px;
    margin-bottom: 40px;
    background: #e4e4e561;
    border-radius: 6px;
}

section .sub .field {
    margin-bottom: 20px; 
}

section label {
    display: block;
    margin-bottom: 10px;
    font-family: TedNextSemiBold;
    color: var(--gray-color);
    font-size: 1.1rem;
}

section label strong {
    font-family: TedNextDemiBold;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;;
}

section .field input[type="text"],
section .field input[type="email"],
section .field input[type="date"],
section .field input[type="tel"],
section .field input[type="time"],
section .field textarea {
    font-family: TedNextRegular;
    font-size: 1rem;
    color: var(--gray-color);
    background: var(--light-gray-color);
    border: none;
    border-radius: 6px;
    padding: 10px 10px;
    box-sizing: border-box;
    width: 100%;
} 

section .field textarea {
    height: 200px;
}

section .field.checkbox {
    display: flex;
    align-items: center;
    height: 40px;    
    margin-top: 5px;
}

section .field.checkbox label {
    margin: 0;;
}


section .field input[type="checkbox"] {
    position: relative;
    appearance: none;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    background: var(--light-gray-color);
    height: 30px;
    width: 30px;
    border-radius: 6px;
    border: 1px solid var(--gray-color);
    margin-right: 15px;
} 

section .field input[type="checkbox"]:checked::after {
    position: absolute;
    content: '';
    top:calc(50% - 11px);
    left:calc(50% - 11px);
    width:22px;
    height:22px;
    background-color:var(--gray-color);
    border-radius:6px;
}

section .field input[type="date"] {
    appearance: none;
    padding: 12px 10px;
    box-sizing: border-box;
    height: 40px;
    appearance: none;
    font-family: TedNextRegular;
}

section .field select {
    width: 100%;
    background: var(--light-gray-color);
    border-radius: 6px;
    border: none;
    padding: 12px 10px;
    box-sizing: border-box;
    appearance: none;
    font-family: TedNextRegular;
    font-size: 1rem;
    color: var(--gray-color);
    background-image: url(../img/icon_dropdown.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    background-size: 14px auto;
}

section .field fieldset {
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 70px;
}

section .field ol {
    margin: 0;
    padding-left: 15px;
    line-height: 1.5em;;
}

section .field fieldset .field { 
    width: 20%;
    min-width: 100px;;
    flex: 0 0 auto;
    box-sizing: border-box;    
}

section .field fieldset::after {
    content: "";
    flex: auto;
  }

section .field input.padforremove {
    padding-right: 38px;
}

section .field .remove {
    position: absolute;
    background: none;
    width: 15px;
    height: 15px;
    margin-top: 12px;
    right: 12px;
    border: 0;
    background-image: url(../img/icon_remove.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 15px auto;
    cursor: pointer;
}

section .field-additional:not(.more) .field:first-of-type .remove {
    display: none;
}

section .field .remove:hover {
    filter:  grayscale();
}

section .field .error-msg {
    color:#fff;
    font-family: TedNextDemiBold;
    background-color: var(--primary-color);
    box-sizing: border-box;
    padding: 17px 10px 10px;
    width: 100%;
    border-radius: 6px;
    margin-top: -10px;
    font-size: .9rem;
    pointer-events: none;
    display: none;
}

section .field.upload .error-msg,
section .field fieldset + .error-msg {
    padding: 10px 10px 10px;
    margin-top: 10px;;
}

section .field.error .error-msg{
    display: block;
}

section .field-additional {
    margin-bottom: 40px;  
    position: relative;
}


/********************************* additional */

section .field-additional .field {
    margin-bottom: 15px;
}

section .field-additional .add {
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: TedNextDemiBold;
    font-size: 1rem;
    padding-left: 25px;
    margin-top: 0px;
    background-image: url(../img/icon_add.svg);
    background-repeat: no-repeat;
    background-position: 0 center;
    background-size: 20px auto;
    cursor: pointer;
}

section .field-additional .add:hover {
    filter:  grayscale();
}


/********************************* upload */

section .field.upload {
    margin-top: 40px;;
}

section .field.upload .header {
    display: flex;
    gap: 10%;
}
section .field.upload .header label {
    font-size: .95rem;;
}

section .field.upload .header strong {
    font-family: TedNextDemiBold;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;;
}

section .field.upload .header button {
    background: none;
    height: fit-content;
    margin-left: 0px;
    flex: 0 0 auto;
    border: none;
    color: #fff;
    background-color: var(--primary-color);
    box-sizing: border-box;
    border-radius: 6px;
    padding: 12px 12px;
    font-family: TedNextDemiBold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 250ms;
}

section .field.upload .header button:hover {
    background-color: var(--medium-gray-color);
}

section .field.upload .images {
    display: flex;
    flex-direction: column;
    margin-top: 5px;;
    max-width: 100%;
}

section .field.upload .images div {
    position: relative;
    text-decoration: none;
    color: var(--gray-color);
    font-family: TedNextSemiBold;
    font-size: 1rem;
    margin-bottom: 5px;
    padding-left: 30px;
    max-width: 100%;
    display: flex;    
    box-sizing: border-box;
    background-image: url(../img/icon_photo.svg);
    background-repeat: no-repeat;
    background-position: 0px cacl(50% + 90px);
    background-size: 20px auto;
    
}

section .field.upload .images div a {
    position: relative;
    margin: 0;
    flex: 0 0 auto;
    right: 0;
    margin-left: 20px;
    margin-top: 2px;
}


/********************************* controls */

section .controls {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

section .controls button {
    background: none;
    border: none;
    color: #fff;
    background-color: var(--primary-color);
    box-sizing: border-box;
    border-radius: 6px;
    padding: 12px 12px;
    font-family: TedNextDemiBold;
    font-size: 1.3rem;
    padding-right: 45px;
    background-image: url(../img/icon_next.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 17px) center;
    background-size: 12px auto;
    cursor: pointer;
    opacity: 1;
    transition: background-color 250ms;
}

section .controls button.back {
    background-color: var(--gray-color);
    background-image: url(../img/icon_back.svg);
}

section .controls button:hover {
    background-color: var(--medium-gray-color);
}

section .controls button.submit {
    background-image: none;
    padding: 12px 12px
}



/********************************* addresses */

section .addresses {
    position: relative;
    width: 100%;
}

section .address {
    position: relative;
    margin-top: 50px;
}

section .address:first-of-type {
    position: relative;
    margin-top: 0px;
}

section .address h3 {
    margin: 0;
    padding: 0;
    font-family: TedNextDemiBold;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: normal;
}

section .address .removeaddress {
    position: absolute;
    background: none;
    width: 15px;
    height: 15px;
    margin-top: 12px;
    right: 12px;
    border: 0;
    background-image: url(../img/icon_remove.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px auto;
    cursor: pointer;
}

section .addresses:not(.more) .address:first-of-type .removeaddress {
    display: none;
}

section .address .removeaddress:hover {
    filter:  grayscale();
}

section .address {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

section .addresses .field {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 0px;   
}

section .addresses .field.half {
    width: auto;
    flex: 1 1 auto;
}

section .addresses .add {
    align-self: center;
    background: none;
    border: none;
    display: block;
    margin: 0 auto;
    align-self: center;
    color: var(--primary-color);
    font-family: TedNextDemiBold;
    font-size: 1.8rem;
    padding-left: 60px;
    margin-top: 40px;
    background-image: url(../img/icon_add.svg);
    background-repeat: no-repeat;
    background-position: 0 center;
    background-size: 42px auto;
    height: 50px;;
    cursor: pointer;
    margin-bottom: 60px;
}

section .addresses .add:hover {
    filter:  grayscale();
}

@media only screen and (max-width: 800px) {
    section .addresses .add {
        padding-left: 50px;
        font-size: 1.4rem;
        background-size: 32px auto;
    }
}

/********************************* hours */

section .addresses .field.hours {
    padding: 2px 10px;
    box-sizing: border-box;
}

section .addresses .field.hours > div.inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

section .addresses .field.hours > div.inputs label {
    margin: 0;
    font-size: 1rem;
    width: 90px;
    text-align: right;
    flex: 0 0 auto;
}

section .addresses .field.hours > div.inputs input {
    flex: 1 1 auto;
    width: 20px;
}

section .field input[type="time"] {
    padding: 5px 5px; 
} 

section .addresses .field.hours.error {
    background-color: var(--primary-color);
    border-radius: 6px;
     padding: 10px 10px 10px 0px;
}

section .addresses .field.hours.error label {
    color: #FFF;
}

section .addresses .field.hours.error .error-msg {
    color:#fff;
    font-family: TedNextDemiBold;
    background-color: var(--primary-color);
    box-sizing: border-box;
    padding: 17px 10px 0px 30px;
    width: 100%;
    border-radius: 6px;
    margin-top: -10px;
    font-size: .9rem;
    pointer-events: none;   
}

@media only screen and (max-width: 800px) {
    section .addresses .field.hours {
        padding: 2px 0px;
    }
}


/********************************* upload progress */

#upload_progress {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: #ffffffd9;
    display: none;
}

#upload_progress h2 {
    color: var(--primary-color);
    font-family: TedNextSemiBold;
}

#upload_progress .box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    background: #ffffffd9;
    border-radius: 6px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    box-sizing: border-box;    
}


#upload_progress .file {
    display: block;
    margin-bottom: 30px;
}

#upload_progress .file label {
    color: var(--gray-color);
    font-family: TedNextSemiBold;
    margin-bottom: 5px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#upload_progress .file div,
#upload_progress .file span {
    width: 100%;
    height: 20px;
    background: var(--light-gray-color);
    border-radius: 6px;
}

#upload_progress .file span {
    display: block;
    width: 0%;
    background: var(--primary-color);
}

#upload_progress button {
    background: none;
    height: fit-content;
    margin-left: 0px;
    flex: 0 0 auto;
    border: none;
    color: #fff;
    background-color: var(--primary-color);
    box-sizing: border-box;
    border-radius: 6px;
    padding: 12px 12px;
    font-family: TedNextDemiBold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 250ms;
}

#upload_progress button:hover {
    background-color: var(--medium-gray-color);
}
