/* Contact page: contact details, enquiry form and location map. Loaded only on contact.html.
*/

  .contact-sec { padding-block: clamp(56px, 6.4vw, 118px) clamp(40px, 4vw, 72px); }
  .contact-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; }
  .contact-top p { margin: 0; font-size: clamp(14.5px, 1.05vw, 17.5px); line-height: 1.95; color: #1f2622; max-width: 44em; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(22px, 2.6vw, 44px); margin-top: clamp(32px, 3.6vw, 60px); align-items: start; }

  /* details */
  .cinfo { display: grid; gap: 14px; }
  .cbox { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 22px; background: var(--card); border: 1px solid transparent; border-radius: 12px; transition: border-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease; }
  .cbox:hover { background: #fff; border-color: var(--green); transform: translateY(-2px); }
  .cbox .ci { width: 52px; height: 52px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
  .cbox .ci svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cbox h2 { margin: 2px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
  .cbox p { margin: 0; font-size: 16px; line-height: 1.7; color: #1f2622; }
  .cbox a { transition: color .25s ease; }
  .cbox a:hover { color: var(--green); }

  /* form */
  .cform { background: #fff; border: 1px solid #dfe4e1; border-radius: 14px 14px 56px 14px; padding: clamp(24px, 2.6vw, 44px); box-shadow: 0 30px 50px -40px rgba(8,81,42,.45); }
  .cform h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.4vw, 40px); color: var(--navy); }
  .cform > p { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: var(--muted); }
  .frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fld { display: block; margin-bottom: 16px; }
  .fld > span:not(.err) { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
  .fld > span:not(.err) em { color: var(--orange); font-style: normal; }
  .fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #f5f7f6; border: 1px solid #d5dbd8; border-radius: 8px; padding: 13px 14px; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
  .fld textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
  .fld input:hover, .fld select:hover, .fld textarea:hover { border-color: #aab5af; }
  .fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; background: #fff; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,122,60,.15); }
  .fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--orange); background: #fff7f7; }
  .fld .err { display: none; margin-top: 5px; font-size: 13px; color: #c41e24; }
  .fld.bad .err { display: block; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* spam trap: must stay empty */
  .fsend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
  .fsend .btn { border: 0; cursor: pointer; font: inherit; }
  .fsend small { font-size: 13px; color: var(--muted); }
  .fok { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: #eef7f1; border: 1px solid #b8dcc7; color: var(--green-deep); font-weight: 600; line-height: 1.6; }
  .fok.on { display: block; }

  /* map */
  .map-sec { padding-block: 0 clamp(64px, 7vw, 130px); }
  .cmap { position: relative; border-radius: 14px 14px 56px 14px; overflow: hidden; background: #e8ecea; height: clamp(340px, 34vw, 520px); }
  .cmap > img, .cmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
  .cmap-card { position: absolute; z-index: 2; left: clamp(14px, 2vw, 32px); bottom: clamp(14px, 2vw, 32px); max-width: min(360px, calc(100% - 28px)); background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 16px 34px -14px rgba(0,0,0,.45); }
  .cmap-card b { display: block; font-family: var(--font-display); font-size: 21px; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
  .cmap-card p { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.6; color: #1f2622; }
  .cmap-card a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-deep); }
  .cmap-card a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

  @media (max-width: 1020px) {
    .contact-top, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-top { align-items: start; }
  }
  @media (max-width: 640px) {
    .frow { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .cbox { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .cbox .ci { width: 44px; height: 44px; }
    .cmap { height: 420px; }
    .cmap-card { right: 14px; }
  }

  /* the fallback map picture has the QR code's white box in its top-left corner: crop it out (the live map covers this once loaded) */
  .cmap > img { transform: scale(1.4); transform-origin: 100% 100%; }
