/* Auditology Book a Demo — Figma 872:1521 / 872:1613 / 872:1652 */

: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__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.demo__brand-icon {
  display: block;
  width: 69px;
  height: 61px;
  flex-shrink: 0;
}

.demo__brand-wordmark {
  display: block;
  height: 25px;
  width: auto;
  flex-shrink: 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%);
  min-height: 799px;
  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 {
  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;
}

.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: 320px;
  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);
}

.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 {
  height: 12px;
  width: auto;
}

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

@media (max-width: 900px) {
  .demo {
    padding-top: 56px;
  }

  .demo__card {
    min-height: 0;
    padding: 32px 24px;
  }

  .demo-form {
    gap: 48px;
  }

  .demo-form__row {
    flex-direction: column;
  }

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

  .demo__brand-wordmark {
    height: 20px;
  }

  .demo__brand-icon {
    width: 56px;
    height: 49px;
  }
}
