/* ─── Schedule Demo Page ─── */

.mtl-demo-hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
}

.mtl-demo-hero__grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.mtl-demo-hero__title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin: 1.5rem 0 1.2rem;
}

/* ─── Perks list ─── */

.mtl-demo-perks {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mtl-demo-perk {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.mtl-demo-perk__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
}

.mtl-demo-perk strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.mtl-demo-perk p {
  font-size: 0.88rem;
  color: var(--mtl-ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Demo request form card ─── */

.mtl-demo-form-card {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--mtl-shadow-soft);
  padding: 2.5rem;
}

.mtl-demo-form-card__header {
  margin-bottom: 2rem;
}

.mtl-demo-form-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--mtl-ink, #0f172a);
}

.mtl-demo-form-card__subtitle {
  font-size: 0.92rem;
  color: var(--mtl-ink-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

/* ─── Flash messages ─── */

.mtl-demo-flash {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.mtl-demo-flash--success {
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mtl-demo-flash--error {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ─── Form layout ─── */

.mtl-demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mtl-demo-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mtl-demo-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mtl-demo-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mtl-ink, #0f172a);
}

.mtl-demo-form__input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--mtl-ink, #0f172a);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.mtl-demo-form__input::placeholder {
  color: var(--mtl-ink-muted, #94a3b8);
}

.mtl-demo-form__input:focus {
  border-color: #6172f1;
  box-shadow: 0 0 0 3px rgba(97, 114, 241, 0.12);
}

.mtl-demo-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.mtl-demo-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.mtl-demo-form__submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.mtl-demo-form__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--mtl-ink-muted, #94a3b8);
  margin: 0;
}

/* ─── Trust strip ─── */

.mtl-demo-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--mtl-shadow-card);
  text-align: center;
}

.mtl-demo-trust__num {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--mtl-ink);
  line-height: 1.2;
}

.mtl-demo-trust__label {
  font-size: 0.85rem;
  color: var(--mtl-ink-muted);
  margin-top: 0.25rem;
}

/* ─── Timeline ─── */

.mtl-demo-timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mtl-demo-tl-item {
  display: flex;
  gap: 1.8rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.mtl-demo-tl-item:last-child {
  padding-bottom: 0;
}

/* Connecting line */
.mtl-demo-tl-item:not(:last-child) .mtl-demo-tl-item__marker::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 12px);
  background: rgba(15, 23, 42, 0.08);
}

.mtl-demo-tl-item__marker {
  position: relative;
  flex-shrink: 0;
}

.mtl-demo-tl-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.mtl-demo-tl-item__content h3 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.5rem;
}

.mtl-demo-tl-item__content p {
  font-size: 0.95rem;
  color: var(--mtl-ink-muted);
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.mtl-demo-tl-item__time {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--mtl-ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .mtl-demo-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mtl-demo-trust {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .mtl-demo-hero {
    padding: 4rem 1rem 2rem;
  }

  .mtl-demo-hero__title {
    font-size: 2rem;
  }

  .mtl-demo-trust {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .mtl-demo-form-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .mtl-demo-form__row {
    grid-template-columns: 1fr;
  }
}
