/* Regencium — book session OTO embed (matches regencium.com/book) */

:root {
  --ink: #070707;
  --ink-raised: #101010;
  --ink-soft: #1a1a1a;
  --paper: #f4efe4;
  --paper-muted: #c8bfae;
  --gold: #d5a938;
  --gold-bright: #e8c86a;
  --gold-dim: #98751e;
  --line: rgba(213, 169, 56, 0.28);
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bodoni Moda", "Times New Roman", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}

body.rg-embed {
  font-family: var(--font-sans);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.rg-section {
  background: var(--ink);
  padding: 1rem 0.75rem 1.25rem;
}

@media (min-width: 640px) {
  .rg-section {
    padding: 1.25rem 1rem 1.5rem;
  }
}

.rg-inner {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.rg-title {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-size: 2.25rem;
  color: var(--paper);
}

@media (min-width: 640px) {
  .rg-title {
    font-size: 3rem;
  }
}

.rg-form-card {
  border: 1px solid rgba(213, 169, 56, 0.5);
  background: rgba(213, 169, 56, 0.12);
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .rg-form-card {
    padding: 2.5rem 2rem;
  }
}

.rg-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .rg-steps {
    gap: 1rem;
  }
}

.rg-step {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.55);
}

@media (min-width: 640px) {
  .rg-step {
    padding: 1.25rem;
  }
}

.rg-step--active {
  border-color: var(--gold);
  background: var(--ink-raised);
}

.rg-step__n {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.4);
}

.rg-step--active .rg-step__n {
  color: var(--gold);
}

.rg-step__label {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: rgba(244, 239, 228, 0.45);
}

@media (min-width: 640px) {
  .rg-step__label {
    font-size: 1.5rem;
  }
}

.rg-step--active .rg-step__label {
  color: var(--paper);
}

.rg-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.rg-alert {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(220, 80, 80, 0.45);
  background: rgba(220, 80, 80, 0.12);
  color: #f5c4c4;
  font-size: 0.875rem;
}

.rg-field {
  display: block;
}

.rg-field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.rg-input {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 0;
}

.rg-input:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.rg-input {
  min-height: 7rem;
  resize: vertical;
}

select.rg-input {
  appearance: none;
  color-scheme: dark;
  background-color: var(--ink-raised);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

select.rg-input option {
  background-color: var(--ink);
  color: var(--paper);
}

.rg-row {
  display: grid;
  gap: 1.25rem;
}

/* Iframe viewport ≈ iframe width. On /book desktop the form column is ~560–600px,
   so a 640px (sm) breakpoint never fires. Use 480px: phones stay 1-col; tablet/desktop embeds get 2-col. */
@media (min-width: 480px) {
  .rg-row {
    grid-template-columns: 1fr 1fr;
  }
}

.rg-provider-card {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid rgba(213, 169, 56, 0.4);
  background: rgba(7, 7, 7, 0.35);
  padding: 0.625rem 0.75rem;
}

.rg-provider-card[hidden] {
  display: none;
}

.rg-provider-card__photo {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 0 0 1px rgba(213, 169, 56, 0.5);
}

.rg-provider-card__name {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--paper);
}

.rg-provider-card__role {
  margin: 0.125rem 0 0;
  font-size: 0.72rem;
  line-height: 1rem;
  color: var(--gold);
}

.rg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 300ms;
}

.rg-submit:hover:not(:disabled) {
  background: var(--gold-bright);
}

.rg-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Thanks view */
.rg-thanks {
  max-width: 40rem;
}

.rg-thanks[hidden],
.rg-form-view[hidden] {
  display: none;
}

.rg-thanks__body {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 2rem;
  color: rgba(244, 239, 228, 0.86);
}

@media (min-width: 640px) {
  .rg-thanks__body {
    font-size: 1.125rem;
  }
}

.rg-thanks__steps {
  margin-top: 2.5rem;
  max-width: 36rem;
}

.rg-thanks__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.rg-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 300ms;
}

.rg-calendar-btn:hover {
  background: var(--gold-bright);
}

.rg-thanks__phone {
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 200ms;
}

.rg-thanks__phone:hover {
  color: var(--gold-bright);
}

@keyframes review-up {
  from {
    opacity: 0;
    transform: translate3d(0, 1.15rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.review-enter {
  animation: review-up 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .review-enter {
    animation: none !important;
  }
}
