:root {
  --keystone-rose: #b08e98;
  --keystone-rose-dark: #6f4653;
  --keystone-ink: #3c2930;
  --keystone-muted: #65555b;
  --keystone-line: #ddcdd2;
  --keystone-soft: #f8f5f6;
}

.keystone-checkout-details {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: var(--keystone-soft);
  border-radius: 12px;
}

.keystone-checkout-details textarea {
  min-height: 8rem;
  resize: vertical;
}

.keystone-checkout-details .description {
  display: block;
  max-width: 72ch;
  margin-top: .5rem;
  color: var(--keystone-muted);
  line-height: 1.5;
}

.keystone-terms-field label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  line-height: 1.5;
}

.keystone-terms-field input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.keystone-service-page {
  width: auto;
  max-width: none;
  margin: 6.0625rem 2% 6rem;
  color: var(--keystone-ink);
}

.keystone-service-page h1 {
  margin: 0 0 2rem;
  color: var(--keystone-ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: normal;
  text-wrap: balance;
}

.keystone-complaint-form__intro {
  max-width: 70ch;
  margin: 0 0 2.5rem;
  color: var(--keystone-muted);
  line-height: 1.6;
}

.keystone-schema-form {
  display: grid;
  gap: 2.5rem;
  max-width: 980px;
}

.keystone-schema-form__section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.keystone-schema-form__section legend {
  float: left;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0 0 .7rem;
  color: var(--keystone-ink);
  border-bottom: 1px solid rgba(111, 70, 83, .18);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.keystone-schema-form__grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.keystone-schema-form__field {
  min-width: 0;
  display: grid;
  gap: .45rem;
}

.keystone-schema-form__field > label {
  color: var(--keystone-ink);
  font-weight: 600;
  line-height: 1.4;
}

.keystone-schema-form__field--full,
.keystone-schema-form > button {
  grid-column: 1 / -1;
}

.keystone-schema-form input[type="text"],
.keystone-schema-form input[type="email"],
.keystone-schema-form input[type="tel"],
.keystone-schema-form input[type="date"],
.keystone-schema-form input[type="number"],
.keystone-schema-form select,
.keystone-schema-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: .75rem .85rem;
  color: var(--keystone-ink);
  background: #fff;
  border: 1px solid rgba(111, 70, 83, .24);
  border-radius: 6px;
  box-shadow: none;
  font: inherit;
}

.keystone-schema-form input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: .55rem;
  color: var(--keystone-muted);
  background: var(--keystone-soft);
  border: 1px dashed rgba(111, 70, 83, .38);
  border-radius: 6px;
  font: inherit;
}

.keystone-schema-form input[type="file"]::file-selector-button {
  margin-inline-end: .75rem;
  padding: .55rem .8rem;
  color: var(--keystone-ink);
  background: #fff;
  border: 1px solid rgba(111, 70, 83, .28);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.keystone-schema-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.keystone-schema-form__description {
  max-width: 72ch;
  color: var(--keystone-muted);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5;
}

.keystone-schema-form__required {
  color: var(--keystone-rose-dark);
}

.keystone-schema-form input:focus-visible,
.keystone-schema-form select:focus-visible,
.keystone-schema-form textarea:focus-visible,
.keystone-schema-form button:focus-visible {
  outline: 3px solid var(--keystone-rose-dark);
  outline-offset: 3px;
  border-color: var(--keystone-rose-dark);
}

.keystone-schema-form > button {
  width: fit-content;
  min-width: 10rem;
  margin: .25rem 0 0;
  padding: .8rem 1.4rem;
  color: #fff;
  background: var(--keystone-rose);
  border: 1px solid var(--keystone-rose);
  border-radius: 6px;
  box-shadow: none;
}

.keystone-schema-form > button:hover {
  background: var(--keystone-rose-dark);
  border-color: var(--keystone-rose-dark);
}

.keystone-form-notice {
  margin: 0 0 1.25rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  line-height: 1.45;
}

.keystone-form-notice--error {
  color: #721b2a;
  background: #fff0f3;
}

.keystone-form-notice--success {
  color: #245d3d;
  background: #eef8f2;
}

.keystone-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.keystone-complaint-products {
  clear: both;
}

.keystone-complaint-product {
  position: relative;
  min-width: 0;
  margin: 0 0 1.25rem;
  padding: 1.25rem 0 0;
  border: 1px solid var(--keystone-line);
  border-radius: 8px;
  overflow: hidden;
}

.keystone-complaint-product > legend {
  float: left;
  width: auto;
  margin: 0 1.25rem 1rem;
  padding: 0;
  border: 0;
  font-size: 1rem;
}

.keystone-complaint-product > .keystone-schema-form__grid {
  padding: 1.25rem;
  background: var(--keystone-soft);
}

.keystone-schema-form button.keystone-complaint-product__remove {
  float: right;
  width: auto;
  min-height: 44px;
  margin: -.6rem .65rem .4rem;
  padding: .5rem .65rem;
  color: var(--keystone-rose-dark) !important;
  background: transparent !important;
  border: 0;
  border-radius: 4px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.keystone-complaint-products [hidden] {
  display: none !important;
}

.keystone-complaint-products__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.keystone-schema-form .keystone-complaint-products__actions > button {
  width: fit-content;
  min-width: 88px;
  min-height: 44px;
  padding: .65rem 1.2rem;
  color: var(--keystone-rose-dark) !important;
  background: #fff !important;
  border: 1px solid var(--keystone-rose-dark);
  border-radius: 6px;
  box-shadow: none;
}

.keystone-schema-form button:disabled {
  opacity: .6;
  cursor: default;
}

@media (max-width: 600px) {
  .keystone-schema-form__grid { grid-template-columns: minmax(0, 1fr); }
  .keystone-schema-form { gap: 2rem; }
  .keystone-service-page { margin: 3rem 4%; }
}
