:root {
  --smh-license-ink: #11110f;
  --smh-license-paper: #f5f1e8;
  --smh-license-gold: #c9a96a;
  --smh-license-muted: #6f6a60;
}

.smh-license-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  width: min(920px, calc(100% - 28px));
  max-height: min(900px, calc(100vh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201,169,106,.66);
  background: var(--smh-license-paper);
  color: var(--smh-license-ink);
  box-shadow: 0 0 0 100vmax rgba(5,5,4,.82), 0 35px 110px rgba(0,0,0,.62);
}

.smh-license-modal::backdrop {
  background: rgba(5,5,4,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.smh-license-modal__shell { max-height: min(900px, calc(100vh - 28px)); overflow-y: auto; }
.smh-license-modal__header { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 15px clamp(20px,4vw,42px); border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(17,17,15,.98); color: var(--smh-license-gold); }
.smh-license-modal__brand { display: flex; align-items: center; gap: 13px; font: 600 15px/1 Arial,sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.smh-license-modal__brand small { color: #eee9df; font-size: 8px; letter-spacing: .24em; }
.smh-license-modal__mark { display: block; width: 35px; aspect-ratio: 88 / 63; background: url('../images/sundance-mark.svg') center / contain no-repeat; }
.smh-license-modal__close { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: transparent; color: #fff; font: 300 29px/1 Arial,sans-serif; cursor: pointer; transition: .2s ease; }
.smh-license-modal__close:hover, .smh-license-modal__close:focus-visible { border-color: var(--smh-license-gold); color: var(--smh-license-gold); transform: rotate(8deg); }
.smh-license-modal__intro, .smh-license-modal__success { padding: clamp(35px,6vw,70px) clamp(24px,7vw,72px) clamp(20px,4vw,42px); }
.smh-license-modal__intro h2, .smh-license-modal__success h2 { max-width: 720px; margin: 0 0 18px; font: 700 clamp(2.35rem,5vw,4.9rem)/.9 'F37 Judge Extended','Arial Narrow',Arial,sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
.smh-license-modal__intro > p:last-child, .smh-license-modal__success > p { max-width: 690px; color: var(--smh-license-muted); font-size: 1rem; line-height: 1.65; }
.smh-license-modal__eyebrow { margin: 0 0 18px; color: #8e6c2c; font: 700 11px/1.2 Arial,sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.smh-license-modal__success { min-height: 500px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

.smh-license-form { padding: 0 clamp(24px,7vw,72px) clamp(50px,7vw,78px); }
.smh-license-form fieldset { margin: 34px 0 0; padding: 0; border: 0; }
.smh-license-form legend { width: 100%; margin: 0 0 20px; padding: 0 0 11px; border-bottom: 1px solid rgba(17,17,15,.2); color: #8e6c2c; font: 700 12px/1.2 Arial,sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.smh-license-form__grid, .smh-license-form__song { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 22px; }
.smh-license-form__song { margin-bottom: 34px; padding: 22px; background: #191916; }
.smh-license-form p { min-width: 0; margin: 0; }
.smh-license-form__full { grid-column: 1 / -1; }
.smh-license-form label, .smh-license-form__label { display: block; color: #625a4d; font: 700 10px/1.35 Arial,sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.smh-license-form input:not([type="checkbox"]), .smh-license-form select, .smh-license-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid rgba(17,17,15,.25); border-radius: 0; background: rgba(255,255,255,.72); color: var(--smh-license-ink); font: 500 16px/1.35 Arial,sans-serif; letter-spacing: 0; text-transform: none; }
.smh-license-form input:focus, .smh-license-form select:focus, .smh-license-form textarea:focus { outline: 2px solid var(--smh-license-gold); outline-offset: 1px; border-color: var(--smh-license-gold); }
.smh-license-form__song label { color: var(--smh-license-gold); }
.smh-license-form__song input { border-color: rgba(255,255,255,.2) !important; background: rgba(255,255,255,.07) !important; color: #fff !important; }
.smh-license-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 14px; margin-top: 10px; padding: 16px; border: 1px solid rgba(17,17,15,.18); background: rgba(255,255,255,.42); }
.smh-license-options label { display: flex; align-items: center; gap: 8px; color: #312f2a; font-size: 11px; letter-spacing: .05em; text-transform: none; }
.smh-license-options input, .smh-license-consent input { width: 17px; height: 17px; accent-color: #8e6c2c; }
.smh-license-consent { margin-top: 26px !important; }
.smh-license-consent label { display: flex; align-items: flex-start; gap: 10px; color: var(--smh-license-muted); font-size: 11px; letter-spacing: .02em; line-height: 1.5; text-transform: none; }
.smh-license-submit { min-width: 270px; margin-top: 25px; padding: 17px 22px; border: 1px solid var(--smh-license-gold); background: var(--smh-license-gold); color: var(--smh-license-ink); font: 700 11px/1 Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: .2s ease; }
.smh-license-submit:hover, .smh-license-submit:focus-visible { background: var(--smh-license-ink); color: var(--smh-license-gold); }
.smh-license-honeypot { position: absolute !important; left: -9999px !important; }
body.smh-license-open { overflow: hidden; }
.smh-license-embed { border: 1px solid rgba(201,169,106,.45); background: var(--smh-license-paper); color: var(--smh-license-ink); box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.smh-license-form--inline { padding-top: clamp(32px,5vw,58px); }
.smh-license-form--inline fieldset:first-of-type { margin-top: 0; }
.smh-license-embed__success { min-height: 360px; padding: clamp(40px,7vw,80px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.smh-license-embed__success h3 { max-width: 720px; margin: 0 0 18px; font: 700 clamp(2.35rem,5vw,4.9rem)/.9 'F37 Judge Extended','Arial Narrow',Arial,sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
.smh-license-embed__success > p:last-child { max-width: 690px; margin: 0; color: var(--smh-license-muted); font-size: 1rem; line-height: 1.65; }

@media (max-width: 680px) {
  .smh-license-modal { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; }
  .smh-license-modal__shell { max-height: 100dvh; }
  .smh-license-modal__header { min-height: 70px; }
  .smh-license-modal__intro, .smh-license-modal__success { padding-inline: 20px; }
  .smh-license-form { padding-inline: 20px; }
  .smh-license-form__grid, .smh-license-form__song { grid-template-columns: 1fr; }
  .smh-license-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smh-license-submit { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .smh-license-modal *, .smh-license-modal *::before, .smh-license-modal *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
