/**
 * @file
 * Styles pour le bloc de formulaire webform.
 */

:root {
  --background-select-booking-color: #ffffff;
  --text-select-booking-color: #000000;
}

[data-theme="dark"] {
  --background-select-booking-color: rgba(255, 255, 255, 0.1);;
  --text-select-booking-color: #f0f0f0;
}

/* Section conteneur du webform dans la page */
.region-appointment {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Conteneur principal du bloc webform */
.webform-block-container {
  background-color: #141D32;
  color: #ffffff;
  /* padding: 4rem 2rem; */
  width: 100%;
}

.contact-block-container {
  background-color: #f8f8f8;
  color: #fff;
  padding: 3rem 2rem;
  width: 100%;
}
.container-contact {
  margin-top: 10vh !important;
  padding: 3rem 1rem;
}

/* Conteneur du formulaire */
.webform-container {
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  gap: 2rem;
  align-items: start;
}

/* Partie gauche avec le titre et la description */
.webform-content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 45%;
  padding: 3rem;
}

.webform-content-left-inner {
  width: 100%;
}

.webform-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-title h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #141D32;
}

.webform-description {
  color: #141D32;
}

.webform-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: justify;
}

.contact-block {
  margin-top: 2rem;
}


.contact-content p, .contact-content h3 {
  color: #141D32;
}

.contact-icon {
  margin-right: 5px;
}

.contact-block-title {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

/* Partie droite avec le formulaire */
.webform-content-right {
  width: 55%;
  background-color: #141D32;
}

.webform-content-right.contact-content-right {
  padding: 10px;
  border-radius: 10px;
}

/* Styles des champs du formulaire */
.webform-content-right .form-item {
  margin-bottom: 1.5rem;
}

.webform-content-right label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.webform-content-right input[type="text"],
.webform-content-right input[type="email"],
.webform-content-right input[type="tel"],
.webform-content-right select,
.webform-content-right textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 4px;
}

#month-select-date_de_rendez_vous option {
  background-color: var(--background-select-booking-color);
  color: var(--text-select-booking-color);
}

.webform-content-right input::placeholder,
.webform-content-right select::placeholder,
.webform-content-right textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.webform-content-right .form-actions {
  margin-top: 2rem;
}

.webform-content-right .form-submit {
  background-color: #DF6B22;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.webform-content-right .form-submit:hover {
  background-color: #c55a1b;
}

/* Style spécifique pour le champ select */
.webform-content-right select {
  width: 100%;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" fill="white"><path d="M0 0h12L6 6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .webform-container {
    display: block;
    padding: 1rem;
  }
  
  .webform-content-left,
  .webform-content-right {
    width: 100%;
  }

  .webform-content-left {
    padding: 1rem;
  }

  .container-contact .webform-description {
    text-align: center;
  }

  .contact-block-title {
    justify-content: center;
  }
  
  .webform-content-left-inner {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .contact-title h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .region-appointment {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .contact-content p {
    margin-bottom: 0;
  }
}