/* ═══════════════════════════════════════════════════════════════════
   13FLOW — Modal "Prendre un rendez-vous" + callback
   ═══════════════════════════════════════════════════════════════════ */

/* Backdrop */
.rdv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rdv-backdrop.open {
  display: flex;
  opacity: 1;
}
:root[data-theme="light"] .rdv-backdrop {
  background: rgba(20, 20, 30, 0.55);
}

/* Modal card */
.rdv-modal {
  background: var(--bg3, var(--bg-card, #15151A));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 40px 36px 32px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rdv-backdrop.open .rdv-modal {
  transform: translateY(0) scale(1);
}
:root[data-theme="light"] .rdv-modal {
  background: var(--bg-card, #FFFFFF);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* Close button */
.rdv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg4, var(--bg-elevated, rgba(255, 255, 255, 0.06)));
  color: var(--text2, var(--text-secondary, #A7A5A0));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0;
}
.rdv-close:hover {
  background: var(--accent-soft, rgba(194, 65, 12, 0.10));
  color: var(--accent, #C2410C);
}
.rdv-close svg {
  width: 16px;
  height: 16px;
}

/* Header */
.rdv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft, rgba(194, 65, 12, 0.10));
  color: var(--accent, #C2410C);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.rdv-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #C2410C);
}

.rdv-title {
  font-family: var(--serif, 'Nunito'), 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, var(--text-primary, #F5F2ED));
  margin-bottom: 8px;
  line-height: 1.15;
}
.rdv-subtitle {
  font-size: 14.5px;
  color: var(--text2, var(--text-secondary, #A7A5A0));
  margin-bottom: 22px;
  line-height: 1.55;
}

/* Bullet list */
.rdv-bullets {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rdv-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text, var(--text-primary, #F5F2ED));
  line-height: 1.5;
}
.rdv-bullets li::before {
  content: '✓';
  color: var(--accent, #C2410C);
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Primary CTA — Calendly */
.rdv-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent, #C2410C);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(194, 65, 12, 0.35);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  margin-bottom: 20px;
}
.rdv-primary:hover {
  background: #EA580C;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(194, 65, 12, 0.45);
}
.rdv-primary svg {
  width: 18px;
  height: 18px;
}

/* Divider */
.rdv-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3, var(--text-muted, #65625E));
}
.rdv-or::before, .rdv-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.08));
}

/* Callback form */
.rdv-callback-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, var(--text-primary, #F5F2ED));
  margin-bottom: 4px;
}
.rdv-callback-sub {
  font-size: 13.5px;
  color: var(--text2, var(--text-secondary, #A7A5A0));
  margin-bottom: 14px;
  line-height: 1.5;
}
.rdv-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .rdv-fields { grid-template-columns: 1fr; }
}
.rdv-field {
  position: relative;
}
.rdv-field input {
  width: 100%;
  background: var(--bg2, var(--bg-secondary, #101012));
  border: 1px solid var(--border2, var(--border-light, rgba(255, 255, 255, 0.12)));
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text, var(--text-primary, #F5F2ED));
  transition: border-color 0.2s, background 0.2s;
}
.rdv-field input:focus {
  outline: none;
  border-color: var(--accent, #C2410C);
  background: var(--bg3, var(--bg-card-hover, #15151A));
}
.rdv-field input::placeholder {
  color: var(--text3, var(--text-muted, #65625E));
}
:root[data-theme="light"] .rdv-field input {
  background: #FBF8F2;
  border-color: rgba(0, 0, 0, 0.10);
}
:root[data-theme="light"] .rdv-field input:focus {
  background: #FFFFFF;
  border-color: var(--accent, #C2410C);
}

.rdv-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: var(--text, var(--text-primary, #F5F2ED));
  border: 1px solid var(--border2, var(--border-light, rgba(255, 255, 255, 0.12)));
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.rdv-secondary:hover {
  border-color: var(--accent, #C2410C);
  color: var(--accent, #C2410C);
  background: var(--accent-soft, rgba(194, 65, 12, 0.08));
}
.rdv-secondary svg {
  width: 16px;
  height: 16px;
}
.rdv-secondary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Reassurance microcopy */
.rdv-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3, var(--text-muted, #65625E));
  margin-top: 12px;
}
.rdv-reassure svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Success state */
.rdv-success {
  text-align: center;
  padding: 8px 0;
}
.rdv-success-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  margin: 0 auto 16px;
}
.rdv-success-ico svg { width: 28px; height: 28px; }
.rdv-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text, var(--text-primary, #F5F2ED));
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.rdv-success p {
  font-size: 14.5px;
  color: var(--text2, var(--text-secondary, #A7A5A0));
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Trigger button (the new "Prendre RDV" button) */
.rdv-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .rdv-modal {
    padding: 32px 24px 24px;
    border-radius: 20px;
    margin: 0;
  }
  .rdv-title { font-size: 22px; }
  .rdv-bullets li { font-size: 13.5px; }
}
