.contact__section {
  padding-bottom: 6rem;
  background-color: var(--clr-deep-indigo);
  min-height: 100vh;
}

.contact__section .title {
  padding: 3rem 0 2rem 0;
}

.form__wrapper {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.section__badge-wrapper {
  display: grid;
  place-content: center;
}

/*=========================================================================
  ====== FORMULAIRE =======================================================
  =========================================================================*/
.contact__form {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: linear-gradient(#fff2, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);

  display: grid;
  row-gap: 2rem;
}

.contact__title {
  text-align: center;
  font-size: var(--fs-24);
  color: var(--clr-title);
  margin-bottom: 1rem;
}

.contact__form-content {
  display: grid;
  row-gap: 2rem;
}

.contact__form-input {
  position: relative;
}
.contact__form-input textarea {
  field-sizing: content;
  resize: vertical;
}

/* Form */
.contact__form-box-wrapper {
  display: flex;
  flex-direction: column;
}
.contact__form-box {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1rem;
  column-gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__input {
  position: relative;
  width: 100%;
  padding-block: 0.8rem;
  z-index: 1;
  color: var(--clr-alice-blue);
}

.contact__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact__label {
  position: absolute;
  left: 0;
  top: 13px;
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.5);
  transition:
    top 0.3s,
    font-size 0.3s,
    color 0.3s;
}
.star__label {
  color: var(--clr-blue-bell);
  margin-left: 0.5rem;
}

/* Disabled button "envoyer ma demande" */
#contact-form .shimmer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
#contact-form .shimmer-btn:disabled .spark-slide {
  display: none;
}
#contact-form .shimmer-btn:disabled:hover .btn-content {
  color: var(--clr-blue-bell);
}
#contact-form .shimmer-btn:disabled:hover .hover-gradient {
  opacity: 0;
}

/* Input focus move up label */
.contact__input:focus + .contact__label {
  top: -12px;
  font-size: var(--fs-14);
  color: var(--clr-blue-bell);
}

/* Input focus sticky top label */
.contact__input:not(:placeholder-shown).contact__input:not(:focus)
  + .contact__label {
  top: -12px;
  color: rgba(255, 255, 255, 0.5);
}

.contact__form-box i {
  color: var(--clr-blue-bell);
}

.contact__message-send {
  color: rgba(255, 255, 255, 0.7);
}

.contact__form-check {
  position: relative;
}

/* ---=== INPUT TYPE CHECKBOX ===-------------------------- */
/* Init range */
.contact__check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.contact__check label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.contact__check .box {
  position: relative;
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--clr-blue-bell);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.contact__check .text {
  color: rgba(255, 255, 255, 0.7);
}
.contact__check .box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 8px;
  border: solid var(--clr-white);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -70%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
}
.contact__check input[type="checkbox"]:checked + label .box {
  background: var(--clr-blue-bell);
  border-color: var(--clr-blue-bell);
}
.contact__check input[type="checkbox"]:checked + label .box::after {
  opacity: 1;
}

.contact__check input[type="checkbox"]:focus-visible + label .box {
  border: 3px solid var(--clr-automn-leaf);
  outline-offset: 1px;
}

/*=========================================================================
  ====== ERROR MESSAGE ====================================================
  =========================================================================*/
.error-message {
  display: none;
  font-size: var(--fs-14);
  color: var(--clr-automn-leaf);
}

.contact__form-box:has(input.invalid),
.contact__form-box:has(textarea.invalid) {
  border-bottom: 1px solid var(--clr-automn-leaf);
}

.contact__form-box-wrapper:has(input.invalid) .error-message,
.contact__form-box-wrapper:has(textarea.invalid) .error-message {
  display: block;
}

/*=========================================================================
  ====== TOAST MESSAGE ====================================================
  =========================================================================*/
.toast {
  position: fixed;
  z-index: 1000;
  min-width: 20rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5rem;
  background-color: var(--clr-automn-leaf);
  border-radius: 12px;
  color: var(--clr-alice-blue);
}
.toast-title {
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast-title img {
  width: 2rem;
}
.toast-title p {
  font-size: var(--fs-18);
  font-weight: var(--fw-bold);
  line-height: 150%;
}
.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.toast.show {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/*=========================================================================
  ====== CONTACT INFOS ====================================================
  =========================================================================*/
.contact__infos {
  display: grid;
  gap: 1rem;
}

.contact__card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(#fff2, transparent);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact__item {
  color: rgba(248, 239, 239, 0.7);
  padding-block: 0.25rem;

  display: flex;
  gap: 0.75rem;
}

.contact__subtitle {
  margin-top: 2rem;
  font-size: var(--fs-20);
  color: var(--clr-blue-bell);
}

/*=========================================================================
  ====== SOCIALS MEDIAS ===================================================
  =========================================================================*/
.socials__contact .socials__wrapper {
  justify-content: center;
}

/*=========================================================================
  ====== MAP ===================================================
  =========================================================================*/
.map {
  margin-top: 5rem;
  padding: 2rem;
}
.map__title {
  margin-bottom: 1.5rem;
}
.map {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map__consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: rgba(236, 247, 254, 0.8);
}

.map__consent[hidden] {
  display: none;
}

.map__consent-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--clr-blue-bell);
  color: var(--clr-alice-blue);
  font-family: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: var(--transition-fast);
}

.map__consent-btn:hover {
  filter: brightness(1.1);
}

[data-google-map][hidden] {
  display: none;
}

/* ========================================================================
  ====== MEDIA BREAKPOINT =================================================
  ========================================================================= */
/* --------------------------------------------- */
/* ---- BREAKPOINT 1024 ------------------------- */
/* --------------------------------------------- */
@media screen and (max-width: 1024px) {
  .form__wrapper {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------- */
/* ---- BREAKPOINT 450 ------------------------- */
/* --------------------------------------------- */
@media screen and (max-width: 450px) {
  .section__badge-wrapper .title {
    font-size: var(--fs-32);
    margin: 0;
  }
  .section__badge {
    padding: 2rem 0;
  }
  .contact__form {
    padding: 1rem 0.5rem;
  }
  .contact__card {
    padding: 1rem 0.5rem;
  }
  .contact__section .title {
    padding: 0;
  }
  .contact__item span {
    font-size: var(--fs-16);
  }
  .contact__check label {
    align-items: start;
  }
  .contact__check .text {
    font-size: var(--fs-14);
    text-align: justify;
  }
}
