/* iStoma Future Summit 2026 landing (/istoma) - mobile first */

.istoma {
  --istoma-dark: #1F2E3F;
  --istoma-accent: #F15E33;
  --istoma-gray: #F3F5F7;
  --istoma-text: #33475B;
  font-size: 16px;
  color: var(--istoma-text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(241, 94, 51, 0.15);
}

.istoma a,
.istoma button,
.istoma input,
.istoma label {
  touch-action: manipulation;
}

.istoma main {
  min-height: 0;
  display: block;
}

.istoma-container {
  max-width: 720px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* header */
.istoma-header {
  background: var(--istoma-dark);
  padding: 12px 0;
}

.istoma-header img {
  display: block;
  height: 40px;
  width: auto;
}

/* texts */
.istoma-title {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--istoma-dark);
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.istoma-lead {
  font-size: 1.125rem;
  line-height: 1.45;
}

.istoma-subtitle {
  font-size: 1.25rem; /* >= 18.66px bold: large text, accent contrast ok */
  line-height: 1.3;
  font-weight: 700;
  color: var(--istoma-accent);
  margin-bottom: 8px;
}

/* cards */
.istoma-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.istoma-card {
  background: var(--istoma-gray);
  border-radius: 6px;
  padding: 14px 16px;
}

.istoma-card .istoma-subtitle {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.istoma-card .istoma-subtitle {
  color: var(--istoma-dark);
}

/* offer */
.istoma-offer {
  background: var(--istoma-dark);
  color: #fff;
}

.istoma-offer-list {
  padding-left: 20px;
}

.istoma-offer-list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.istoma-offer-list li:last-child {
  margin-bottom: 0;
}

/* form */
.istoma-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--istoma-dark);
  margin-bottom: 16px;
}

.istoma label,
.istoma legend {
  font-size: 1rem;
  font-weight: 600;
  color: var(--istoma-dark);
  margin-bottom: 6px;
}

.istoma legend {
  width: auto;
}

.istoma .form-control {
  height: 48px;
  font-size: 16px; /* no iOS zoom */
  color: var(--istoma-dark);
  border-color: #8A97A5;
}

.istoma .req {
  color: #C0392B;
}

.istoma-optional {
  font-weight: 400;
  color: #5B6B7B;
}

.istoma-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.istoma-choices-inline {
  grid-template-columns: 1fr 1fr;
}

.istoma .istoma-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #8A97A5;
  border-radius: 0.18rem;
  font-weight: 400;
  cursor: pointer;
}

.istoma-choice input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--istoma-accent);
}

.istoma .istoma-gdpr {
  align-items: flex-start;
  border: 0;
  padding: 0;
}

.istoma-gdpr input {
  margin-top: 2px;
}

.istoma fieldset.is-invalid .istoma-choice {
  border-color: #C0392B;
}

.istoma .invalid-feedback {
  font-size: 1rem;
  color: #B03A2E;
}

.istoma-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.istoma-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  font-size: 1.125rem;
  font-weight: 700;
}

.istoma-success {
  background: var(--istoma-gray);
  border-left: 4px solid var(--istoma-accent);
  border-radius: 6px;
  padding: 20px 16px;
}

.istoma-success:focus {
  outline: none;
}

.istoma-success a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* footer */
.istoma-footer {
  background: var(--istoma-gray);
  font-size: 1rem;
}

.istoma-footer a {
  display: inline-block;
  padding: 10px 0;
  color: var(--istoma-dark);
  font-weight: 600;
}

/* very small phones (iPhone SE 1st gen, 320px) */
@media (max-width: 359px) {
  .istoma-title {
    font-size: 1.5rem;
  }

  .istoma-choices-inline {
    grid-template-columns: 1fr;
  }
}

.istoma-footer {
  padding-bottom: env(safe-area-inset-bottom);
}

.istoma-submit:disabled {
  opacity: 0.75;
}

/* tablet / desktop */
@media (min-width: 768px) {
  .istoma-title {
    font-size: 2.25rem;
  }

  .istoma-cards {
    grid-template-columns: 1fr 1fr;
  }

  .istoma-choices {
    grid-template-columns: 1fr 1fr;
  }

  .istoma-submit {
    width: auto;
    padding-left: 48px;
    padding-right: 48px;
  }
}
