/* TS Electrical Trading — Contact Us */

.contact { padding: var(--section-y) 0 clamp(40px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-heading { font-weight: 800; font-stretch: 110%; font-size: 24px; line-height: 1.2; color: var(--ink); }

/* Shop details */
.contact-details { position: sticky; top: calc(var(--header-h) + var(--admin-offset) + 32px); }
.detail-list { display: grid; gap: 0; margin: 18px 0 24px; }
.detail { padding: 10px 0; border-top: 1px solid var(--line); }
.detail:last-child { border-bottom: 1px solid var(--line); }
.detail dt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.detail dt i { width: 16px; color: var(--red); }
.detail dd { margin-top: 2px; padding-left: 24px; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.detail dd a { font-weight: 600; }
.detail address + a { display: inline-block; margin-top: 2px; font-size: 15px; }

/* Enquiry form */
.form-inner { padding: clamp(24px, 4vw, 44px); }
.form-intro { margin-top: 6px; font-size: 15px; color: var(--muted); }
.enquiry-form { display: grid; gap: 20px; margin-top: 24px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 700; font-size: 16px; color: var(--ink); }
.form-field input,
.form-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 17px; line-height: 1.4; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8A949D; }
.form-field input:hover, .form-field textarea:hover { border-color: #B9C1C8; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(32, 38, 44, .14);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--red); }
.field-hint { font-size: 14px; color: var(--muted); }
.field-error[hidden] { display: none; }
.field-error { display: flex; gap: 6px; font-weight: 600; font-size: 14px; color: var(--red-dark); }
.field-error::before { content: '!'; display: inline-grid; place-items: center; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-turnstile { min-height: 65px; }
.form-privacy { font-size: 13px; color: var(--muted); text-align: center; }

.form-notice { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.form-notice.is-success { background: #E7F5EC; color: #135C30; border-left: 4px solid var(--wa); }
.form-notice.is-error { background: #FDECEC; color: #8A1010; border-left: 4px solid var(--red); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-details { position: static; }
}

/* Top: the red frame wraps only the photo.
   Top and left: double line. Right and bottom: one thick line. */
.hero-box { max-width: 100%; }
.hero-box-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(24px, 4.6vw, 66px); padding: clamp(10px, 2vw, 24px) 0;
}
.hero-box .page-title { font-size: clamp(32px, 4.1vw, 53px); }
.hero-box .page-hero-text { font-size: 17.5px; }
.hero-box .page-hero-art {
  padding: 0; overflow: hidden; background: #fff; border-color: var(--red);
  /* outer curve = line width + 16px on each side, so the photo's own corners are all the same 16px curve */
  border-radius: 34px;
  border-style: double solid solid double; border-width: 18px;
  box-shadow: 0 18px 40px rgba(32, 38, 44, .08);
}
.hero-box .page-hero-art img { border-radius: 0; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .hero-box-inner { grid-template-columns: 1fr; gap: 22px; padding: 0; }
  .hero-box .page-hero-art { border-width: 15px; border-radius: 28px; }
}

/* The framed photo does not zoom (keeps its corners inside the frame) */
.hero-box .page-hero-art img { animation: none; transform: none; }
