/*
 * YMCA of Greater Tulsa — storyteller.css
 * Storyteller Recruitment template (template-storyteller.php)
 * /beastoryteller — single vertical column:
 * Intro → (optional) Contact callout → Calendar WYSIWYG → Sign-up form
 */

.st-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px var(--pad, 64px) 96px;
}

/* Every top-level section stacks with the same rhythm */
.st-intro,
.st-contact,
.st-calendar,
.st-form,
.st-extra {
  margin-bottom: 64px;
}

/* ════════════════════════════════════════
   INTRO
════════════════════════════════════════ */
.st-graphic {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.st-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.st-headline {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1.2;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.st-intro-copy {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
  margin-bottom: 32px;
}

/* Rich text (WYSIWYG) */
.st-rich p {
  margin-bottom: 14px;
}
.st-rich p:last-child {
  margin-bottom: 0;
}
.st-rich a {
  color: var(--blue);
  font-weight: 600;
}
.st-rich a:hover {
  color: var(--green);
}
.st-rich ul,
.st-rich ol {
  margin: 0 0 20px 1.4em;
  padding: 0;
}
.st-rich ul {
  list-style: disc;
}
.st-rich ol {
  list-style: decimal;
}
.st-rich li::marker {
  color: var(--green);
}
.st-rich li {
  margin-bottom: 6px;
}
.st-rich h2,
.st-rich h3,
.st-rich h4 {
  font-family: var(--font-heading);
  color: #1a1a1a;
  margin: 28px 0 12px;
  line-height: 1.25;
}

/* ── Buttons ── */
.st-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.st-btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.st-btn-primary:hover {
  background: var(--green-dk);
  border-color: var(--green-dk);
  color: #fff;
}
.st-btn-secondary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.st-btn-secondary:hover {
  background: #004f96;
  border-color: #004f96;
  color: #fff;
}
.st-btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.st-btn-ghost:hover {
  background: var(--blue);
  color: #fff;
}

/* ════════════════════════════════════════
   CONTACT CALLOUT
   Light tinted banner: icon · copy · actions
════════════════════════════════════════ */
.st-contact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: #eff5f2;
  border: 0.5px solid #d6e9e1;
  border-radius: 12px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}
.st-contact::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green), var(--teal));
}
.st-contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 110, 86, 0.12);
  flex-shrink: 0;
}
.st-contact-heading {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--green-xdk);
  margin: 0 0 4px;
}
.st-contact-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
}
.st-contact-text strong {
  color: #1a1a1a;
  font-weight: 600;
}
.st-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 11px 22px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.st-contact-btn:hover {
  background: var(--green-dk);
  border-color: var(--green-dk);
  color: #fff;
}
.st-contact-btn-alt {
  background: #fff;
  color: var(--green-dk);
  border-color: #cfe3da;
}
.st-contact-btn-alt:hover {
  background: #fff;
  color: var(--green-xdk);
  border-color: var(--green);
}

/* ════════════════════════════════════════
   SECTION HEADINGS (shared)
════════════════════════════════════════ */
.st-section-head {
  margin-bottom: 28px;
}
.st-section-title {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.st-section-intro {
  font-size: 15px;
  line-height: 1.75;
  color: #666;
}

/* ════════════════════════════════════════
   CALENDAR — free-flowing WYSIWYG
════════════════════════════════════════ */
.st-calendar {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
}
.st-calendar h2 {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.st-calendar h2 strong {
  font-weight: inherit;
}
.st-calendar h3 {
  font-size: 19px;
}

/* ════════════════════════════════════════
   SIGN-UP FORM
════════════════════════════════════════ */
.st-form {
  scroll-margin-top: 120px;
}
.st-form-card {
  background: #fff;
  border: 0.5px solid #e8e8e8;
  border-top: 4px solid var(--green);
  border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  min-height: 160px;
}
.st-form-card iframe {
  max-width: 100%;
  border: 0;
}

/* ── Virtuous embed overrides ──────────────
   Virtuous injects its own inline/embedded
   styles, so everything here uses !important.
   Matches gravity-forms.css (labels, inputs,
   buttons) so it reads like the rest of the site.
──────────────────────────────────────────── */

/* Stack every field full-width, one per row */
form[id*="vcrm"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-family: var(--font-body, "Noto Serif", Georgia, serif) !important;
}
form[id*="vcrm"] .v_ig {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Labels — same as .gfield_label */
form[id*="vcrm"] .v_ig .v_lw label,
form[id*="vcrm"] .v_ig label {
  display: block !important;
  font-family: var(--font-heading, "CachetPro", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #1a1a1a !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
}

/* Radio / checkbox option labels — lighter, like .gfield_radio label */
form[id*="vcrm"] .v_ig label:has(> input[type="radio"]),
form[id*="vcrm"] .v_ig label:has(> input[type="checkbox"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--font-body, "Noto Serif", Georgia, serif) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #3a3a3a !important;
  cursor: pointer !important;
}

/* Inputs, selects, textareas — same as .gfield inputs */
form[id*="vcrm"] input[type="text"],
form[id*="vcrm"] input[type="email"],
form[id*="vcrm"] input[type="tel"],
form[id*="vcrm"] input[type="number"],
form[id*="vcrm"] input[type="url"],
form[id*="vcrm"] input[type="date"],
form[id*="vcrm"] select,
form[id*="vcrm"] textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--font-body, "Noto Serif", Georgia, serif) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  background-color: #fff !important;
  border: 1.5px solid #d8d8d8 !important;
  border-radius: 5px !important;
  padding: 11px 14px !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
}
form[id*="vcrm"] input:focus,
form[id*="vcrm"] select:focus,
form[id*="vcrm"] textarea:focus {
  border-color: var(--green, #1d9e75) !important;
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12) !important;
}
form[id*="vcrm"] input::placeholder,
form[id*="vcrm"] textarea::placeholder {
  color: #bbb !important;
}
form[id*="vcrm"] textarea {
  min-height: 120px !important;
  line-height: 1.65 !important;
  resize: vertical !important;
}
form[id*="vcrm"] select {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}
form[id*="vcrm"] input[type="radio"],
form[id*="vcrm"] input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  accent-color: var(--green, #1d9e75) !important;
}

/* Submit — same as .gform_button */
form[id*="vcrm"] button[type="submit"],
form[id*="vcrm"] input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  font-family: var(--font-heading, "CachetPro", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: var(--green, #1d9e75) !important;
  border: 1.5px solid var(--green, #1d9e75) !important;
  border-radius: 4px !important;
  padding: 13px 36px !important;
  margin-top: 8px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition:
    background 0.15s,
    border-color 0.15s !important;
}
form[id*="vcrm"] button[type="submit"]:hover,
form[id*="vcrm"] input[type="submit"]:hover {
  background: var(--green-dk, #0f6e56) !important;
  border-color: var(--green-dk, #0f6e56) !important;
}

/* ── Extra content ── */
.st-extra {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .st-wrap {
    padding: 48px var(--pad, 20px) 64px;
  }
  .st-intro,
  .st-contact,
  .st-calendar,
  .st-form,
  .st-extra {
    margin-bottom: 48px;
  }
  .st-headline {
    font-size: 28px;
  }
  .st-section-title {
    font-size: 26px;
  }
  .st-btns {
    flex-direction: column;
  }
  .st-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .st-contact {
    grid-template-columns: auto 1fr;
    padding: 22px 20px 22px 24px;
    gap: 16px;
  }
  .st-contact-icon {
    width: 46px;
    height: 46px;
  }
  .st-contact-actions {
    grid-column: 1 / -1;
  }
  .st-contact-btn {
    width: 100%;
  }
  .st-calendar h2 {
    font-size: 26px;
  }
  .st-form-card {
    padding: 28px 20px;
  }
  form[id*="vcrm"] button[type="submit"],
  form[id*="vcrm"] input[type="submit"] {
    width: 100% !important;
  }
}
