/* ===============================
   Club Emprendo – Global Styles
   (public application, survey and thank-you pages)
   =============================== */

/* Self-hosted fonts (same files as the admin). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/inter-latin-ext-wght-normal.ad4eb06671be.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/inter-latin-wght-normal.8e433c0592f7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../fonts/plus-jakarta-sans-latin-ext-wght-normal.cc2090cafea0.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../fonts/plus-jakarta-sans-latin-wght-normal.13d1b429e990.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Color palette */
:root {
  --ce-pink: #fee3e3;
  --ce-soft-pink: #fdeaea;
  --ce-pink-strong: #fbcfd0;
  --ce-deep-green: #223413;
  --ce-green-700: #2f481b;
  --ce-green-600: #3d5e25;
  --ce-green-400: #80a865;
  --ce-green-100: #e5efdc;
  --ce-green-50: #f3f7ee;
  --ce-muted-green: #6d7a64;
  --ce-purple: #6b3cc4;
  --ce-purple-50: #f5f0fe;
  --ce-bg: #f8f7f5;
  --ce-white: #ffffff;

  --ce-text: #1a1917;
  --ce-text-secondary: #5f5b53;
  --ce-text-muted: #7d796f;
  --ce-border: #e2e0db;
  --ce-border-strong: #d0cdc6;
  --ce-error: #d14b4b;

  --ce-radius-lg: 20px;
  --ce-radius-md: 12px;
  --ce-radius-sm: 8px;

  --ce-shadow-soft: 0 1px 2px rgba(26, 25, 23, 0.04), 0 8px 28px -10px rgba(26, 25, 23, 0.12);
  --ce-focus-ring: 0 0 0 4px rgba(107, 60, 196, 0.16);

  --ce-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --ce-font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ce-font-sans);
  font-size: 16px;
  background-color: var(--ce-bg);
  background-image:
    radial-gradient(1100px 480px at 8% -8%, rgba(254, 227, 227, 0.7), transparent 62%),
    radial-gradient(900px 420px at 100% -4%, rgba(229, 239, 220, 0.75), transparent 58%);
  background-repeat: no-repeat;
  color: var(--ce-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ce-pink-strong);
  color: var(--ce-text);
}

a {
  color: var(--ce-purple);
}

/* Headings */
h1,
h2,
h3,
h4,
.ce-heading {
  font-family: var(--ce-font-display);
  color: var(--ce-text);
  letter-spacing: -0.015em;
}

/* Layout */
.ce-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ce-main {
  flex: 1;
}

/* ===============================
   Header
   =============================== */
.ce-header {
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(26, 25, 23, 0.07);
}

.ce-header-inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Branding */
.ce-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* The logo file has generous transparent padding; crop to the artwork. */
.ce-logo {
  position: relative;
  display: block;
  height: 48px;
  aspect-ratio: 600 / 398;
  overflow: hidden;
}

.ce-logo img {
  position: absolute;
  top: -38.69%;
  left: -28.33%;
  display: block;
  width: 156.67%;
  max-width: none;
  height: auto;
}

.ce-brand-text {
  display: flex;
  flex-direction: column;
}

/* The logo artwork already spells the name. */
.ce-brand-name {
  display: none;
}

.ce-brand-tagline {
  font-size: 0.8rem;
  color: var(--ce-muted-green);
}

/* ===============================
   ❌ REMOVE ROLE CHIPS (FIX)
   =============================== */

/* These were the pink “Mentoras / Emprendedoras” pills */
.ce-role-chips,
.ce-chip {
  display: none !important;
}

/* ===============================
   Main content
   =============================== */
.ce-container {
  width: 100%;
  max-width: 880px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.25rem;
}

/* Card */
.ce-card {
  background: var(--ce-white);
  border-radius: var(--ce-radius-lg);
  box-shadow: var(--ce-shadow-soft);
  padding: 2.25rem 2.5rem;
  border: 1px solid var(--ce-border);
}

@media (max-width: 768px) {
  .ce-card {
    padding: 1.5rem 1.25rem;
  }
}

.ce-muted {
  color: var(--ce-text-secondary);
}

/* Form header */
.ce-form-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.ce-form-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--ce-pink);
  color: var(--ce-deep-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(194, 65, 90, 0.12);
}

.ce-form-title {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

.ce-form-subtitle {
  font-size: 1rem;
  color: var(--ce-text-secondary);
  margin: 0;
}

/* ===============================
   Form fields
   =============================== */
form {
  margin: 0;
}

.ce-page-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  margin: 0 0 1.25rem;
  object-fit: contain;
  border-radius: var(--ce-radius-md);
}

.ce-page-image--intro {
  max-height: 400px;
}

.ce-page-image--small {
  width: min(100%, 360px);
}

.ce-page-image--medium {
  width: min(100%, 620px);
}

.ce-page-image--full {
  width: auto;
  max-width: 100%;
}

.ce-page-image--align-left {
  margin-right: auto;
}

.ce-page-image--align-center {
  margin-right: auto;
  margin-left: auto;
}

.ce-page-image--align-right {
  margin-left: auto;
}

/* Each question block. */
.form-row {
  margin-bottom: 1.6rem;
}

.form-row > label {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ce-text);
  margin-bottom: 0.45rem;
}

.form-help {
  display: block;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ce-text-secondary);
  margin-bottom: 0.6rem;
}

/* Validation messages (inline color set by the form script and views). */
.form-help[style*="d14b4b"] {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-weight: 600;
}

.form-help[style*="d14b4b"]::before {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: #d14b4b;
  color: #fff;
  content: "!";
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}

.ce-help-text p {
  margin: 0 0 0.7rem;
}

.ce-help-text p:last-child {
  margin-bottom: 0;
}

.ce-help-text a {
  color: var(--ce-purple);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ce-terms-prompt {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(107, 60, 196, 0.18);
  border-radius: var(--ce-radius-md);
  background: var(--ce-purple-50);
  color: #3f305f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ce-terms-prompt a {
  color: var(--ce-purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ce-terms-page {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  background: #fff;
  box-shadow: var(--ce-shadow-soft);
}

.ce-terms-page__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--ce-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ce-terms-page__content {
  margin-top: 1.25rem;
  color: #3a3833;
  line-height: 1.7;
}

.ce-terms-page__content h2,
.ce-terms-page__content h3 {
  margin-top: 1.5rem;
  color: var(--ce-deep-green);
}

/* Multiple-choice grid (matrix) questions. */
.ce-grid-question__scroll {
  overflow-x: auto;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-md);
  background: #fff;
}

.ce-grid-question__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ce-grid-question__table th,
.ce-grid-question__table td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid rgba(26, 25, 23, 0.07);
  text-align: center;
}

.ce-grid-question__table tbody tr:last-child th,
.ce-grid-question__table tbody tr:last-child td {
  border-bottom: 0;
}

.ce-grid-question__table thead th {
  color: var(--ce-deep-green);
  background: var(--ce-green-50);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
}

.ce-grid-question__table tbody th {
  min-width: 180px;
  text-align: left;
  font-weight: 550;
}

.ce-grid-question__table tbody tr:nth-child(even) {
  background: rgba(26, 25, 23, 0.018);
}

.ce-grid-question__table tbody tr:hover {
  background: rgba(107, 60, 196, 0.04);
}

.ce-grid-question__table input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid !important;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #8a867c;
  border-radius: 50%;
  background: #fff;
  opacity: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color 0.12s ease;
}

.ce-grid-question__table input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ce-purple);
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
}

.ce-grid-question__table input[type="radio"]:checked {
  border-color: var(--ce-purple);
}

.ce-grid-question__table input[type="radio"]:checked::before {
  transform: scale(1);
}

.ce-grid-question__table input[type="radio"]:focus-visible {
  outline: 3px solid rgba(107, 60, 196, 0.25);
  outline-offset: 2px;
}

.ce-grid-choice {
  position: relative;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  cursor: pointer;
}

.ce-grid-choice__input {
  position: absolute;
  inset: 0;
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
}

.ce-grid-choice__mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #8a867c;
  border-radius: 6px;
  background: #fff;
  color: #fff;
  font: 700 15px/1 Arial, sans-serif;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.ce-grid-choice__mark::after {
  content: "✓";
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
}

.ce-grid-choice__input:checked + .ce-grid-choice__mark {
  border-color: var(--ce-purple);
  background: var(--ce-purple);
}

.ce-grid-choice__input:checked + .ce-grid-choice__mark::after {
  transform: scale(1);
}

.ce-grid-choice__input:focus-visible + .ce-grid-choice__mark {
  outline: 3px solid rgba(107, 60, 196, 0.25);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .ce-grid-question__scroll {
    overflow-x: hidden;
  }

  .ce-grid-question__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.72rem;
  }

  .ce-grid-question__table th,
  .ce-grid-question__table td {
    padding: 0.45rem 0.2rem;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.2;
  }

  .ce-grid-question__table thead th {
    font-size: 0.68rem;
    hyphens: auto;
  }

  .ce-grid-question__table thead th:first-child,
  .ce-grid-question__table tbody th {
    width: 38%;
    min-width: 0;
    padding-left: 0.5rem;
    font-size: 0.75rem;
    text-align: left;
  }

  .ce-grid-question__table .ce-grid-choice {
    width: 32px;
    height: 32px;
  }

  .ce-grid-question__table .ce-grid-choice__input {
    width: 32px !important;
    height: 32px !important;
  }

  .ce-grid-question__table .ce-grid-choice__mark {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
}

/* Every application section is a card; the intro section gets a brand accent. */
.ce-section-panel {
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  background: #fff;
  box-shadow: var(--ce-shadow-soft);
}

.ce-section-panel > div:first-child > h2.ce-heading {
  font-size: clamp(1.3rem, 2.6vw, 1.55rem);
  font-weight: 750;
  line-height: 1.25;
}

.ce-intro-panel {
  position: relative;
  overflow: hidden;
}

.ce-intro-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--ce-deep-green), var(--ce-green-400) 55%, var(--ce-pink-strong));
  content: "";
}

.ce-intro-panel .ce-section-intro {
  font-size: 1rem;
  line-height: 1.7;
}

.ce-intro-panel .ce-section-intro p:last-child {
  margin-bottom: 0;
}

.ce-section-intro {
  color: var(--ce-text-secondary);
  line-height: 1.65;
}

.ce-section-intro p {
  margin: 0 0 0.85rem;
}

/* Forms without sections keep their questions on one card. */
.ce-application-form:not(:has(.ce-section-panel)) {
  padding: clamp(1.35rem, 3.5vw, 2.25rem) clamp(1.35rem, 3.5vw, 2.25rem) 5rem;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  background: #fff;
  box-shadow: var(--ce-shadow-soft);
}

.form-intro img,
.ce-section-intro img,
.ce-help-text img,
.ce-alert img,
.ce-terms-page__content img {
  max-width: 100%;
}

.form-intro img:not([data-ce-free-resize="1"]),
.ce-section-intro img:not([data-ce-free-resize="1"]),
.ce-help-text img:not([data-ce-free-resize="1"]),
.ce-alert img:not([data-ce-free-resize="1"]),
.ce-terms-page__content img:not([data-ce-free-resize="1"]) {
  height: auto !important;
}

.form-intro,
.ce-section-intro,
.ce-help-text,
.ce-alert,
.ce-terms-page__content {
  display: flow-root;
}

/* Free-standing rich text (thank-you messages, form descriptions). */
.form-intro {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  background: #fff;
  box-shadow: var(--ce-shadow-soft);
  color: #3a3833;
  line-height: 1.7;
}

.form-intro p {
  margin: 0 0 0.9rem;
}

.form-intro p:last-child {
  margin-bottom: 0;
}

.form-intro img[style*="float: left"],
.ce-section-intro img[style*="float: left"],
.ce-help-text img[style*="float: left"],
.form-intro img[style*="margin-left: 0px"],
.ce-section-intro img[style*="margin-left: 0px"],
.ce-help-text img[style*="margin-left: 0px"] {
  float: left;
  margin: 0 1.5rem 1.25rem 0 !important;
}

.form-intro img[style*="float: right"],
.ce-section-intro img[style*="float: right"],
.ce-help-text img[style*="float: right"],
.form-intro img[style*="margin-right: 0px"],
.ce-section-intro img[style*="margin-right: 0px"],
.ce-help-text img[style*="margin-right: 0px"] {
  float: right;
  margin: 0 0 1.25rem 1.5rem !important;
}

.form-intro img[data-ce-align="center"],
.ce-section-intro img[data-ce-align="center"],
.ce-help-text img[data-ce-align="center"],
.form-intro img[style*="margin-left: auto"][style*="margin-right: auto"],
.ce-section-intro img[style*="margin-left: auto"][style*="margin-right: auto"],
.ce-help-text img[style*="margin-left: auto"][style*="margin-right: auto"] {
  display: block;
  float: none !important;
  margin: 1.25rem auto !important;
}

.form-intro img[data-ce-align="left"],
.ce-section-intro img[data-ce-align="left"],
.ce-help-text img[data-ce-align="left"] {
  float: left;
  margin: 0 1.5rem 1.25rem 0 !important;
}

.form-intro img[data-ce-align="right"],
.ce-section-intro img[data-ce-align="right"],
.ce-help-text img[data-ce-align="right"] {
  float: right;
  margin: 0 0 1.25rem 1.5rem !important;
}

.form-intro img[data-ce-align="center"][data-ce-oversize="1"],
.ce-section-intro img[data-ce-align="center"][data-ce-oversize="1"],
.ce-help-text img[data-ce-align="center"][data-ce-oversize="1"] {
  position: relative;
  left: 50%;
  max-width: calc(100vw - 3rem) !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .form-intro img,
  .ce-section-intro img,
  .ce-help-text img {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem auto 1.5rem !important;
  }
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  border-radius: var(--ce-radius-md);
  border: 1.5px solid var(--ce-border-strong);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--ce-text);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
  border-color: #b4b0a6;
}

select {
  padding-right: 2.6rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5b53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.85rem center;
  background-repeat: no-repeat;
  background-size: 18px;
}

select[multiple] {
  padding-right: 0.9rem;
  background-image: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

::placeholder {
  color: #a9a59c;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ce-purple);
  box-shadow: var(--ce-focus-ring);
}

/*
 * iOS Safari automatically zooms the page when a form control with text
 * smaller than 16px receives focus. Keep form controls at Safari's no-zoom
 * threshold on phones.
 */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Radios & checkboxes */
.form-row ul {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}

.form-row ul li {
  margin-bottom: 0.2rem;
}

.form-row input[type="radio"],
.form-row input[type="checkbox"] {
  margin-right: 0.4rem;
  accent-color: var(--ce-deep-green);
}

/* Choice options as tappable rows (browsers without :has() keep plain options). */
.form-row label:not(.ce-grid-choice):has(> input[type="radio"]),
.form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 50px;
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--ce-border);
  border-radius: var(--ce-radius-md);
  background: #fff;
  color: var(--ce-text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row label:not(.ce-grid-choice):has(> input[type="radio"]):hover,
.form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]):hover {
  border-color: #b4b0a6;
  background: #fcfcfb;
}

.form-row label:not(.ce-grid-choice):has(> input:checked) {
  border-color: var(--ce-deep-green);
  background: var(--ce-green-50);
  box-shadow: inset 0 0 0 1px var(--ce-deep-green);
}

.form-row label:not(.ce-grid-choice):has(> input:focus-visible) {
  box-shadow: var(--ce-focus-ring);
}

.form-row label:not(.ce-grid-choice):has(> input[type="radio"]) > input[type="radio"],
.form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]) > input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.form-row div.ce-yes-no-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin: 0.15rem 0 0;
  padding: 0;
}

.form-row div.ce-yes-no-options > div,
.form-row div.ce-yes-no-options > li {
  margin: 0;
}

.form-row div.ce-yes-no-options label:not(.ce-grid-choice) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 7.5rem;
  margin: 0;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 550;
  cursor: pointer;
}

.form-row div.ce-yes-no-options input[type="radio"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ce-deep-green);
  cursor: pointer;
}

@media (max-width: 768px) {
  .form-row div.ce-yes-no-options {
    gap: 0.5rem 0.75rem;
  }

  .form-row div.ce-yes-no-options > div {
    flex: 1 1 8rem;
  }

  .form-row div.ce-yes-no-options label:not(.ce-grid-choice) {
    width: 100%;
  }

  .form-row div.ce-yes-no-options input[type="radio"] {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}

/* Required */
label.required::after {
  content: " *";
  color: #d14b4b;
}

/* Application progress */
.ce-form-progress {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem 1rem;
  border: 1px solid var(--ce-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(26, 25, 23, 0.04);
}

.ce-form-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: var(--ce-text-secondary);
  font-size: 0.82rem;
  font-weight: 650;
}

.ce-form-progress__meta [data-progress-label] {
  color: var(--ce-deep-green);
  font-variant-numeric: tabular-nums;
}

.ce-form-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ecebe7;
}

.ce-form-progress__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ce-deep-green), var(--ce-green-400));
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===============================
   Buttons
   =============================== */
.ce-actions {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

.ce-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  background: var(--ce-deep-green);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(34, 52, 19, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.ce-button-primary:hover {
  background: var(--ce-green-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(34, 52, 19, 0.55);
}

.ce-button-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -6px rgba(34, 52, 19, 0.5);
}

.ce-button-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(107, 60, 196, 0.25), 0 10px 24px -8px rgba(34, 52, 19, 0.55);
}

/* Keep the application's forward action available while long pages scroll. */
.ce-application-form {
  padding-bottom: 5rem;
}

.ce-floating-forward {
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 1000;
  min-width: 8.5rem;
  box-shadow:
    0 14px 32px -10px rgba(34, 52, 19, 0.6),
    0 0 0 5px rgba(255, 255, 255, 0.92);
}

.ce-floating-forward::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
}

.ce-floating-back {
  position: fixed;
  left: max(1.5rem, env(safe-area-inset-left));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 1000;
  min-width: 8.5rem;
  border: 1.5px solid var(--ce-border-strong);
  background: #fff;
  color: var(--ce-deep-green);
  box-shadow:
    0 14px 32px -12px rgba(26, 25, 23, 0.35),
    0 0 0 5px rgba(255, 255, 255, 0.92);
}

.ce-floating-back::before {
  content: "←";
  font-size: 1.05em;
  line-height: 1;
}

.ce-floating-back:hover {
  background: #fcfcfb;
  border-color: #b4b0a6;
}

@media (max-width: 600px) {
  .ce-application-form {
    padding-bottom: 5.75rem;
  }

  .ce-floating-forward {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-width: 7.5rem;
  }

  .ce-floating-back {
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-width: 7.5rem;
  }
}

/* Alert */
.ce-alert {
  border: 1px solid rgba(194, 65, 90, 0.16);
  border-radius: var(--ce-radius-md);
  background: var(--ce-soft-pink);
  color: #2e2a24;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Thanks page */
.ce-thanks {
  text-align: center;
}

.ce-thanks h1 {
  margin-bottom: 0.75rem;
}

.ce-thanks p {
  max-width: 420px;
  margin: 0.25rem auto 0;
  color: var(--ce-text-secondary);
}

/* Link tiles (surveys index). */
.ce-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

a.ce-tile {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-md);
  background: #fff;
  color: var(--ce-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26, 25, 23, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.ce-tile:hover {
  border-color: var(--ce-green-400);
  box-shadow: var(--ce-shadow-soft);
  transform: translateY(-1px);
}

.ce-tile__title {
  font-family: var(--ce-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ce-deep-green);
}

.ce-tile__sub {
  margin-top: 0.25rem;
  color: var(--ce-text-muted);
  font-size: 0.85rem;
}

/* Footer */
.ce-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 1.25rem 1.5rem 1.6rem;
  font-size: 0.8rem;
  color: var(--ce-text-muted);
  text-align: center;
}

.ce-footer__dot {
  color: #c4c0b7;
}

/* Schedule grid (weekday x time) */
.ce-schedule-grid-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  background: #fff;
}

.ce-schedule-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}

.ce-schedule-grid th,
.ce-schedule-grid td {
  border-bottom: 1px solid rgba(26, 25, 23, 0.06);
  border-right: 1px solid rgba(26, 25, 23, 0.06);
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
}

.ce-schedule-grid th:first-child {
  text-align: left;
  white-space: nowrap;
}

.ce-schedule-grid th {
  background: var(--ce-green-50);
  font-weight: 700;
  color: var(--ce-deep-green);
}

.ce-grid-check input {
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .ce-header {
    padding: 0.7rem 1rem;
  }

  .ce-logo {
    height: 42px;
  }

  .ce-container {
    margin-top: 1.5rem;
    padding: 0 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WhatsApp / phone: country-code button next to the number. */
.ce-phone {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.ce-phone__code {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  min-height: 48px;
  padding: 0 2.1rem 0 0.85rem;
  border: 1.5px solid var(--ce-border-strong);
  border-radius: var(--ce-radius-md);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5b53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 16px;
  color: var(--ce-text);
  font-size: 1rem;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ce-phone__code:hover {
  border-color: #b4b0a6;
}

.ce-phone__code:focus-within {
  border-color: var(--ce-purple);
  box-shadow: var(--ce-focus-ring);
}

/* Confirmation field: the code is shown, not chosen again. */
.ce-phone__code--static {
  padding-right: 0.85rem;
  background: var(--ce-bg);
  background-image: none;
  color: var(--ce-text-secondary);
}

.ce-phone__code-label {
  pointer-events: none;
}

/* The real (native) picker covers the button but is invisible. */
.ce-phone__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}

.ce-phone__number {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 600px) {
  .ce-phone__code {
    min-height: 54px;
    font-size: 1.02rem;
  }

  .ce-phone__select {
    min-height: 0;
  }
}

/* In-page document viewer (PDFs and terms open here instead of a new page). */
a.ce-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(107, 60, 196, 0.35);
  border-radius: 999px;
  background: var(--ce-purple-50);
  color: var(--ce-purple);
  font-weight: 700;
  text-decoration: none !important;
  overflow-wrap: normal;
}

a.ce-doc-link:hover {
  border-color: var(--ce-purple);
}

.ce-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ce-viewer[hidden] {
  display: none;
}

.ce-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.55);
  animation: ce-viewer-fade 0.18s ease-out;
}

.ce-viewer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  height: min(860px, 100%);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
  animation: ce-viewer-rise 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-viewer__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--ce-border);
}

.ce-viewer__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ce-viewer__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ce-deep-green);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.ce-viewer__close:hover {
  background: var(--ce-green-700);
}

.ce-viewer__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(107, 60, 196, 0.3);
}

.ce-viewer__close span {
  font-size: 1.15rem;
  line-height: 1;
}

.ce-viewer__body {
  position: relative;
  flex: 1 1 auto;
  background: var(--ce-bg);
}

.ce-viewer__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ce-text-secondary);
  font-weight: 600;
}

.ce-viewer__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.ce-viewer__foot {
  flex: none;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--ce-border);
  font-size: 0.85rem;
  text-align: center;
}

.ce-viewer__foot a {
  color: var(--ce-text-secondary);
}

html.ce-viewer-open,
html.ce-viewer-open body {
  overflow: hidden;
}

@keyframes ce-viewer-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ce-viewer-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .ce-viewer {
    padding: 0;
  }

  .ce-viewer__panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .ce-viewer__bar {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }
}

/* Terms page shown inside the viewer: content only. */
.ce-embed {
  background: #fff;
}

.ce-embed .ce-header,
.ce-embed .ce-footer,
.ce-embed .ce-terms-page .ce-actions {
  display: none;
}

.ce-embed .ce-container {
  margin: 0;
  padding: 1rem;
}

.ce-embed .ce-terms-page {
  padding: 0.5rem;
  border: 0;
  box-shadow: none;
}

/* ===============================
   Mobile-first application polish
   =============================== */

/* The page can never be wider than the screen (a long unbroken title made
   the whole form drag sideways on phones). */
html,
body {
  overflow-x: clip;
}

.ce-form-title,
.ce-heading,
.form-row > label {
  overflow-wrap: anywhere;
}

.form-intro,
.ce-section-intro,
.ce-help-text,
.ce-alert,
.ce-terms-page__content {
  overflow-wrap: break-word;
}

.form-intro :is(img, video, iframe, table),
.ce-section-intro :is(img, video, iframe, table),
.ce-help-text :is(img, video, iframe, table) {
  max-width: 100%;
}

/* Choice questions (formerly dropdowns): large options, two columns when there is room. */
.form-row div.ce-choice-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.form-row div.ce-choice-options > div {
  margin: 0;
}

.form-row div.ce-choice-options label:not(.ce-grid-choice) {
  height: 100%;
  margin: 0;
}

/* Messages added while typing (browser checks) match the server's style. */
.form-help.required-error,
.form-help.confirm-error,
.form-help.format-error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-weight: 600;
}

.form-help.required-error::before,
.form-help.confirm-error::before,
.form-help.format-error::before {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: #d14b4b;
  color: #fff;
  content: "!";
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}

.ce-email-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(107, 60, 196, 0.22);
  border-radius: var(--ce-radius-md);
  background: var(--ce-purple-50);
  color: #3f305f;
  font-size: 0.95rem;
}

.ce-email-suggestion button {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ce-purple);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .ce-container {
    margin-top: 1rem;
    padding: 0 0.75rem;
  }

  .ce-form-header {
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .ce-form-title {
    font-size: 1.6rem;
  }

  /* Progress stays visible while scrolling. */
  .ce-form-progress {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -0.75rem 1rem;
    padding: 0.65rem 1rem 0.75rem;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }

  .ce-section-panel,
  .ce-application-form:not(:has(.ce-section-panel)) {
    padding: 1.35rem 1.1rem 1.5rem;
    border-radius: 18px;
  }

  .form-row {
    margin-bottom: 1.5rem;
  }

  .form-row > label {
    font-size: 1.06rem;
    line-height: 1.4;
  }

  .form-help {
    font-size: 0.95rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  select {
    min-height: 54px;
    font-size: 17px;
  }

  textarea {
    font-size: 17px;
  }

  .form-row label:not(.ce-grid-choice):has(> input[type="radio"]),
  .form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]) {
    min-height: 56px;
    padding: 0.8rem 1rem;
    font-size: 1.02rem;
  }

  .form-row label:not(.ce-grid-choice):has(> input[type="radio"]) > input[type="radio"],
  .form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]) > input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .form-row div.ce-choice-options {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One clear action bar at the bottom of the screen instead of floating pills. */
  .ce-application-form {
    padding-bottom: 6.5rem;
  }

  .ce-application-form::after {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    height: calc(5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ce-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px -12px rgba(26, 25, 23, 0.25);
    content: "";
    pointer-events: none;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }

  .ce-floating-forward,
  .ce-floating-back {
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    width: calc(50% - 1.35rem);
    min-width: 0;
    min-height: 52px;
    box-shadow: none;
  }

  .ce-floating-forward {
    right: 1rem;
    left: auto;
    box-shadow: 0 8px 18px -8px rgba(34, 52, 19, 0.6);
  }

  .ce-floating-back {
    right: auto;
    left: 1rem;
  }

  /* On the first step there is no "Anterior": the main button takes the full bar. */
  .ce-section-panel:not(:has(.ce-floating-back)) .ce-floating-forward,
  .ce-application-form:not(:has(.ce-section-panel)) .ce-floating-forward {
    left: 1rem;
    width: auto;
  }
}

/* =====================================================
   Vibrant theme (public application, surveys, thanks)
   ===================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/outfit-latin-ext-wght-normal.d84d7eeac97e.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/outfit-latin-wght-normal.91c1abde2699.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ce-font-display: "Outfit", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ce-forest: #17402a;
  --ce-leaf: #1f7a43;
  --ce-leaf-bright: #34a85e;
  --ce-mint: #e2f6e9;
  --ce-rose: #f2547d;
  --ce-blush: #ffe4ec;
  --ce-purple: #7b4ae2;
  --ce-purple-50: #f3edff;
  --ce-bg: #f6f5fb;
  --ce-text: #1c1a2b;
  --ce-text-secondary: #575468;
  --ce-text-muted: #7b7889;
  --ce-border: #e4e3ec;
  --ce-border-strong: #d4d2df;
  --ce-focus-ring: 0 0 0 4px rgba(123, 74, 226, 0.2);
  --ce-card-shadow: 0 1px 2px rgba(28, 26, 43, 0.04), 0 22px 48px -26px rgba(52, 36, 110, 0.28);
}

body {
  background-color: var(--ce-bg);
  background-image: radial-gradient(1200px 620px at 50% -10%, rgba(196, 236, 208, 0.65), transparent 70%);
  color: var(--ce-text);
}

h1,
h2,
h3,
h4,
.ce-heading {
  font-family: var(--ce-font-display);
  letter-spacing: -0.01em;
}

/* Wider layout on computers. */
.ce-container {
  max-width: 1120px;
}

.ce-header-inner {
  max-width: 1080px;
}

/* Title banner. */
.ce-form-header {
  position: relative;
  z-index: 0;
  overflow: hidden;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.6rem, 4vw, 2.75rem) clamp(1.4rem, 4vw, 3rem);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ce-forest) 0%, var(--ce-leaf) 52%, var(--ce-leaf-bright) 100%);
  color: #fff;
  box-shadow: 0 26px 50px -26px rgba(23, 64, 42, 0.6);
}

.ce-form-header::before,
.ce-form-header::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.ce-form-header::before {
  top: -160px;
  right: -90px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 66%);
}

.ce-form-header::after {
  bottom: -190px;
  left: -110px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(127, 220, 154, 0.35), transparent 66%);
}

.ce-form-title {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.ce-form-subtitle,
.ce-form-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.ce-form-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Progress. */
.ce-form-progress {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem 1.1rem;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ce-card-shadow);
}

.ce-form-progress__meta {
  color: var(--ce-text-secondary);
  font-size: 0.85rem;
}

.ce-form-progress__meta [data-progress-label] {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--ce-mint);
  color: var(--ce-leaf);
}

.ce-form-progress__track {
  height: 10px;
  background: #ebeaf2;
}

.ce-form-progress__fill {
  background: linear-gradient(90deg, var(--ce-leaf) 0%, var(--ce-leaf-bright) 60%, #7fdc9a 100%);
  box-shadow: 0 0 12px rgba(52, 168, 94, 0.45);
}

/* Cards. */
.ce-section-panel,
.ce-application-form:not(:has(.ce-section-panel)),
.form-intro,
.ce-terms-page {
  border: 0;
  border-radius: 28px;
  box-shadow: var(--ce-card-shadow);
}

.ce-section-panel {
  padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
}

.ce-intro-panel::before {
  height: 6px;
  background: var(--ce-leaf-bright);
}

.ce-section-panel > div:first-child > h2.ce-heading {
  color: var(--ce-forest);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 700;
}

.ce-section-panel > div:first-child > h2.ce-heading::after {
  display: block;
  width: 52px;
  height: 5px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: var(--ce-leaf-bright);
  content: "";
}

/* Questions. */
.form-row > label {
  color: var(--ce-text);
  font-size: 1.08rem;
  font-weight: 650;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
  min-height: 52px;
  border: 1.5px solid var(--ce-border-strong);
  border-radius: 14px;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
  border-color: #b9b5cc;
}

select.ce-choice-select {
  max-width: 560px;
  font-weight: 500;
}

.ce-phone__code {
  min-height: 52px;
  border-radius: 14px;
}

/* Options as cards: vibrant selected state. */
.form-row label:not(.ce-grid-choice):has(> input[type="radio"]),
.form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]) {
  min-height: 54px;
  border-radius: 14px;
  border-color: var(--ce-border);
  box-shadow: 0 1px 2px rgba(28, 26, 43, 0.04);
}

.form-row label:not(.ce-grid-choice):has(> input[type="radio"]):hover,
.form-row label:not(.ce-grid-choice):has(> input[type="checkbox"]):hover {
  border-color: rgba(123, 74, 226, 0.45);
  background: #fbf9ff;
}

.form-row label:not(.ce-grid-choice):has(> input:checked) {
  border-color: var(--ce-leaf);
  background: var(--ce-mint);
  box-shadow: inset 0 0 0 1px var(--ce-leaf), 0 6px 16px -10px rgba(31, 122, 67, 0.6);
}

.form-row input[type="radio"],
.form-row input[type="checkbox"],
.form-row div.ce-yes-no-options input[type="radio"] {
  accent-color: var(--ce-leaf);
}

/* Checkbox lists flow into columns on wide screens, like single-choice lists. */
.form-row > div[id^="id_q_"]:has(> div > label > input[type="checkbox"]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.55rem;
}

.form-row > div[id^="id_q_"]:has(> div > label > input[type="checkbox"]) label {
  height: 100%;
  margin: 0;
}

.form-row div.ce-choice-options {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Buttons. */
.ce-button-primary {
  background: linear-gradient(135deg, var(--ce-leaf) 0%, var(--ce-leaf-bright) 100%);
  font-family: var(--ce-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px -12px rgba(31, 122, 67, 0.7);
}

.ce-button-primary:hover {
  background: linear-gradient(135deg, #1a6a3a 0%, #2e9a55 100%);
}

.ce-floating-back {
  background: #fff;
  color: var(--ce-forest);
}

.ce-floating-back:hover {
  background: #fbf9ff;
}

/* Notices. */
.ce-alert {
  border: 0;
  border-left: 5px solid var(--ce-rose);
  border-radius: 16px;
  background: var(--ce-blush);
  color: #3a1f2b;
}

.ce-terms-prompt {
  border-radius: 14px;
}

a.ce-tile {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--ce-card-shadow);
}

a.ce-tile:hover {
  box-shadow: 0 26px 50px -24px rgba(52, 36, 110, 0.4);
}

.ce-tile__title {
  color: var(--ce-forest);
}

@media (max-width: 600px) {
  .ce-form-header {
    padding: 1.4rem 1.25rem 1.5rem;
    border-radius: 22px;
  }

  .ce-form-title {
    font-size: 1.8rem;
  }

  .ce-form-progress {
    border-radius: 0;
    box-shadow: 0 6px 16px -12px rgba(52, 36, 110, 0.35);
  }

  .ce-section-panel,
  .ce-application-form:not(:has(.ce-section-panel)) {
    border-radius: 22px;
  }

  select.ce-choice-select {
    max-width: none;
  }

  .form-row > div[id^="id_q_"]:has(> div > label > input[type="checkbox"]),
  .form-row div.ce-choice-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
