#contact .form {
    z-index: 1;
    position: relative;
    background-color: white;
    width:75%;
    min-width: 40rem;
    padding: clamp(4rem, 3rem + 5vw, 5.5rem) clamp(2rem, 1rem + 5vw, 6rem);
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,15%);
}

#contact .form h2 {
    font-size:clamp(1.75rem, 1.5rem + .5vw, 1.825rem);
    margin-bottom: 1.75em;
    font-weight: 450;
    text-align: center;
}
#contactForm h3{
    font-family: var(--font-header);
    margin-top: 0;
    margin-bottom: .5em;
    font-weight: 450;
    color: var(--brown-color);
    font-size: clamp(1.425rem,1.25rem + .5vw,1.5rem);

}
#contactForm {
    margin: 0 auto;
    text-align:left;
}

#contactForm fieldset {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#contactForm .text {
    margin-bottom:1.5em;
    width: 100%;
    text-align: center;
}
#contactForm fieldset:not(.client-info) {margin:calc(3.5em + 0.5vw) auto 0}

#contactForm h4 {flex-basis: 100%;}
#contactForm fieldset p {
    line-height: 1.4;
    margin:0;}

#contactForm .input-wrap, #contactForm .select-wrap {
    flex-basis: calc(50% - 0.25em);
    position: relative;
    margin-bottom:.5em
}
#contactForm .travel-info .input-wrap:first-child, #contactForm .travel-info .select-wrap:first-child {
    margin-bottom:1.25em
}
#contactForm .input-wrap.textarea {flex-basis: 100%;margin-right: 0!important;}
#contactForm .input-wrap:nth-child(2n - 1), #contactForm .select-wrap {
    margin-right: .5em;
}

::placeholder {
    opacity: 1;
    color:#858585}

#contactForm input[type=radio], #contactForm input[type=checkbox] {
    display: none;
    visibility: hidden;
    position:absolute; 
    left:-200000%;}
#contactForm input[type=text], #contactForm input[type=email], #contactForm textarea {
    position: relative;
    height: 3.125em;
    width: 100%;
    padding: 0 .9em;
    font-size: .85em;
    font-weight: normal;
    line-height: 3.125em;
    letter-spacing: .03em;
    text-overflow: ellipsis;
    color: #939393;
    background-color:#fff;
    border: 1px solid #CECECE;
    transition: color .3s,background-color .3s, border .3s;}

input:hover, input:focus, textarea:hover, textarea:focus {
    color: #5B5B5B;
    border-color:#CECECE;}

#contactForm textarea {
    min-height: 14em;
    padding-top:1em;
    margin-top:2em;
    line-height: 1.4;
    resize: none;}


/* WHAT TYPE OF TRAVELER ARE YOU */
.type-of-traveler {
    justify-content: space-between;
    gap: .5em;}

.type-of-traveler label {
    display: flex;
    flex-basis: calc(20% - .5em);
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.type-of-traveler label i {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .925em .25em;
    position: relative;
    width: 100%;
    color:var(--gold-color);
    font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem);
    background-color: var(--black-olive-color);
    transition: color .25s, background-color .25s;
}
.type-of-traveler input[type="radio"]:checked + label i {
    background-color: var(--gold-color);
    color:white;
}
.type-of-traveler label span {
    font-weight: 900;
    font-size: .825em;
    text-transform: uppercase;
    margin-top:.75em;
    line-height: 1.3;
    letter-spacing: .025em;
    transition: color .25s
}
.type-of-traveler input[type="radio"]:checked + label span {
    color:var(--gold-color);
}
/* Destination */
.select_destinations {
    justify-content: space-between;
    gap:.5em
}

.select_destinations label {
    display: flex;
    position: relative;
    flex-basis: calc(33.33% - .35em);
    height: 9em;
    cursor: pointer;
    color: white;
    padding: 1em 2em 1em 1em;
    background-color: var(--black-olive-color);
    background-size: cover;
    background-position: center;
    background-repeat: none;
    transition: color .25s;
    overflow: hidden;
}

.select_destinations label:after {
    opacity: 0;
    content:"";
    position: absolute;
    left:0; right:0; top:0;
    width:100%; height: 100%;
    background-color: var(--gold-color);
    transition: opacity .25s;
}
.select_destinations label:hover:after {
    opacity: .5;
}
.select_destinations input[type="checkbox"]:checked + label:after {opacity: 1;}
.select_destinations input[type="checkbox"]:checked + label {
    color:white;
}
.select_destinations label span {
    position: relative;
    z-index: 2;
    font-size: .825em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .075em;
}
.select_destinations.invalid .warning,
.type-of-traveler.invalid .warning {
	display:block;
	opacity:1;
	width:100%;
    text-align: center;
	padding:.625em .125em;
	color: hsl(0,55%,65%)
}
.invalid .warning::before {content:attr(data-invalid)!important;}
span.warning {width:100%;}

.select_destinations.invalid .warning {
    text-align: center;
}

#contactForm .checkbox span {
    display: inline-block;
    position:relative;
    vertical-align: middle;
    height:16px;
    width:16px;
    margin-right:.5em;
    background-color: #fff;
    border:1px solid #CECECE;}
#contactForm .checkbox span::before{
    opacity: 0;
    position:absolute;
    top:50%; left:50%; right:0;
    transform: translate3d(-50%,-50%,0);
    transition: opacity .3s, transform .3s;}

/* ------------------------------ error Field -------*/
input.valid,select.valid,textarea.valid, select.valid{
    border-color: hsl(80, 78%, 48%) !important}

input.invalid, textarea.invalid,select.invalid{border-color:#FB898B!important;}

/* ------------------------------ error Msg -------*/
input + span, textarea + span, select + span{
	opacity:0;
	display:block;
	content:"";
	padding:0;
	font-size: .825em;
	font-weight: 400;
	line-height: 1;
	text-align: left;
	background: transparent;
	transition: opacity .3s ease, background-color .3s ease;
}

#contactForm .empty, #contactForm .invalid {border-color: hsl(0,55%,70%) !important}

#contactForm .valid {border-color: hsl(85, 80%, 42%) !important}

#contactForm .empty + span, #contactForm .invalid + span {
	display:block;
	opacity:1;
	width:100%;
	padding:.625em .125em;
	color: hsl(0,55%,65%)
}

.empty + span::before, .empty + span::before{content:attr(data-empty)!important;}
.invalid + span::before, .invalid + span::before {content:attr(data-invalid);}


#validation {
    display: inline-block;
}
#validation.error {
    margin: 1em 0 3em
}

#validation p {
    opacity: 1;
    margin:0;
    transition: opacity .3s;
}
#validation.error p::before {content:attr(data-error);}
#validation.error p {
    color:hsl(0,55%,65%);
    padding:.5em 1.25em;
    background-color:#FBE4E4;}


#contactForm .bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    margin-top: 1.5em;
    justify-content: space-between;
    align-items: center;
}
/*
#luxury_check + label {
    display: inline-block;
    flex-basis: 50%;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom:0;
}
#luxury_check + label span::before {
    opacity: .75;
    display: inline-block;
    position: absolute;
    left:0; right:0; top:50%;
    content:"\43";
    font-family: mandala;
    font-size: 15px;
    text-align: center;
  color: white;
  -webkit-text-stroke: 2px var(--gold-color);
    transform: translate3d(0,-50%,0);
}
#luxury_check + label span {
    opacity: .65;
  display: inline-block;
    position: relative;
    top:-2px;
  width: 35px;
  height: 35px;
  margin-right: .75em;
  background: #fff;
  border: 2px solid var(--gold-color);
    border-radius: 50%;
  vertical-align: middle;
  transition: opacity .3s, border .3s ease, background 0.3s ease;
}
#luxury_check + label:hover span {opacity:1}
#luxury_check:checked + label span::before, #luxury_check:checked + label span:hover::before {
  opacity: 1;
  color: white;
  -webkit-text-stroke: 1px #fff;
}
#luxury_check:checked + label span {
    opacity:1;
    background: var(--gold-color);
    border-color: var(--gold-color);
}
*/
#submitBtn::before {content:attr(data-prompt);}
#submitBtn.sending::before {content:attr(data-sending);}
#submitBtn.success::before {content:attr(data-success);}
#submitBtn.error::before {content:attr(data-error);}

#submitBtn {
    padding:1.425em 2.5em;
    font-size: .825rem;
    background-color: var(--gold-color);
    color: white;
    letter-spacing: .075em;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color .3s;}

#submitBtn:hover {background-color:var(--gold-color);}
#submitBtn:focus {background-color:var(--light-gold-color);}

#submitBtn.success {
    background-color: hsl(105,85%,25%);
    cursor: default;}
#submitBtn.error {
    background-color: #A60002;
    cursor: default;}

    @media only screen and (max-width: 68.75rem) {
        .type-of-traveler label {
            flex-basis: calc(50% - .25em);
            background-color: var(--black-olive-color);
            padding: 1em;
            transition: background-color .25s;
        }
        .type-of-traveler label:last-of-type {flex-basis: 100%;}
        .type-of-traveler input[type="radio"]:checked + label {background-color: var(--gold-color);}
        .type-of-traveler input[type="radio"]:checked + label span {color:white}
        .type-of-traveler label i {
            background-color: transparent;
            height:auto;
            padding:0;
            transition:color .25s}
        .type-of-traveler input[type="radio"]:checked + label i {background-color:transparent}
    
        .type-of-traveler label span {
            color:white;
            letter-spacing: .075em;
            margin-top:1em;
        }
        .type-of-traveler {justify-content: center;}

    }
    @media only screen and (max-width: 64rem) {
       #contact .form {
            width:100%;
            margin-right: 0;
            margin: 0 auto;
            min-width: 0;
        }
        .type-of-traveler label, .type-of-traveler label:last-of-type  {
            justify-content: center;
            flex-basis: calc(20% - .5em);}
    }
    @media only screen and (max-width:54.7rem) {
        .type-of-traveler label {flex-basis: calc(50% - .25em);}
        .type-of-traveler label:last-of-type {flex-basis: 100%;}
    }
    @media only screen and (max-width:48rem) {
        #contact .form {
            padding:0 clamp(1.5em,1em + 2vw,3em);
            box-shadow: none;
        }
    }
    
    @media only screen and (max-width: 38.75rem) {
        .select_destinations, .type-of-traveler {gap:.25em}
        .type-of-traveler label {flex-basis: calc(50% - .125em);}

        .select_destinations label {
            flex-basis: calc(50% - .125em);
            height: 8em;
          }
        #contactForm .bottom {
            flex-direction: column;
            align-items: start;
        }
        #submitBtn {
            width:100%;
            margin-top:1.5em}
      }

      @media only screen and (max-width: 36.5rem) {
        #contactForm .input-wrap, #contactForm .select-wrap {
          flex-basis: 100% !important;
          margin-right: 0!important;
        }
      }

      @media only screen and (max-width: 28.75rem) {
        .type-of-traveler label, .type-of-traveler label:last-of-type  {flex-basis: 100%;}
      }
