/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/************************************
 * MISE EN PAGE GÉNÉRALE - HBook
 ************************************/
.hb-title {
  padding-bottom: 20px;
}

/* Bloc 1 - Labels */
label {
  color: #424642;
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  margin-top: 15px;
  font-size: 16px;
  font-family: -apple-system, "system-ui", Segoe UI, roboto, helvetica, arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

/* Bloc 2 - Formulaire principal */
.hb-booking-search-form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  box-sizing: border-box;
  max-width: 960px;
  flex-direction: column;
  align-items: flex-start;
}

/* Bloc 3 - Champs input & select */
.hb-booking-search-form input,
.hb-booking-search-form select {
  border-radius: 8px;
  background-color: #fafafa;
  padding: 12px 14px;
  height: 42px;
  font-size: 16px;
  box-sizing: border-box;
  text-align: center;
  flex: 1 1 200px;
  min-width: 180px;
  margin: 0;
}

/* Bloc 4 - Taille des champs input et bouton dans HBOOK */
.hb-booking-search-form input,
.hb-booking-search-form select,
.hb-search-button-wrapper .hb-button {
  min-width: 180px;
  font-size: 18px;
}

/* Bloc 5 - Bouton rechercher */
.hb-search-button-wrapper .hb-button {
  background-color: #62B2A3;
  color: #fff;
  border: none;
  height: 55px;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  min-width: 160px
}

/* Bloc 6 - Wrapper du formulaire */
.hb-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Bloc 7 - Centrage du titre */
.hb-form-wrapper .hb-title {
  text-align: center;
}

/* Bloc 8 - Bouton rechercher : hover */
.hb-search-button-wrapper .hb-button:hover {
  background-color: #4a9789;
}

/* Bloc 9 - Style doux pour les blocs du formulaire de réservation */
.hb-form-wrapper,
.hb-availability-results-wrapper,
.hb-details-fields,
.hb-options-form,
.hb-multi-accom-choices {
  background-color: #e6edec;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px!important;
  margin-bottom: 24px;
  box-shadow: none !important;
  border: none;
}

.hb-accom-page-one-result {
  background-color: #e6edec;
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px!important;
  margin-bottom: 10px;
  box-shadow: none !important;
  border: none;
}

/* Bloc 10 - Alignement champ adultes */
#hb-form-1-adults {
  height: 42px !important;
  padding: 0 12px !important;
  font-size: 16px !important;
  border-radius: 4px !important;
  text-align: center;
}

/* Bloc 11 - Bouton "Modifier la recherche" */
.hb-change-search-wrapper input[type="submit"] {
  min-width: 220px !important;
  height: 48px !important;
  padding: 0 24px !important;
  font-size: 18px !important;
  border-radius: 8px !important;
  background-color: #62B2A3 !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bloc 12 - Espacement avant les services supplémentaires */
.hb-options-form .hb-optional-services-wrapper {
  margin-top: 24px!important;
}

/* Bloc 13 - Suppression des bordures dans .hb-accom */
.hb-accom-page .hb-multi-accom-choices.hb-accom-page-one-result .hb-accom {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* Bloc 14 - Taille des polices dans le résumé de prix */
.hb-accom-price .hb-price-amount {
  font-size: 22px!important;
}

.hb-accom-price .hb-price-description {
  font-size: 16px!important;
}

.hb-accom-price a {
  font-size: 15px!important;
}

/* Bloc 15 - changement couleur de fond des champs de saisie */ 
.hbook-wrapper input[type="text"] {
  background-color: #fff!important;
  border-color: #e6edec!important;
}

/* Bloc 16 - Style doux pour le formulaire final */
.hb-step-wrapper {
  background-color: #e6edec;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: none !important;
  border: none;
}
 
.hbook-wrapper input[type="textarea"] {
  background-color: #fff!important;
  border-color: #e6edec!important;
}

/* Bloc 17 - Largeurs personnalisées HBook */
.hb-col-1-1 {
  width: 100% !important;
}

.hb-col-1-2 {
  width: 48% !important;
}

.hb-col-1-3 {
  width: 30% !important;
}

.hb-col-2-3 {
  width: 65% !important;
}

.hb-col-1-4 {
  width: 22% !important;
}

.hb-col-3-4 {
  width: 74% !important;
}

@media (max-width: 768px) {
  .hb-col-1-2,
  .hb-col-1-3,
  .hb-col-2-3,
  .hb-col-1-4,
  .hb-col-3-4 {
    width: 100% !important;
  }
}

/* Bloc 18 - Rétablissement du comportement natif des colonnes HBook */
.hb-column-half {
  width: 48% !important;
  display: inline-block;
  vertical-align: top;
  margin-right: 4%;
  box-sizing: border-box;
}

.hb-column-half:nth-of-type(2n) {
  margin-right: 0;
}

.hb-column-third {
  width: 30.66% !important;
  display: inline-block;
  vertical-align: top;
  margin-right: 4%;
  box-sizing: border-box;
}

.hb-column-third:nth-of-type(3n) {
  margin-right: 0;
}

.hb-column-full {
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hb-column-half,
  .hb-column-third {
    width: 100% !important;
    margin-right: 0 !important;
    display: block;
  }
}

/* Bloc 19 - Couleur de fond du champ Select2 */
.selectize-input {
  background-color: #ffffff !important;
}

/* Bloc 20 - Fond blanc pour le champ commentaire */
textarea.hb-detail-field {
  background-color: #fff !important;
  border-color: #e6edec !important;
}

/* Bloc 21 - Mise en forme moderne de la section paiement */
.hb-payment-type-explanation-full {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.6;
}

.hb-confirm-area {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.hb-confirm-button .hb-button-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.hb-confirm-button input[type="submit"] {
  min-width: 220px;
  height: 52px;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  background-color: #62B2A3;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hb-confirm-button input[type="submit"]:hover {
  background-color: #4a9789;
}

.hb-bottom-area {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  font-size: 15px;
  color: #333;
}

.hb-payment-form-payplug p {
  margin-bottom: 16px;
}

.hb-payment-method-wrapper img {
  max-height: 32px;
  margin-left: 6px;
  vertical-align: middle;
}

.hb-payment-type-price-wrapper {
  font-size: 18px !important;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Bloc 22 - Page confirmation paiement */
.hb-summary-wrapper {
  background-color: #e6edec !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin: 0px auto !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 900px !important;
}

.hb-resa-summary-title {
  color: #000 !important;
  font-size: 22px !important;
  font-weight: bold !important;
  margin-bottom: 16px !important;
}

.hb-summary-content,
.hb-summary-content div,
.hb-summary-content p {
  font-size: 16px !important;
  color: #333 !important;
  margin-bottom: 6px !important;
}

.hb-summary-price-details {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #000 !important;
  margin-top: 12px !important;
  margin-bottom: 8px !important;
}

.hb-summary-bottom-text {
  font-style: italic !important;
  margin-top: 24px !important;
  text-align: left !important;
  font-size: 15px !important;
  color: #333 !important;
}

/************************************
 * Bloc 23 - Page confirmation HBook (résumé)
 ************************************/

.hb-resa-summary-content {
  background-color: #e6edec !important;
  border-radius: 12px !important;
  padding: 20px 20px !important;
  max-width: 900px !important;
  margin: 31px auto 20px auto !important; 
  box-shadow: none !important;
  border: none !important;
}

.hb-resa-summary-title {
  font-size: 27px !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: left !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hb-resa-summary-title::before {
  content: "";
}

.hb-resa-summary-content div,
.hb-resa-summary-content p {
  font-size: 18px !important;
  color: #333 !important;
  margin-bottom: 12px !important;
  line-height: 1.6 !important;
}

.hb-summary-price-details {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin-top: 20px !important;
}

.hb-summary-bottom-text {
  font-style: italic !important;
  margin-top: 24px !important;
  text-align: left !important;
  font-size: 15px !important;
  color: #333 !important;
}

/* 🔧 Réduction des marges inutiles dans le résumé HBook */
.hb-summary-accom-price,
.hb-summary-total-price {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.hb-summary-bottom-text {display:none;}

/* 🔧 Suppression de la marge excessive entre les blocs */
.hb-summary-accom-wrapper br,
.hb-summary-accom-wrapper + br,
.hb-summary-total-wrapper + br {
  display: none !important;
}

/* Titres des sections (consentement + paiement) */
.hb-policies-area .hb-title,
.hb-payment-info-wrapper .hb-title {
  font-size: 27px !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin-bottom: 10px !important;
  margin-top: 3px !important;
  text-align: left !important;
}

.hb-policies-area {padding: 0 0 0 31px;}
.hb-payment-info-wrapper {padding: 0 0 0 31px;margin-top:45px;}

/* Suppression des paragraphes vides */
.hb-policies-area p:empty {
  display: none !important;
}

/* Ajustement paragraphes textes infos */
.hb-payment-type-explanation-full {
  margin-top: 16px !important;
  margin-bottom: 24px !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #333 !important;
  font-weight: 600;
}

/* 🧽 On neutralise le conteneur défaillant */
.hb-confirm-area {
  display: block !important;
  text-align: center !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

/* ✅ Centrage du wrapper du bouton */
.hb-confirm-button .hb-button-wrapper {
  display: inline-block !important;
}

/* ✅ Style du bouton */
.hb-confirm-button input[type="submit"] {
  margin: 30px 0 30px 0;
  min-width: 200px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  background-color: #62B2A3;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.hb-confirm-button input[type="submit"]:hover {
  background-color: #4a9789;
}

/* Bas de page (logo + texte) */
.hb-bottom-area {
  text-align: center !important;
  margin-top: 20px !important;
  font-style: italic !important;
  font-size: 15px !important;
  color: #333 !important;
  line-height: 1.4 !important;
}

.hb-payment-method-wrapper img {
  max-height: 28px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}
