/* Book a Demo — Contact Sales (Figma 795:6816) */

@font-face {
  font-family: "The Acres Sans";
  src: url("fonts/TheAcresSans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --demo-ink: #1e1e1e;
  --demo-ink-soft: #414651;
  --demo-muted: #717680;
  --demo-secondary: #949494;
  --demo-stroke: #d5d7da;
  --demo-panel-hover: #d1d1d1;
  --demo-btn: #1d2026;
  --demo-text: #181d27;
  --demo-shadow-xs: 0 1px 2px rgba(10, 13, 18, 0.05);
  --demo-shadow-card: 0 5px 12px rgba(0, 0, 0, 0.1);
  --demo-shadow-panel: 0 4px 2px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.demo-page {
  min-height: 100vh;
  background: #fff;
  color: var(--demo-ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.demo {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 95px 24px 80px;
}

.demo__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: min(670px, 100%);
  text-align: center;
  margin-bottom: 48px;
}

.demo__logo {
  display: block;
  height: 35px;
  width: auto;
  filter: brightness(0);
}

.demo__title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--demo-ink);
}

.demo__card {
  width: min(872px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--demo-shadow-card);
  padding: 50px 66px;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 93px;
}

.demo-form__fields {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.demo-form__group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-form__row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.demo-field--half {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

.demo-field--full {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

.demo-field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--demo-ink-soft);
}

.demo-field__label--cap {
  text-transform: capitalize;
}

.demo-input,
.demo-textarea,
.demo-select__trigger {
  width: 100%;
  border: 1px solid var(--demo-stroke);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--demo-shadow-xs);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--demo-ink);
}

.demo-input,
.demo-select__trigger {
  padding: 10px 14px;
  height: 44px;
}

.demo-input::placeholder,
.demo-textarea::placeholder {
  color: var(--demo-muted);
}

.demo-textarea {
  min-height: 67px;
  padding: 10px 14px;
  resize: vertical;
}

.demo-input:focus,
.demo-textarea:focus,
.demo-select.is-open .demo-select__trigger {
  outline: none;
  border-color: #98a2b3;
}

/* Custom scrollable select */
.demo-select {
  position: relative;
  width: 100%;
}

.demo-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.demo-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-select__value.is-placeholder {
  color: var(--demo-muted);
}

.demo-select__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.demo-select.is-open .demo-select__chevron {
  transform: rotate(180deg);
}

.demo-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--demo-stroke);
  border-radius: 8px;
  box-shadow: var(--demo-shadow-panel);
  padding: 21px 5px;
  display: none;
}

.demo-select.is-open .demo-select__panel {
  display: block;
}

.demo-select__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-select__list::-webkit-scrollbar {
  width: 6px;
}

.demo-select__list::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 999px;
}

.demo-select__option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--demo-text);
  padding: 10px 5px;
  border-radius: 3px;
  cursor: pointer;
}

.demo-select__option:hover,
.demo-select__option.is-highlighted {
  background: var(--demo-panel-hover);
}

.demo-select__option.is-selected {
  background: var(--demo-panel-hover);
}

/* Checkboxes */
.demo-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(360px, 100%);
}

.demo-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.demo-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--demo-btn);
  cursor: pointer;
}

.demo-check span {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--demo-secondary);
}

.demo-check strong {
  color: var(--demo-ink);
  font-weight: 500;
}

.demo-submit {
  width: 100%;
  border: 1px solid var(--demo-btn);
  border-radius: 8px;
  background: var(--demo-btn);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--demo-shadow-xs);
  transition: opacity 0.2s ease;
}

.demo-submit:hover {
  opacity: 0.9;
}

.demo__footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.demo__footer-wordmark {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.04em;
  color: #0a0a0a;
}

.demo__footer-copy {
  font-size: 16px;
  line-height: 24px;
  color: #0a0a0a;
}

/* Tablet + mobile — single centered column, full-width fields */
@media (max-width: 1024px) {
  .demo {
    padding: 56px 24px 48px;
  }

  .demo__header {
    gap: 20px;
    margin-bottom: 32px;
    width: min(640px, 100%);
  }

  .demo__title {
    font-size: 24px;
  }

  .demo__card {
    width: min(640px, 100%);
    padding: 32px 28px;
  }

  .demo-form {
    gap: 40px;
  }

  .demo-form__fields {
    gap: 24px;
  }

  .demo-form__group {
    gap: 16px;
  }

  .demo-form__row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .demo-field,
  .demo-field--half,
  .demo-field--full {
    flex: none;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .demo-checks {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .demo {
    padding: 40px 16px 32px;
  }

  .demo__header {
    width: 100%;
  }

  .demo__logo {
    height: 28px;
  }

  .demo__title {
    font-size: 20px;
    line-height: 1.35;
  }

  .demo__card {
    width: 100%;
    padding: 24px 20px;
    border-radius: 6px;
  }

  .demo-form {
    gap: 32px;
  }

  .demo-form__fields {
    gap: 20px;
  }

  .demo-form__group {
    gap: 14px;
  }

  .demo__footer {
    flex-wrap: wrap;
    padding-top: 32px;
    gap: 6px;
  }

  .demo__footer-wordmark {
    font-size: 14px;
  }

  .demo__footer-copy {
    font-size: 14px;
  }
}
