/* =========================================================
   request-demo.css — extras for the request-demo page.
   Base look comes from style.css.
   ========================================================= */
.rd-page { background: var(--ivory); }
.rd-hero { text-align: center; padding: 3rem 0 2rem; max-width: 760px; }
.rd-hero .lead { margin-inline: auto; }
.rd-layout { display: grid; gap: 2rem; padding-bottom: 5rem; align-items: start; }
.rd-form fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.rd-form legend { font: 600 1.15rem var(--font-head); color: var(--wine); padding: 0; margin-bottom: .9rem; }
.rd-form legend .opt { font: 400 .78rem var(--font-body); color: var(--muted); }
.event-row { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; padding: .9rem; margin-bottom: .7rem; background: var(--soft); border-radius: var(--radius-sm); }
.event-row .field:first-child, .event-row .field:last-child { grid-column: 1 / -1; }
.event-row .field label { font-size: .78rem; }
.rd-form .form-actions .btn { flex: 1 1 200px; }

.rd-preview { min-width: 0; }
.rd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.rd-switch { display: inline-flex; border: 1px solid rgba(112, 38, 61, .3); border-radius: 999px; overflow: hidden; background: #fff; }
.rd-switch button { border: 0; background: none; padding: .45rem 1rem; font: 500 .8rem var(--font-body); color: var(--wine); cursor: pointer; }
.rd-switch button.active { background: var(--wine); color: #fff; }
.rd-frame-wrap { background: #1d1519; border-radius: 28px; padding: 12px; margin-inline: auto; box-shadow: var(--shadow-lg); transition: max-width .3s; }
.rd-frame-wrap[data-size="mobile"] { max-width: 390px; }
.rd-frame-wrap[data-size="desktop"] { max-width: 100%; border-radius: 14px; padding: 8px; }
.rd-frame-wrap iframe { display: block; width: 100%; height: 640px; border: 0; border-radius: 18px; background: #fff; }
#linkLabel { margin-top: .8rem; word-break: break-all; }

@media (min-width: 1024px) {
  .rd-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rd-preview { position: sticky; top: calc(var(--header-h) + 1rem); }
  .rd-frame-wrap iframe { height: calc(100vh - 220px); min-height: 520px; }
}
@media (max-width: 420px) { .event-row { grid-template-columns: 1fr; } }
