/* JR Clinic Booking — modal & form styles
   Designed to match Clínica Estética Ibiza visual identity:
   gold accents, serif headings, dark/light contrast */

/* Overlay (modal backdrop) */
.jr-booking-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.jr-booking-overlay.open {
  display: flex;
  animation: jr-fade-in 0.2s ease;
}
@keyframes jr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal box */
.jr-booking-modal {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 32px 28px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #222;
}

.jr-booking-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 4px 10px;
  transition: color 0.15s ease;
}
.jr-booking-close:hover {
  color: #c9a64a;
}

/* Language toggle pill */
.jr-booking-lang-toggle {
  display: inline-flex;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 2px;
  margin-bottom: 14px;
  gap: 1px;
}
.jr-booking-lang {
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.jr-booking-lang.active {
  background: #c9a64a;
  color: #fff;
}

/* Title + subtitle */
.jr-booking-modal-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.15;
}
.jr-booking-modal-sub {
  font-size: 14px;
  color: #666;
  margin: 0 0 22px;
}

/* Form fields */
.jr-booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jr-booking-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jr-booking-field label {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.jr-booking-field input,
.jr-booking-field select,
.jr-booking-field textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  color: #222;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.jr-booking-field input:focus,
.jr-booking-field select:focus,
.jr-booking-field textarea:focus {
  border-color: #c9a64a;
  background: #fff;
}
.jr-booking-field textarea {
  resize: vertical;
  min-height: 80px;
}
.jr-booking-hint {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}

/* Honeypot — must remain invisible to users + bots that read CSS, but */
/* should still be in the DOM. Off-screen but accessible to bots that fill all inputs. */
.jr-booking-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit button */
.jr-booking-actions {
  margin-top: 10px;
}
.jr-booking-submit {
  width: 100%;
  padding: 14px;
  background: #c9a64a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.jr-booking-submit:hover {
  background: #b89438;
}
.jr-booking-submit:active {
  transform: translateY(1px);
}
.jr-booking-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Status message (success / error after submit) */
.jr-booking-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  line-height: 1.4;
}
.jr-booking-message.success {
  display: block;
  background: rgba(106, 191, 138, 0.1);
  border: 1px solid rgba(106, 191, 138, 0.4);
  color: #2e7d4f;
}
.jr-booking-message.error {
  display: block;
  background: rgba(196, 87, 74, 0.1);
  border: 1px solid rgba(196, 87, 74, 0.4);
  color: #a3382b;
}

/* Trigger button shortcode default style */
.jr-booking-trigger-btn {
  padding: 10px 24px;
  background: #c9a64a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.jr-booking-trigger-btn:hover {
  background: #b89438;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .jr-booking-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .jr-booking-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 8px 8px 0 0;
    padding: 24px 20px 28px;
  }
  .jr-booking-modal-title {
    font-size: 26px;
  }
  .jr-booking-close {
    top: 10px;
    right: 12px;
  }
}
