/**
 * Styles pour le formulaire de réservation
 * Basés sur le design du template booking form
 */

/* Section titles dans le formulaire */
.reservation-form .section-title-form {
  font-family: 'SaolDisplay-Regular', serif;
  font-size: 18px;
  font-weight: 600;
  color: #aa8453;
  margin-top: 25px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.reservation-form .section-title-form:first-of-type {
  margin-top: 0;
}

/* Input wrappers */
.reservation-form .input1_wrapper,
.reservation-form .select1_wrapper {
  margin-bottom: 20px;
}

/* Labels */
.reservation-form .input1_wrapper label,
.reservation-form .select1_wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

/* Required indicator */
.reservation-form .form-required {
  color: #aa8453;
  font-size: 14px;
  margin-left: 2px;
}

/* Input fields */
.reservation-form .input1_wrapper input[type="text"],
.reservation-form .input1_wrapper input[type="email"],
.reservation-form .input1_wrapper input[type="tel"],
.reservation-form .input1_wrapper input[type="number"],
.reservation-form .input1_wrapper input[type="date"],
.reservation-form .input1_wrapper textarea,
.reservation-form .select1_wrapper select {
  width: 100%;
  height: 50px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0 20px;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  transition: all 0.3s ease;
}

.reservation-form .input1_wrapper input[type="tel"] {
  padding-left: 50px;
}

/* Textarea specific */
.reservation-form .input1_wrapper textarea {
  height: 120px;
  padding: 15px 20px;
  resize: vertical;
}

/* Select specific */
.reservation-form .select1_wrapper select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Focus state */
.reservation-form .input1_wrapper input:focus,
.reservation-form .input1_wrapper textarea:focus,
.reservation-form .select1_wrapper select:focus {
  border-color: #aa8453;
  outline: none;
  box-shadow: 0 0 0 3px rgba(170, 132, 83, 0.1);
}

/* Field description */
.reservation-form .description {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  font-style: italic;
}

/* Checkbox wrapper */
.reservation-form .checkbox-wrapper {
  margin: 20px 0;
}

.reservation-form .checkbox-wrapper .form-type-checkbox {
  display: flex;
  align-items: flex-start;
}

.reservation-form .checkbox-wrapper input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-right: 10px;
  margin-top: 3px;
  cursor: pointer;
}

.reservation-form .checkbox-wrapper label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  margin-bottom: 0;
}

/* Error messages */
.reservation-form .form-item--error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

.reservation-form .form-item.has-error input,
.reservation-form .form-item.has-error select,
.reservation-form .form-item.has-error textarea {
  border-color: #dc3545;
}

/* Submit button styling */
.reservation-form .form-actions {
  margin-top: 25px;
}

.reservation-form .form-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 4px;
  background-color: #aa8453;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reservation-form .form-submit:hover {
  background-color: #8d6e42;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(170, 132, 83, 0.3);
}

.reservation-form .form-submit:active {
  transform: translateY(0);
}

/* Success/Status messages */
.reservation-form .messages {
  margin-bottom: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 14px;
}

.reservation-form .messages--status {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.reservation-form .messages--warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.reservation-form .messages--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reservation-form .section-title-form {
    font-size: 16px;
    margin-top: 20px;
  }

  .reservation-form .input1_wrapper input,
  .reservation-form .select1_wrapper select,
  .reservation-form .input1_wrapper textarea {
    height: 45px;
    font-size: 13px;
  }

  .reservation-form .input1_wrapper textarea {
    height: 100px;
  }

  .reservation-form .form-submit {
    height: 45px;
    font-size: 14px;
  }
}

/* Hide webform sections (we display custom section titles) */
.reservation-form .webform-section {
  border: none;
  padding: 0;
  margin: 0;
}

.reservation-form .webform-section > legend {
  display: none;
}

/* Number input adjustments */
.reservation-form input[type="number"] {
  -moz-appearance: textfield;
}

.reservation-form input[type="number"]::-webkit-outer-spin-button,
.reservation-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Date input styling */
.reservation-form input[type="date"] {
  cursor: pointer;
}

.reservation-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  color: #aa8453;
}
