.seameco-quote-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid hsl(0, 0%, 12%);
  background: hsl(0, 0%, 12%);
color: hsl(0, 0%, 100% );
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.seameco-quote-trigger:hover {
  opacity: 0.88;
}

.seameco-quote-trigger--ghost {
  background: transparent;
  color: hsl(0, 0%, 12%);
}

.seameco-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.seameco-quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
}

.seameco-quote-modal__dialog {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(92vh, 44rem);
  overflow: auto;
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(0, 0%, 88%);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

.seameco-quote-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0.85rem;
  border-bottom: 1px solid hsl(0, 0%, 92%);
}

.seameco-quote-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(0, 0%, 48%);
}

.seameco-quote-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.seameco-quote-modal__lead {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: hsl(0, 0%, 38%);
}

.seameco-quote-modal__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: hsl(0, 0%, 18%);
  cursor: pointer;
}

.seameco-quote-modal__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.seameco-quote-form {
  padding: 1.15rem 1.35rem 1.35rem;
}

.seameco-quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.seameco-quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seameco-quote-form__field--full {
  grid-column: 1 / -1;
}

.seameco-quote-form__field span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(0, 0%, 38%);
}

.seameco-quote-form__field input,
.seameco-quote-form__field select,
.seameco-quote-form__field textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid hsl(0, 0%, 82%);
  background: hsl(0, 0%, 100%);
  font: inherit;
  font-size: 0.88rem;
}

.seameco-quote-form__field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.seameco-quote-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.seameco-quote-form__submit {
  flex: 1 1 12rem;
  padding: 0.82rem 1rem;
  border: 0;
  background: hsl(0, 0%, 12%);
  color: hsl(0, 0%, 100%);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.seameco-quote-form__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.seameco-quote-form__note,
.seameco-quote-form__status {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: hsl(0, 0%, 42%);
}

.seameco-quote-form__status[data-state="ok"] {
  color: hsl(140, 35%, 32%);
}

.seameco-quote-form__status[data-state="error"] {
  color: hsl(0, 55%, 42%);
}

@media (max-width: 640px) {
  .seameco-quote-form__grid {
    grid-template-columns: 1fr;
  }

  .seameco-quote-modal__dialog {
    max-height: 92dvh;
  }
}
