:root {
  --ink: #242424;
  --muted: #707070;
  --line: #dddddd;
  --soft: #f4f4f4;
  --accent: #666666;
  --accent-dark: #333333;
  --sand: #e8e8e8;
  --white: #fff;
  --danger: #9b403b;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  /* background: #fafaf7; */
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, calc(100% - 40px));
}

.page-hero {
  padding: 92px 0 70px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font: 700 12px/1.2 Arial, sans-serif;
  letter-spacing: .22em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.45;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 17px;
}

.note,
.minor-note {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 64px 0 110px;
}

.notice-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
  padding: 30px;
  background: #e6e6e6;
  border-radius: var(--radius);
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.notice-card__label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font: 700 11px/1.2 Arial, sans-serif;
  letter-spacing: .16em;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-section {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-panel {
  animation: panel-in .3s ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.step {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  color: var(--white);
  background: #000;
  border-radius: 50%;
  font: 700 12px/1 Arial, sans-serif;
}

.field-label,
.field-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.required {
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.field-grid__full {
  grid-column: 1 / -1;
}

.field-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.info-box,
.warning-box,
.closed-box {
  margin: 20px 0;
  padding: 22px;
  border-radius: 12px;
}

.info-box {
  background: var(--soft);
}

.warning-box {
  color: #5f3d18;
  background: #fbf2df;
  border: 1px solid #ead5aa;
}

.closed-box {
  background: #f6ecea;
  border: 1px solid #e4c9c4;
}

.info-box p:last-child,
.warning-box p:last-child,
.closed-box p:last-child {
  margin-bottom: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 14px;
}

.link-row a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.check-group {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.check-group legend {
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.check-group label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.check-group input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-cards label {
  position: relative;
  cursor: pointer;
}

.choice-cards input {
  position: absolute;
  opacity: 0;
}

.choice-cards span {
  display: grid;
  gap: 3px;
  min-height: 94px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: .2s;
}

.choice-cards small {
  color: var(--muted);
  font-weight: 400;
}

.choice-cards input:checked+span {
  border-color: var(--accent);
  background: #f2f2f2;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.nested-panel {
  margin-top: 24px;
}

.check-list {
  display: grid;
  gap: 9px;
  padding-left: 1.2em;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cfcfcf;
  border-radius: var(--radius);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  width: 100%;
  margin-top: 30px;
  color: var(--white);
  background: var(--accent-dark);
  font-weight: 700;
}

.button--primary:hover {
  background: #222222;
}

.button--secondary {
  color: var(--white);
  background: #000;
  white-space: nowrap;
}

.common-contact-fields {
  margin-top: 24px;
}

@media (max-width: 720px) {

  .container,
  .container--narrow {
    width: min(100% - 28px, 860px);
  }

  .page-hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 36px 0 72px;
  }

  .notice-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .form-section {
    padding: 24px 18px;
  }

  .field-grid,
  .choice-cards {
    grid-template-columns: 1fr;
  }

  .field-grid__full {
    grid-column: auto;
  }

  .section-heading {
    gap: 12px;
  }

  .step {
    flex-basis: 36px;
    height: 36px;
  }

  .button--secondary {
    width: 100%;
  }
}

/* Shopify contact form feedback */
.success-box,
.error-box {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 12px;
}

.success-box {
  background: var(--soft);
  border: 1px solid var(--line);
}

.error-box {
  color: var(--danger);
  background: #f6ecea;
  border: 1px solid #e4c9c4;
}

.success-box h2,
.success-box p,
.error-box ul {
  margin-bottom: 0;
}
