/* Contact page styles */
.contact-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
}

.reservation-highlight {
  background: #f9f9f9;
  border: 2px solid #6BAF46;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reservation-highlight .highlight-reduction {
  color: #d9534f; /* rouge moderne */
  font-weight: bold;
}

.reservation-highlight .airbnb-link {
  font-weight: bold;
  color: #FF5A5F; /* couleur officielle Airbnb */
}

.reservation-highlight .airbnb-link:hover {
  color: #E04850;
  text-decoration: underline;
}

.reservation-highlight .airbnb-link i {
  font-size: 1.1em; /* légèrement plus petit que le texte */
  line-height: 1;
}

.reservation-highlight .greengo-link {
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #2E7D32; /* vert Greengo */
  text-decoration: none;
  transition: color 0.3s ease;
}

.reservation-highlight .greengo-link:hover {
  color: #1B5E20;
  text-decoration: underline;
}

.reservation-highlight .greengo-logo {
  height: 18px;
  width: auto;
  vertical-align: text-top;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact-form button {
  background-color: #3e8e41;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #367d39;
}

/* États de validation */
.contact-form input.is-invalid {
  border: 2px solid #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,.15);
}
.contact-form input.is-valid {
  border: 2px solid #28a745;
  box-shadow: 0 0 0 3px rgba(40,167,69,.15);
}

/* Bouton désactivé */
.contact-form button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

.alert-success {
  background-color: #d4edda;
  padding: 1rem;
  border-left: 4px solid #28a745;
  margin-bottom: 1rem;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  padding: 1rem;
  border-left: 4px solid #dc3545;
  margin-bottom: 1rem;
  color: #721c24;
}

.contact-infos {
  max-width: 700px;
  margin: 2rem auto;
  color: #222222;
}

.contact-infos h2 {
  color: #111111;
  margin-bottom: 1.5rem;
}

.contact-infos-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-infos-inner > .contact-address,
.contact-infos-inner > .contact-links {
  flex: 1 1 300px;
  min-width: 280px;
}

.contact-links a {
  color: #0066cc;
  text-decoration: underline;
  text-shadow: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-links a:hover,
.contact-links a:focus {
  color: #004a99;
  text-decoration: none;
}

.contact-address p,
.contact-links p {
  line-height: 1.5;
}

@media (max-width: 600px) {
  .contact-infos-inner {
    flex-direction: column;
  }
}

/* Popup Planning spécifique à la page Contact */
/* Overlay */
.contact-page-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;                 /* shorthand for top/left/right/bottom: 0 */
  background: rgba(0,0,0,0.7);
  overflow: auto;           /* overlay scrolls if content is taller than viewport */
  padding: 50px 16px;       /* breathing room around the modal */
}

/* Modal panel */
.contact-page-modal-content {
  position: relative; /* nécessaire pour que la croix soit positionnée à l'intérieur */
  background: #fff;
  margin: auto;
  border-radius: 10px;
  max-width: 1000px;
  width: 100%;
  min-height: 60vh;
  max-height: 90vh;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  overflow: hidden; /* évite les débordements */
}

.contact-page-close {
  position: absolute;
  top: 15px;
  right: 30px;
  z-index: 10;          /* reste au-dessus de l’iframe */
  color: #fff;          /* blanc pour contraster */
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-page-close:hover {
  background: rgba(0,0,0,0.8);
}

/* Iframe fills remaining height; no scrollbars inside it */
#planningIframe {
  border: none;
  display: block;
  width: 100%;
  flex: 1 1 auto;           /* fill the modal content vertically */
  min-height: 60vh;         /* visible immediately even before JS resizes */
  max-height: calc(90vh - 40px); /* keep within viewport with header space */
  overflow: hidden;         /* hide inner scrollbars */
}

/* Si tu veux que ça ne s'applique qu'au formulaire contact */
.contact-form ::placeholder {
  color: #333;
  font-weight: 500;
}