.sar-wrap {
  --sar-border: #d8dde6;
  --sar-text: #162033;
  --sar-muted: #667085;
  --sar-accent: #ffaa17;
  --sar-accent-dark: #ffaa17;
  --sar-focus: rgba(255, 170, 23, .18);
  color: var(--sar-text);
  max-width: 900px;
  margin: 0 auto;
}

.sar-form {
  margin: 0;
}

.sar-header {
  margin-bottom: 28px;
}

.sar-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--sar-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sar-header h2 {
  margin: 0;
  color: var(--sar-text);
  font-size: 30px;
  line-height: 1.18;
}

.sar-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--sar-border);
}

.sar-section:first-of-type {
  margin-top: 0;
}

.sar-section-title {
  margin: 0 0 18px;
  color: var(--sar-text);
  font-size: 18px;
  font-weight: 800;
}

.sar-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sar-field-full {
  grid-column: 1 / -1;
}

.sar-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--sar-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.sar-field input,
.sar-field select,
.sar-field textarea {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}

.sar-field textarea {
  min-height: 96px;
  resize: vertical;
}

.sar-field.has-error input,
.sar-field.has-error select,
.sar-field.has-error textarea {
  border-color: #b42318;
}

.sar-select-wrap {
  min-width: 0;
}

.sar-field-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
}

.sar-schedule {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  border-top: 1px solid var(--sar-border);
  padding-top: 24px;
}

.sar-schedule strong {
  display: block;
  color: var(--sar-text);
}

.sar-schedule span {
  display: block;
  margin-top: 3px;
  color: var(--sar-muted);
  font-size: 14px;
}

.sar-schedule-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 11px 18px;
  background: #179bff;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .18s ease, transform .18s ease;
}

.sar-schedule-button:hover {
  color: #fff;
  transform: translateY(-1px);
}

.sar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.sar-actions > div {
  flex: 0 1 auto;
  text-align: right;
}

.sar-actions strong {
  display: block;
  color: var(--sar-text);
}

.sar-actions button {
  min-height: 48px;
  border: 0;
  padding: 12px 22px;
  background: #179bff;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.sar-actions button:hover {
  background-color: #2191e7;
  transform: translateY(-1px);
}

.sar-actions button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.sar-error {
  flex-basis: 100%;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.sar-modal[hidden] {
  display: none;
}

.sar-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .68);
  backdrop-filter: blur(4px);
}

.sar-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(780px, 88vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border-top: 5px solid var(--sar-accent);
  padding: 34px;
  box-shadow: 0 28px 90px rgba(16, 24, 40, .28);
}

.sar-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sar-border);
  border-radius: 50%;
  background: #fff;
  color: var(--sar-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sar-modal-dialog h3 {
  margin: 0 46px 18px 0;
  color: var(--sar-text);
  font-size: 26px;
  line-height: 1.25;
}

.sar-result-message p {
  margin: 0;
  color: #344054;
  line-height: 1.65;
}

.sar-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .sar-fields {
    grid-template-columns: 1fr;
  }

  .sar-schedule {
    display: block;
  }

  .sar-schedule-button {
    margin-top: 14px;
  }

  .sar-error {
    margin-top: 12px;
  }
}

@media (max-width: 460px) {
  .sar-actions {
    display: block;
  }

  .sar-actions > div {
    text-align: right;
  }

  .sar-actions button {
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 540px) {
  .sar-header h2 {
    font-size: 24px;
  }

  .sar-modal-dialog {
    padding: 28px 20px;
  }
}
