/* ============================================================
   Connect With Us — matches the main Ask UE interface
   ============================================================ */

/* Hide the floating reCAPTCHA badge on mobile. The required disclosure
   text ("This site is protected by reCAPTCHA …") must be shown in the
   form when the badge itself is hidden. */
@media (max-width: 899px) {
  .grecaptcha-badge { visibility: hidden !important; }
}

@font-face {
  font-family: "HelveticaNeue";
  src: url("/fonts/HelveticaNeue-Thin.otf") format("opentype");
  font-style: normal;
  font-weight: 100 300;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeue";
  src: url("/fonts/HelveticaNeue-MediumCond.otf") format("opentype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeue";
  src: url("/fonts/HelveticaNeue-BlackCond.otf") format("opentype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --border: #e6e8ec;
  --text: #0c1015;
  --text-muted: #5b6675;
  --accent-strong: #0a62ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.25);
  --app-font: "HelveticaNeue", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  font-family: var(--app-font);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body {
    background: radial-gradient(circle at 30% 20%, #1a1d23 0%, #0b0c0f 60%);
    min-height: 100vh;
  }
}

/* ------------------------------------------------------------
   Card
   ------------------------------------------------------------ */

.contact-card {
  background: var(--surface);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .contact-card {
    max-width: 640px;
    margin: 48px auto;
    min-height: 0;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

h1 {
  font-size: 28px;
  text-align: center;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto 8px;
  max-width: 520px;
}
h2 a { color: var(--accent-strong); border-bottom: 1px solid rgba(10, 98, 255, 0.35); }

h3 {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  margin: 18px 0 4px;
}
h3 a { color: var(--accent-strong); }

h4 {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 14px;
}

h5 {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 4px 0 6px;
}

a, a:visited { text-decoration: none; color: inherit; }

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

input:hover,
textarea:hover,
select:hover { border-color: #cfd3da; }

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(10, 98, 255, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* Custom dropdown caret */
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%235b6675' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}

::placeholder { color: #98a0ad; }

#char_count {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: right;
}

/* ------------------------------------------------------------
   Submit button
   ------------------------------------------------------------ */

button {
  width: 100%;
  appearance: none;
  border: 0;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 22px;
  margin-top: 18px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.1s ease;
}

button:hover, button:focus { background: #2c2f35; }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------
   Thank-you overlay
   ------------------------------------------------------------ */

#thank_you_container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1000;
  /* place-items centers BOTH axes (vertical + horizontal) in one rule. */
  place-items: center;
  place-content: center;
}

#thank_you_container.visible {
  display: grid;
  opacity: 1;
}

/* ------------------------------------------------------------
   Scrollbar — uses the browser default to match
   https://www.help.ultimateears.com/ which applies no custom
   scrollbar styling (verified via inspection of its stylesheets).
   ------------------------------------------------------------ */
