/* The free book page. The Iboga Source look of the booking door (black earth, sand
   gold, Cinzel). ?embed=1 = only the form, see-through, styled like the form block on
   theibogasource.com (white labels, underlined fields, an outlined pill button). */
:root{
  --bg:#0d0b09; --surface:#17130f; --ink:#f3ead9; --muted:#b9ab95; --line:#34291e;
  --accent:#d9ad70; --accent-ink:#17110a; --error:#f0a27a;
  --glow:radial-gradient(110% 60% at 50% -12%, rgba(217,173,112,.30) 0%, rgba(184,132,55,.10) 40%, rgba(13,11,9,0) 72%);
  --display:"Cinzel",Georgia,serif;
  --body:"Book Antiqua","Palatino Linotype",Palatino,Georgia,serif;
  --ui:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font:400 17px/1.55 var(--body)}
.glow{position:fixed;inset:0 0 auto 0;height:70vh;background:var(--glow);pointer-events:none;z-index:0}
a{color:var(--accent)}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
h1,h2,p{margin:0}
h1,h2{font-family:var(--display);font-weight:600;line-height:1.12;text-wrap:balance}
h1{font-size:clamp(1.7rem,5.6vw,2.4rem)}
h2{font-size:1.5rem}

.fb{position:relative;z-index:1;max-width:980px;margin:0 auto;padding:calc(28px + env(safe-area-inset-top,0px)) 16px 40px;
  display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:40px;align-items:center}
.fb-cover{margin:0}
.fb-cover img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 30px 70px rgba(0,0,0,.6),0 0 0 1px rgba(217,173,112,.18)}
.fb-side{display:flex;flex-direction:column;gap:22px;min-width:0}
.fb-head{display:flex;flex-direction:column;gap:10px}
.fb-eyebrow{font:600 .74rem var(--ui);letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.fb-sub{font-family:var(--display);font-size:1rem;letter-spacing:.06em;color:var(--accent)}
.fb-lead{color:var(--muted)}

.fb-form{display:flex;flex-direction:column;gap:16px}
.fb-field{display:flex;flex-direction:column;gap:6px;font:500 .9rem var(--ui)}
.fb-field input{width:100%;min-height:46px;padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font:400 1rem var(--ui)}
.fb-field input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px rgba(217,173,112,.25)}
.fb-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.fb-check{display:flex;gap:10px;align-items:flex-start;font:400 .88rem/1.45 var(--ui);color:var(--muted);cursor:pointer}
.fb-check input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent)}
.fb-error{font:500 .9rem var(--ui);color:var(--error)}
.fb-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:999px;
  border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);font:700 .95rem var(--ui);letter-spacing:.06em;
  text-transform:uppercase;text-decoration:none;cursor:pointer;transition:transform .15s ease,opacity .15s ease}
.fb-btn:hover{transform:translateY(-1px)}
.fb-btn[disabled]{opacity:.6;cursor:wait;transform:none}
.fb-note{font:400 .8rem var(--ui);color:var(--muted)}
.fb-done{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.fb-done:focus{outline:none}
.fb-foot{position:relative;z-index:1;text-align:center;padding:0 16px 32px;font:400 .8rem var(--ui)}
.fb-foot a{color:var(--muted)}

@media (max-width:760px){
  .fb{grid-template-columns:1fr;gap:26px;padding-top:calc(20px + env(safe-area-inset-top,0px))}
  .fb-cover{max-width:170px;justify-self:center}
  .fb-head{text-align:center;align-items:center}
  .fb-btn{width:100%}
  .fb-done{align-items:stretch;text-align:center}
}

/* Inside theibogasource.com: only the form, on the section's own black.
   color-scheme must match the parent page (normal), or the browser paints the frame opaque. */
:root[data-embed="1"]{color-scheme:normal}
:root[data-embed="1"] body{background:transparent;min-height:0;color:#fff}
:root[data-embed="1"] .glow,:root[data-embed="1"] .full-only{display:none}
:root[data-embed="1"] .fb{display:block;max-width:none;padding:6px 2px 8px}
:root[data-embed="1"] .fb-side{gap:0}
:root[data-embed="1"] .fb-form{gap:14px}
:root[data-embed="1"] .fb-field{font:500 .82rem var(--ui);color:#fff;gap:2px}
:root[data-embed="1"] .fb-field input{min-height:40px;padding:6px 0;border:0;border-bottom:1px solid rgba(255,255,255,.55);border-radius:0;background:transparent}
:root[data-embed="1"] .fb-field input:focus{border-bottom-color:var(--accent);box-shadow:0 1px 0 var(--accent)}
:root[data-embed="1"] .fb-check{color:rgba(255,255,255,.75)}
:root[data-embed="1"] .fb-btn{align-self:center;background:transparent;color:#fff;border-color:#fff;min-width:min(100%,300px)}
:root[data-embed="1"] .fb-btn-solid{background:#fff;color:#0d0b09}
:root[data-embed="1"] .fb-note{text-align:center;color:rgba(255,255,255,.6)}
:root[data-embed="1"] .fb-done{align-items:center;text-align:center;padding-top:40px;color:#fff}
:root[data-embed="1"] .fb-done .fb-note{max-width:34ch}

@media (prefers-reduced-motion:reduce){.fb-btn{transition:none}.fb-btn:hover{transform:none}}
