.contact-reservations-wrapper {
  position: relative;
  background: var(--color-dark-blue);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-reservations-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  z-index: 2;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.contact-container > h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 4rem);
  width: 100%;
  text-align: left;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.contact-two-blocks-wrapper {
  width: 100%;
  height: 60%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5rem;
}

.form-wrapper {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-first-group-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.form-first-group-wrapper > input {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  font-size: clamp(0.8rem, 1vw, 1rem);
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
}
input::placeholder {
  color: #fff;
}

.form-second-group-wrapper {
  width: 100%;
  margin-top: 1rem;
  gap: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
textarea {
  width: 100%;
  height: 80%;
  padding: 0.8rem;
  padding-top: 2rem;
  margin-top: 1rem;
  font-size: clamp(0.8rem, 1vw, 1rem);
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  resize: none;
  color: #fff;
}

textarea::placeholder {
  color: #fff;
}

input:focus,
textarea:focus {
  outline: none;
}

/* Submit Btn */

.fancy-button-submit {
  position: relative;
  padding: 0.4rem 5rem;
  color: white;
  background: transparent;
  border: none;
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  cursor: pointer;
  font-family: inherit;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.fancy-button-submit .submit-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  background: transparent;
  border-color: white;
  z-index: -1;
  transition: all 0.3s ease;
}

/* Corners */
.submit-top-left {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.submit-top-right {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.submit-bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.submit-bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.fancy-button-submit:hover {
  background: white;
  color: var(--color-blue);
  font-weight: 600;
}

.fancy-button-submit:hover .submit-corner {
  width: 100%;
  height: 100%;
  border-width: 2px;
  color: black;
}

.submit-top-left {
  transition-delay: 0s;
}
.submit-top-right {
  transition-delay: 0.05s;
}
.submit-bottom-right {
  transition-delay: 0.1s;
}
.submit-bottom-left {
  transition-delay: 0.15s;
}

.contact-info-block {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.2);
}

.icon-block {
  width: 75%;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.icon-block > p {
  color: #fff;
  font-size: clamp(0.8rem, 1vw, 1.2rem);
  margin-left: 1rem;
}

ion-icon {
  font-size: clamp(2.2rem, 1vw, 3rem);
  color: white;
}

/* Mobile */

@media (max-width: 768px) {
  .form-wrapper {
    width: 100%;
  }

  .icon-block {
    width: 100%;
  }

  .contact-info-block {
    width: 100%;
    margin-top: 2rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
  }

  .form-first-group-wrapper {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    width: 100%;
  }

  .form-first-group-wrapper > input {
    width: 100%;
  }

  .form-second-group-wrapper {
    width: 100%;
  }

  .contact-two-blocks-wrapper {
    flex-direction: column-reverse;
  }

  .fancy-button-submit {
    padding: 0.8rem 1.5rem;
    width: 50%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Form Messages */

.form-message {
  opacity: 1;
  transition: opacity 0.5s ease;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  margin-top: 1rem;
  text-align: center;         
  max-width: 100%;             
  margin-left: auto;
  margin-right: auto;
}

.form-message.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

/* Success message color */
.form-message.success {
  color: green;
}

/* Error message color */
.form-message.error {
  color: red;
}


/*Checkbox form */

.checkbox-group {
  grid-column: 1 / -1; 
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid white;
  border-radius: 50%; 
  background-color: transparent;
  position: relative;
  margin-right: 1rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #fff; 
}

.checkbox-question {
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 1.2vw, 2rem);
  font-weight: 500;
}

