/* TSINGPU Retreats — Booking Modal Styles
 * 预订弹窗表单样式，与主站暗色电影感设计一致
 */

/* ---------- Trigger Button ---------- */
.tsingpu-booking-trigger {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: #c9a96e;
  border: 1px solid #c9a96e;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tsingpu-booking-trigger:hover {
  background: #c9a96e;
  color: #0a0f0a;
}

/* ---------- Overlay ---------- */
.tsingpu-booking-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tsingpu-booking-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

/* ---------- Modal ---------- */
.tsingpu-booking-modal {
  background: #111410;
  border: 1px solid rgba(201, 169, 110, 0.2);
  width: 100%;
  max-width: 640px;
  position: relative;
  animation: tsingpuFadeIn 0.3s ease;
  margin-top: 20px;
}

@keyframes tsingpuFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tsingpu-booking-modal-inner {
  padding: 48px 40px 40px;
}

/* ---------- Close Button ---------- */
.tsingpu-booking-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(232, 224, 212, 0.5);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.tsingpu-booking-close:hover {
  color: #e8e0d4;
}

/* ---------- Header ---------- */
.tsingpu-booking-header {
  margin-bottom: 32px;
}

.tsingpu-booking-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 8px;
}

.tsingpu-booking-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 300;
  color: #e8e0d4;
  margin: 0;
  line-height: 1.3;
}

.tsingpu-booking-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(232, 224, 212, 0.5);
  margin-top: 8px;
  line-height: 1.5;
}

/* ---------- Form ---------- */
.tsingpu-booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tsingpu-booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tsingpu-booking-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tsingpu-booking-field.full-width {
  grid-column: 1 / -1;
}

.tsingpu-booking-field label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(232, 224, 212, 0.6);
}

.tsingpu-booking-field label .required {
  color: #c9a96e;
}

.tsingpu-booking-field input,
.tsingpu-booking-field select,
.tsingpu-booking-field textarea {
  background: rgba(232, 224, 212, 0.05);
  border: 1px solid rgba(201, 169, 110, 0.15);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #e8e0d4;
  outline: none;
  transition: border-color 0.2s;
}

.tsingpu-booking-field input:focus,
.tsingpu-booking-field select:focus,
.tsingpu-booking-field textarea:focus {
  border-color: #c9a96e;
}

.tsingpu-booking-field input::placeholder,
.tsingpu-booking-field textarea::placeholder {
  color: rgba(232, 224, 212, 0.2);
}

.tsingpu-booking-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.tsingpu-booking-field select option {
  background: #111410;
  color: #e8e0d4;
}

.tsingpu-booking-field textarea {
  min-height: 80px;
  resize: vertical;
}

/* ---------- Submit Button ---------- */
.tsingpu-booking-submit {
  width: 100%;
  padding: 16px 32px;
  background: #c9a96e;
  color: #0a0f0a;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
}

.tsingpu-booking-submit:hover {
  background: #d4b87a;
}

.tsingpu-booking-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Success / Error States ---------- */
.tsingpu-booking-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.tsingpu-booking-success.active {
  display: block;
}

.tsingpu-booking-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.tsingpu-booking-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 300;
  color: #c9a96e;
  margin: 0 0 12px;
}

.tsingpu-booking-success p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(232, 224, 212, 0.6);
  line-height: 1.6;
  margin: 0;
}

.tsingpu-booking-error {
  color: #e74c3c;
  font-size: 13px;
  display: none;
}

.tsingpu-booking-error.active {
  display: block;
}

/* ---------- Loading Spinner ---------- */
.tsingpu-booking-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 15, 10, 0.3);
  border-top-color: #0a0f0a;
  border-radius: 50%;
  animation: tsingpuSpin 0.6s linear infinite;
  margin: 0 auto;
}

.tsingpu-booking-spinner.active {
  display: inline-block;
}

@keyframes tsingpuSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .tsingpu-booking-modal-inner {
    padding: 36px 24px 28px;
  }
  .tsingpu-booking-row {
    grid-template-columns: 1fr;
  }
  .tsingpu-booking-title {
    font-size: 22px;
  }
}
