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

/* 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%;
}

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

/* Partie gauche avec le titre et la description */
.webform-content-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 300px;
}

.webform-content-left-inner {
  max-width: 450px;
}

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

.webform-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Partie droite avec le formulaire */
.webform-content-right {
  flex: 1;
  min-width: 300px;
}

/* 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;
}

.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 {
    flex-direction: column;
  }
  
  .webform-content-left,
  .webform-content-right {
    width: 100%;
  }
  
  .webform-content-left-inner {
    max-width: 100%;
    margin-bottom: 2rem;
  }
}