.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}
.contact-page {
  background: var(--cream);
  min-height: 60vh;
  padding: 48px 24px 80px;
}
.contact-container {
  max-width: 720px;
  margin: 0 auto;
}
/* Direct routes, above the form. Auto-fit rather than a fixed column count
   because how many of these exist depends on what the shop has filled in. */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px 32px;
  padding: 24px 28px;
  margin-bottom: 40px;
  background: var(--cream);
}
.contact-direct-item h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.contact-direct-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
}
.contact-direct-item a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-direct-note {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}
@media (max-width: 767px) {
  .contact-direct { padding: 20px; gap: 16px 20px; margin-bottom: 28px; }
}

.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}
.step-card {
  background: var(--white);
  padding: 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.step-number.completed {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.step-number.completed::after {
  content: "✓";
  font-size: 18px;
  font-weight: 600;
}
.step-number.completed span {
  display: none;
}
.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
}
.step-description {
  font-size: 15px;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.5;
}
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-wrapper select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.custom-select-wrapper select:hover, .custom-select-wrapper select:focus {
  border-color: var(--black);
}
.custom-select-wrapper select:disabled {
  background: #fafafa;
  color: #aaa;
  cursor: not-allowed;
}
.custom-select-wrapper select.placeholder {
  color: #aaa;
}
.custom-select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s;
}
.custom-select-wrapper.open::after {
  transform: translateY(-30%) rotate(-135deg);
}
.contact-form {
  animation: fadeIn 0.4s ease;
}
/* The step-3 form stays collapsed until a topic and subject are chosen, but that
   collapse is scoped under .js-steps — a class only the page script sets. With JS
   off the steps cannot advance, so the form renders open and the page stays usable
   instead of hiding itself permanently. */
.js-steps .contact-form {
  display: none;
}
.js-steps .contact-form.active {
  display: block;
}
/* The "complete steps 1 and 2" hint only makes sense while the script is gating
   the form; with JS off the form is already open, so the hint stays hidden. */
#formHint {
  display: none;
}
.js-steps #formHint {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--black);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-note {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.5;
}
.form-note a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-submit {
  display: inline-block;
  padding: 16px 40px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
}
.btn-submit:hover {
  opacity: 0.85;
}
.contact-map {
  margin-top: 40px;
}
.contact-map h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--black);
}
.contact-map-frame {
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 260px;
  background: var(--white);
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-option-card {
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.contact-option-card:hover {
  border-color: var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-option-card .option-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--black);
}
.contact-option-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-option-card p {
  font-size: 13px;
  color: var(--gray);
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
.btn-primary:hover {
  opacity: 0.85;
}
@media (max-width: 1024px) {
  .contact-title {
    font-size: 44px;
  }
}
@media (max-width: 767px) {
  .contact-page {
    padding: 32px 16px 60px;
  }
  .contact-title {
    font-size: 36px;
    margin-bottom: 32px;
  }
  .step-card {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-options-grid {
    grid-template-columns: 1fr;
  }
  .contact-map-frame {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}
@media (max-width: 479px) {
  .contact-title {
    font-size: 32px;
  }
  .step-number {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .step-title {
    font-size: 16px;
  }
}

/* ==========================================================================
   CONTACT — SERVER-SIDE VALIDATION STATES
   The form posts for real now, so a failed submit comes back with the values
   still in place and these markers on the fields that need fixing.
   ========================================================================== */

.form-group input.has-error,
.form-group textarea.has-error {
  border-color: var(--error);
}

/* Sits under a field or under a step's select, so it is not scoped to either. */
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--error);
}

/* Summary line above the form when something was rejected. */
.contact-alert {
  background: var(--white);
  border-left: 3px solid var(--error);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--black);
}

/* Shown after a successful send, above the (now empty) form. */
.contact-sent {
  background: var(--white);
  border-left: 3px solid var(--black);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.contact-sent h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--black);
}
.contact-sent p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 16px;
}
.contact-sent .card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
}

/* Selects disabled by the step script need the same muted look as the markup's
   original disabled attribute gave them. */
.custom-select-wrapper select[disabled] {
  background: #fafafa;
  color: #aaa;
  cursor: not-allowed;
}
