/* === STILE BOOKING FORM PERSONALIZZATO === */

/* Wrapper principale */
#or-cbf-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  background-color: #BC1548;
  padding: 20px;
  gap: 12px;
  font-family: "DM Sans", sans-serif;
  position: relative;
  z-index: 2;
}

/* Gruppi input */
.or-cbf-group {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #000;
  font-weight: bold;
  min-width: 150px;
  width: 100%;
  position: relative;
}

.or-cbf-group input[type="date"],
.or-cbf-group input[type="text"] {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  padding: 2px 0;
}

#or-cbf-trigger {
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: left;
}

/* Pulsanti azione */
#or-cbf-submit,
#or-cbf-request,
#or-cbf-quote {
  background-color: #2b72c9;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  margin: 0px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  height: 70px;
  transition: none !important;
  margin: 0px !important;
  border: 0px !important;
  width: 100%;
}

#or-cbf-submit,
#or-cbf-quote {
  white-space: pre-line;
  text-align: center;
}

#or-cbf-request {
  background-color: #2b2b2b;
}

/* Codice promo e link */
#or-cbf-extras {
    display: flex;
    align-items: flex-start;
    gap: 10px !important;
    margin-top: 10px;
    font-size: 16px;
    width: 100%;
    flex-direction: column;
  
}
.or-cbf-link,
.or-cbf-promo-link{
  font-size: 14px!important;
  line-height: 1.2!important;
  display: block;
  text-align: left!important;
  color:#fff!important;
  margin: 0!important;
}
.or-cbf-link,
.or-cbf-promo-link:hover{
  text-decoration: underline;
}

#or-cbf-extras input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #fff;
  border-radius: 4px;
  width: 120px;
}

/* POPUP */
#or-cbf-popup {
  position: absolute;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 300px;
  font-size: 14px;
  display: none;
  flex-direction: column;
  top: 50%; /* fallback */
  left: 0;
  transform: translateY(8px);
}

#or-cbf-popup.active {
  display: flex;
}

/* Nascondi */
.or-cbf-hidden {
  display: none !important;
}

/* Sezioni camera */
.or-cbf-room {
  margin-bottom: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

/* Righe adulti/bambini */
.or-cbf-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.or-cbf-label {
  font-weight: bold;
}

.or-cbf-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.or-cbf-controls button {
  width: 32px;
  height: 32px;
  background: #2b2b2b;
  color: white;
  border: 2px solid #a045b5;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.or-cbf-count {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.or-cbf-increase,
.or-cbf-decrease {
  background: #2b2b2b;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #7c2a7c;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Età bambini */
.or-cbf-child-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.or-cbf-child-ages select {
  width: 60px;
  padding: 4px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Aggiungi camera */
#or-cbf-add-room {
  margin-top: 10px;
  font-weight: bold;
  color: #0066cc;
  background: transparent;
  border: none !important;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  padding-left: 2px;
}

/* Footer popup */
.or-cbf-footer {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

#or-cbf-form #or-cbf-popup .or-cbf-footer button {
  flex: 1 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

#or-cbf-cancel {
  background-color: #fff !important;
  color: #333 !important;
  border: 2px solid #ccc !important;
}

#or-cbf-cancel:hover {
  border-color: #999 !important;
  background-color: #f9f9f9 !important;
}

#or-cbf-confirm {
  background-color: #007bff !important;
  color: white !important;
  border: 2px solid #007bff !important;
}

#or-cbf-confirm:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

/* Tooltip errori */
select:invalid {
  border-color: red;
}

/* Rimuovi Camera */
.or-cbf-room button.or-cbf-remove-room{
  color:#86267A !important; 
  background:none !important; 
  border:none !important; 
  cursor:pointer !important; 
  font-size: 12px !important; 
  padding: 2px !important;
  margin: 0 !important;
}

/* Errore età */
.or-cbf-error {
  border: 2px solid red !important;
}

.or-cbf-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 10px 0 !important;
}

.or-cbf-item-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.or-cbf-promo-link {
  font-size: 12px;
  color: #004b8d;
  cursor: pointer;
  margin-right: 10px;
}

#or-cbf-promo-popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
  top: 100%; /* o regola in base alla posizione */
  left: 0;
  margin-top: 5px;
}

.or-cbf-hidden {
  display: none;
}

.or-cbf-link {
  color: #1462a2;
  font-size: 14px;
  cursor: pointer;
  margin-left: 20px;
  text-transform: uppercase;
  font-weight: 500;
}

.button-next-month:hover svg, .button-previous-month:hover svg{
  fill: white !important;
}