/* Contact page. Owns the .contact-* selectors only; breakpoints at the end
   (project CSS convention). Sorts early under stylesheet_link_tag :app, so it
   never relies on overriding another file. */

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 64px var(--pad-x) 60px;
  background: var(--cream);
  text-align: center;
}

.contact-blob {
  position: absolute;
  top: -70px;
  left: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.15;
}

.contact-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
}

.contact-hero p {
  position: relative;
  z-index: 2;
  max-width: 56ch;
  margin: 12px auto 0;
  color: var(--body);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Inquiry form card */
.contact-form-section {
  padding: 48px 20px 56px;
}

.contact-form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  background: var(--sky-wash);
  border-radius: var(--radius-lg);
}

.contact-form-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.7rem;
  font-weight: 800;
  text-align: center;
}

.contact-form-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: flex;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  padding-left: 6px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e2da;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62, 193, 255, 0.22);
}

.contact-submit {
  width: 100%;
  margin-top: 4px;
}

.contact-form-errors {
  padding: 14px 18px;
  background: var(--no-bg);
  border-radius: 14px;
  color: #b22a47;
  font-weight: 700;
}

.contact-form-errors p {
  margin: 0 0 6px;
}

.contact-form-errors ul {
  margin: 0;
  padding-left: 20px;
  font-weight: 600;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden inputs). */
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-sent {
  text-align: center;
}

.contact-sent-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}

.contact-sent p {
  margin: 10px auto 0;
  max-width: 44ch;
  color: var(--body);
  font-weight: 600;
}

.contact-sent a {
  color: var(--pink);
  font-weight: 800;
}

/* Contact cards */
/* No bottom padding: the shared "Where We Deliver" section that follows
   brings its own top padding (service_area.css), so the gap is set once. */
.contact-cards {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-card {
  flex: 1;
  padding: 28px;
  background: var(--sky-wash);
  border-radius: var(--card-radius);
  text-align: center;
}

/* Inline SVG icons: one fixed box and stroke colour for every card. */
.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  margin-bottom: 10px;
  color: var(--ink); /* charcoal "black" from the palette, matching the headings */
}

.contact-card-icon svg {
  width: 2rem;
  height: 2rem;
}

.contact-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-card p {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--pink);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .contact-form-row,
  .contact-cards {
    flex-direction: column;
  }

  .contact-form-card {
    padding: 28px 22px;
  }

}

@media (max-width: 640px) {
  .contact-hero {
    padding: 48px 20px 44px;
  }
}
