
:root { --nav-h: 63px; }


/* Background image of bandmate */
.mailing-image {
  position: absolute;
  right: -40px;
  bottom: 0;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .mailing-container {
    padding: 16px;
    width: min(560px, 94vw);
  }
}

@media (max-width: 375px) {
  .mailing-container {
    padding: 12px;
    width: 94vw;
  }
}


/* Typography scales gently */
.mailing-container h1 {
  font-size: clamp(1.4rem, 4vw, 1.75rem); /* was 2.2rem */
  color: var(--bad-actors-orange);
  margin-bottom: 0.5rem;
}
.mailing-container p {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  color: #ddd;
}


/* Tiny screens: top-align + ensure the button isn’t off-screen */
@media (max-width: 380px), (max-height: 700px) {
  #mailing_list .mailing-wrapper {
    align-content: start;                       /* ⟵ no vertical centering */
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }
  #mailing_list .mailing-container {
    max-height: calc(100svh - var(--nav-h) - 24px - env(safe-area-inset-bottom));
  }
}

/* Unified, centered consent row */
#mailing_list .consent-label {
  display: flex;
  align-items: center;      /* <- center vertically */
  gap: 10px;
  line-height: 1.3;
  cursor: pointer;
  padding: 6px 0px;
}

#consent-note{
  padding: 6px 0px;
  margin-top: 0;
}




.g-recaptcha {
  display: flex;
  justify-content: center;
}




/* Form card */
#subscribe-form {
  width: 100%;
  background: rgba(0, 0, 0, 0);
  padding-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form inputs */
.form-group {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #fff;
}

.form-input {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background: #f2f2f2;
  color: #000;
  font-size: 1rem;
}

/* Align the row */
.consent-label {
  display: flex;
  align-items: center;     /* center against multi-line text */
  gap: 10px;
  line-height: 1.35;
  cursor: pointer;
  padding: 2px 1px;
}

/* Custom checkbox */
.form-check-input {
  appearance: none;        /* keep your custom styles */
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background-color: #f2f2f2;
  cursor: pointer;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  align-self: center;      /* center in the flex row */
}

/* Focus ring */
.form-check-input:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad-actors-orange) 30%, transparent);
  outline: none;
}

/* Checked state */
.form-check-input:checked {
  background-color: var(--bad-actors-orange);
  border-color: var(--bad-actors-orange);
}

/* Draw the tick (✓) with borders so no font is required */
.form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 4px;               /* adjust if you tweak size */
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* Consent alignment */
.consent-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Error + note */
.form-note {
  font-size: 0.8rem;
  color: #ccc;
}

.form-error {
  color: #ff4d4d;
  font-size: 0.85rem;
}

/* Submit button */
.btn-submit {
  background: var(--bad-actors-orange);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #cc5200;
}

/* Recaptcha centered */
.g-recaptcha {
  display: flex;
  justify-content: center;
}



/* Form box spacing */
#subscribe-form {
  padding-left: 12px;          /* was 2rem */
  padding-right: 12px;         /* was 2rem */
  padding-bottom: 16px;        /* was 2rem */
  gap: 1rem;                   /* was 1.5rem */
}

/* Inputs/buttons scale down a touch on small screens */
.form-input {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  padding: 0.55rem;
}
.btn-submit {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  padding: 0.65rem 1.4rem;
}



/* last resort: scale the widget a bit */
.g-recaptcha { transform: scale(.9); transform-origin: 0 0; }
@media (max-width: 360px) { .g-recaptcha { transform: scale(.82); } }




#subscribe-form {
  display: grid;
  gap: 12px;
}

#subscribe-form .form-group { margin: 0; }
#subscribe-form .form-label  { display: block; margin: 0 0 6px; }
#subscribe-form .form-input  { width: 100%; padding: 10px 12px; }

.consent-text { font-size: 0.95rem; text-align: center }

.form-note {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.9;                      /* optional */
}


:root {
  --input-min-h: 44px;
  --input-py: 10px;
  --input-fs: 1rem;
}
.form-input {
  width: 100%;
  min-height: var(--input-min-h);
  padding: var(--input-py) 12px;
  font-size: var(--input-fs);
  line-height: 1.2;
  box-sizing: border-box;
}

/* Smaller screens: slightly shorter/smaller inputs */
@media (max-width: 380px) {
  :root {
    --input-min-h: 38px;
    --input-py: 8px;
    --input-fs: 0.95rem;
  }
}

/* Optional: match submit button height */
.btn-submit {
  min-height: var(--input-min-h);
  padding: var(--input-py) 16px;
  font-size: var(--input-fs);
}

/* Show a shorter label on tiny screens */
@media (max-width: 420px) {
  .form-label[data-short] { font-size: 0; }                 /* hide original text */
  .form-label[data-short]::after {
    content: attr(data-short);                              /* show short text */
    font-size: 0.95rem;
    letter-spacing: normal;
  }
}

/* show long by default */
.intro-copy .copy-short { display: none; }

/* on small screens, show short, hide long */
@media (max-width: 420px) {
  .intro-copy .copy-long  { display: none; }
  .intro-copy .copy-short { display: inline; }
}

/* === MAILING SECTION ONLY === */
#mailing_list .mailing-wrapper {
  height: calc(100svh - var(--nav-h));
  width: 100%;
  padding: 16px;
  display: grid;
  justify-items: center;         /* horizontal centering */
  align-content: center;         /* vertical centering (overridden on tiny screens) */
  box-sizing: border-box;
}

#mailing_list .mailing-container {
  /* one source of truth for width/padding/visuals */
  width: min(720px, 100%);
  max-height: 100%;
  margin-inline: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
  padding: clamp(16px, 3.5vw, 24px);
  padding-block: calc(clamp(16px, 4vh, 32px) + env(safe-area-inset-top, 0px))
                 calc(clamp(16px, 4vh, 32px) + env(safe-area-inset-bottom, 0px));
}

/* Typography */
#mailing_list .mailing-container h1 {
  color: var(--bad-actors-orange);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  margin-bottom: .5rem;
}
#mailing_list .mailing-container p {
  color: #ddd;
  font-size: clamp(.95rem, 2.5vw, 1rem);
}

/* Form layout */
#mailing_list #subscribe-form {
  display: grid;
  gap: 12px;
  width: 100%;
  background: transparent;
  padding: 0 12px 16px;
  border-radius: 10px;
  text-align: left;
}

#mailing_list #subscribe-form .form-group { margin: 0; display: flex; flex-direction: column; }
#mailing_list #subscribe-form .form-label { font-weight: 700; color: #fff; margin: 0 0 6px; }
#mailing_list #subscribe-form .form-input {
  width: 100%;
  min-height: var(--input-min-h, 44px);
  padding: var(--input-py, 10px) 12px;
  font-size: var(--input-fs, 1rem);
  line-height: 1.2;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: #000;
  box-sizing: border-box;
}

/* Consent row (centered, custom checkbox with tick) */
#mailing_list .consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  cursor: pointer;
  padding: 6px 0;
}

#mailing_list .form-check-input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 18px; height: 18px;
  border: 2px solid #ccc; border-radius: 3px;
  background: #f2f2f2;
  position: relative; margin: 0; align-self: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
#mailing_list .form-check-input:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad-actors-orange) 30%, transparent);
  outline: none;
}
#mailing_list .form-check-input:checked {
  background-color: var(--bad-actors-orange);
  border-color: var(--bad-actors-orange);
}
#mailing_list .form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
#mailing_list .consent-text { font-size: .95rem; line-height: 1.3; }

/* Notes & errors */
#mailing_list .form-note { display: block; margin-top: 6px; font-size: .9rem; opacity: .9; }
#mailing_list .form-error { color: #ff4d4d; font-size: .85rem; }

/* Submit */
#mailing_list .btn-submit {
  min-height: var(--input-min-h, 44px);
  padding: var(--input-py, 10px) 16px;
  font-size: var(--input-fs, 1rem);
  background: var(--bad-actors-orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: background .2s ease;
}
#mailing_list .btn-submit:hover { background: #cc5200; }

/* reCAPTCHA */
#mailing_list .g-recaptcha { display: flex; justify-content: center; transform-origin: 0 0; }
@media (max-width: 360px) {
  #mailing_list .g-recaptcha { transform: scale(.85); }
}

/* Tiny screens: top-align the card so the button never clips */
@media (max-width: 380px), (max-height: 700px) {
  #mailing_list .mailing-wrapper {
    align-content: start;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }
  #mailing_list .mailing-container {
    max-height: calc(100svh - var(--nav-h) - 24px - env(safe-area-inset-bottom));
    padding: 2px 2px 2px 2px;
  }
  .mailing-wrapper .mailing-container h1{
    margin-bottom: 2px;
  }
}

/* Short label versions */
@media (max-width: 420px) {
  .form-label[data-short] { font-size: 0; }
  .form-label[data-short]::after { content: attr(data-short); font-size: .95rem; }
}

/* Intro copy swap */
.intro-copy .copy-short { display: none; }
@media (max-width: 420px) {
  .intro-copy .copy-long { display: none; }
  .intro-copy .copy-short { display: inline; }
}

#mailing_list .btn-submit.is-disabled,
#mailing_list .btn-submit[disabled] {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(.2);
}

