/* Tour Booking Widget — regio.immo */

/* Floating trigger */
.tb-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #1a3c5e;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26,60,94,.35);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.tb-trigger:hover {
  background: #244f7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,60,94,.45);
}
.tb-trigger:active { transform: translateY(0); }
.tb-trigger-icon { font-size: 18px; }
@media (max-width: 480px) {
  .tb-trigger { bottom: 16px; right: 16px; padding: 10px 14px; }
  .tb-trigger-label { display: none; }
}

/* Overlay */
.tb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(10,20,40,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  padding: 16px;
}
.tb-overlay[hidden] { display: none; }
.tb-overlay.tb-visible { opacity: 1; }

/* Modal */
.tb-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(24px);
  transition: transform .25s;
}
.tb-overlay.tb-visible .tb-modal { transform: translateY(0); }

/* Close */
.tb-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.tb-close:hover { background: #f0f0f0; color: #333; }

/* Title */
.tb-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #1a3c5e;
}
.tb-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #666;
}

/* Form fields */
.tb-field-group {
  margin-bottom: 14px;
  flex: 1;
}
.tb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}
.tb-input, .tb-select, .tb-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d0d8e4;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a2e;
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.tb-input:focus, .tb-select:focus, .tb-textarea:focus {
  outline: none;
  border-color: #1a3c5e;
  box-shadow: 0 0 0 3px rgba(26,60,94,.12);
  background: #fff;
}
.tb-textarea { resize: vertical; min-height: 72px; }

/* Row layout */
.tb-row {
  display: flex;
  gap: 12px;
}
@media (max-width: 480px) { .tb-row { flex-direction: column; } }

/* Error */
.tb-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* Buttons */
.tb-btn-primary {
  width: 100%;
  padding: 13px;
  background: #1a3c5e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .1s;
}
.tb-btn-primary:hover { background: #244f7a; }
.tb-btn-primary:active { transform: scale(.98); }
.tb-btn-primary:disabled { background: #8aa4be; cursor: not-allowed; }

.tb-btn-secondary {
  padding: 10px 28px;
  background: #f0f4f8;
  color: #1a3c5e;
  border: 1.5px solid #c8d8e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.tb-btn-secondary:hover { background: #e0eaf4; }

/* Spinner */
.tb-spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tb-spin .7s linear infinite;
  display: inline-block;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* Disclaimer */
.tb-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin: 10px 0 0;
}

/* Success */
.tb-success-view {
  text-align: center;
  padding: 16px 0 8px;
}
.tb-success-icon {
  width: 64px; height: 64px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  font-size: 30px;
  line-height: 64px;
  margin: 0 auto 18px;
}
