/* ═══════════════════════════════════════════════════════════════
   BOOK NOW — Glassmorphism Modal
   Luxury cinematic overlay with glass form fields
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.rcf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0.5s;
}
.rcf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0s;
}

/* ── Backdrop ── */
.rcf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 10, 0.75);
  backdrop-filter: blur(24px) saturate(0.6);
  -webkit-backdrop-filter: blur(24px) saturate(0.6);
}

/* ── Container ── */
.rcf-modal-container {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;

  background: rgba(14, 20, 17, 0.65);
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  border: 1px solid rgba(202, 209, 180, 0.08);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(202, 209, 180, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.rcf-modal-overlay.active .rcf-modal-container {
  transform: translateY(0) scale(1);
}

/* ── Close Button ── */
.rcf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(202, 209, 180, 0.1);
  border-radius: 50%;
  background: rgba(202, 209, 180, 0.04);
  color: rgba(202, 209, 180, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.rcf-modal-close:hover {
  background: rgba(202, 209, 180, 0.1);
  color: rgba(202, 209, 180, 0.9);
  border-color: rgba(202, 209, 180, 0.2);
}

/* ── Scroll wrapper ── */
.rcf-modal-scroll {
  overflow-y: auto;
  padding: 40px 36px 36px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(202,209,180,0.12) transparent;
}
.rcf-modal-scroll::-webkit-scrollbar { width: 4px; }
.rcf-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(202,209,180,0.12);
  border-radius: 4px;
}

/* ── Header ── */
.rcf-modal-header {
  text-align: center;
  margin-bottom: 32px;
}
.rcf-modal-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(12, 192, 223, 0.7);
  margin-bottom: 10px;
}
.rcf-modal-title {
  font-family: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: rgba(250, 249, 246, 0.92);
  line-height: 1.2;
  margin: 0 0 8px;
}
.rcf-modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(202, 209, 180, 0.45);
  line-height: 1.6;
  margin: 0;
}

/* ── Form Sections ── */
.rcf-modal-section {
  margin-bottom: 28px;
}
.rcf-modal-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(202, 209, 180, 0.5);
  font-weight: 600;
  margin-bottom: 16px;
}
.rcf-modal-step {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(98, 140, 128, 0.12);
  color: rgba(12, 192, 223, 0.7);
  font-size: 11px;
  font-weight: 700;
}

/* ── Grid ── */
.rcf-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .rcf-modal-grid { grid-template-columns: 1fr; }
  .rcf-modal-scroll { padding: 32px 20px 28px; }
  .rcf-modal-title { font-size: 26px; }
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM FORM FIELDS
   ═══════════════════════════════════════════ */

.rcf-glass-field {
  display: flex;
  flex-direction: column;
}
.rcf-glass-field-full {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}
.rcf-glass-field-full:last-child {
  margin-bottom: 0;
}

/* Labels */
.rcf-glass-field label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(202, 209, 180, 0.45);
  margin-bottom: 6px;
}
.rcf-glass-field label .req {
  color: rgba(12, 192, 223, 0.6);
}

/* Inputs, Selects, Textareas */
.rcf-glass-field input,
.rcf-glass-field select,
.rcf-glass-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250, 249, 246, 0.88);
  background: rgba(202, 209, 180, 0.04);
  border: 1px solid rgba(202, 209, 180, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Inner glow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    inset 0 0 0 1px rgba(202, 209, 180, 0.02);
}

.rcf-glass-field input::placeholder,
.rcf-glass-field textarea::placeholder {
  color: rgba(202, 209, 180, 0.22);
  font-weight: 300;
}

/* Hover */
.rcf-glass-field input:hover,
.rcf-glass-field select:hover,
.rcf-glass-field textarea:hover {
  border-color: rgba(202, 209, 180, 0.14);
  background: rgba(202, 209, 180, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(202, 209, 180, 0.04);
}

/* Focus */
.rcf-glass-field input:focus,
.rcf-glass-field select:focus,
.rcf-glass-field textarea:focus {
  border-color: rgba(12, 192, 223, 0.35);
  background: rgba(12, 192, 223, 0.04);
  box-shadow:
    0 0 0 3px rgba(12, 192, 223, 0.08),
    inset 0 1px 0 rgba(12, 192, 223, 0.04),
    0 0 20px rgba(12, 192, 223, 0.06);
}

/* Select dropdown arrow */
.rcf-glass-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23cad1b4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' stroke-opacity='0.35' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.rcf-glass-field select option {
  background: #0e1411;
  color: #faf9f6;
}

/* Textarea */
.rcf-glass-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Validation error state */
.rcf-glass-field.has-error input,
.rcf-glass-field.has-error select,
.rcf-glass-field.has-error textarea {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.rcf-field-msg {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(239, 68, 68, 0.8);
  margin-top: 4px;
  min-height: 0;
  display: none;
}
.rcf-glass-field.has-error .rcf-field-msg {
  display: block;
}

/* ── Turnstile ── */
.rcf-modal-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* ── Error Banner ── */
.rcf-modal-error {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(239, 68, 68, 0.9);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
}

/* ── Submit ── */
.rcf-modal-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.rcf-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0d0c;
  background: linear-gradient(135deg, #cad1b4, #b8c09e);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 4px 16px rgba(202, 209, 180, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.rcf-modal-btn:hover {
  background: linear-gradient(135deg, #d4dbbf, #cad1b4);
  box-shadow:
    0 6px 24px rgba(202, 209, 180, 0.25),
    0 0 40px rgba(202, 209, 180, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.rcf-modal-btn:active {
  transform: translateY(0);
}
.rcf-modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.rcf-modal-privacy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(202, 209, 180, 0.25);
  margin: 0;
}

/* ── Spinner ── */
@keyframes rcfSpin {
  to { transform: rotate(360deg); }
}
.rcf-spin {
  animation: rcfSpin 0.7s linear infinite;
}

/* ── Success State ── */
.rcf-modal-success {
  text-align: center;
  padding: 24px 0 16px;
}
.rcf-modal-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(98, 140, 128, 0.15);
  color: rgba(12, 192, 223, 0.8);
}
.rcf-modal-success h3 {
  font-family: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  color: rgba(250, 249, 246, 0.9);
  margin: 0 0 8px;
}
.rcf-modal-success p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(202, 209, 180, 0.5);
  line-height: 1.6;
  margin: 0 0 24px;
}
.rcf-modal-btn-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(202, 209, 180, 0.7);
  background: transparent;
  border: 1px solid rgba(202, 209, 180, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.rcf-modal-btn-done:hover {
  border-color: rgba(202, 209, 180, 0.3);
  color: rgba(202, 209, 180, 0.9);
  background: rgba(202, 209, 180, 0.05);
}

/* ── Body scroll lock ── */
body.rcf-modal-open {
  overflow: hidden;
  touch-action: none;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .rcf-modal-overlay,
  .rcf-modal-container,
  .rcf-glass-field input,
  .rcf-glass-field select,
  .rcf-glass-field textarea,
  .rcf-modal-btn {
    transition: none !important;
  }
}
