/* ==========================================================================
   Contact page (uses .page-hero from about.css)
   ========================================================================== */
.contact-hero { min-height: 58vh; }
.contact-hero .container { padding-bottom: 170px; }

.contact-wrap { position: relative; z-index: 5; margin-top: -110px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }

/* Form card */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(28px, 4vw, 50px); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 6px; }
.form-card > p { margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c4fa8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(28,79,168,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d6293e; background: #fff6f7; }
.field .err { display: none; font-size: .8rem; color: #d6293e; font-weight: 600; }
.field.has-error .err { display: block; }

/* Enquiry type pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 700; color: var(--body); cursor: pointer; transition: .2s; }
.pills label:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pills input:checked + label { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pills input:focus-visible + label { box-shadow: 0 0 0 4px rgba(28,79,168,.2); }

/* File upload */
.upload { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; border: 2px dashed #c7d2e3; background: var(--bg-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.upload:hover, .upload.is-drag { border-color: var(--blue-600); background: var(--blue-100); }
.upload svg { width: 32px; height: 32px; color: var(--blue-600); flex: none; }
.upload strong { display: block; color: var(--ink); font-size: .95rem; }
.upload span { font-size: .82rem; color: var(--muted); }
.upload input { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; }
.consent input { width: 20px; height: 20px; accent-color: var(--blue-600); flex: none; margin-top: 2px; }
.consent a { color: var(--blue-600); font-weight: 700; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: .82rem; }
.form-foot .btn { border: 0; font: inherit; font-weight: 700; }

.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .tick { width: 84px; height: 84px; border-radius: 50%; background: #e7f5df; color: var(--green); display: grid; place-items: center; margin: 0 auto 22px; }
.form-success .tick svg { width: 42px; height: 42px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

/* Details column */
.details { display: grid; gap: 22px; }
.detail-card { background: var(--navy-900); color: #c3cde0; border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; }
.detail-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 46px solid rgba(255,255,255,.04); right: -90px; top: -90px; }
.detail-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 22px; }
.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; z-index: 1; }
.d-list a, .d-list li > div { display: flex; gap: 16px; align-items: flex-start; padding: 12px; margin: 0 -12px; border-radius: 14px; transition: background .25s; }
.d-list a:hover { background: rgba(255,255,255,.07); }
.d-list .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(159,192,255,.12); color: #9fc0ff; display: grid; place-items: center; }
.d-list .ico svg { width: 20px; height: 20px; }
.d-list small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8596b5; margin-bottom: 2px; }
.d-list strong, .d-list address { color: #fff; font-style: normal; font-weight: 600; line-height: 1.5; }
.detail-card .company { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; position: relative; z-index: 1; }

.quick-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.quick-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.quick-card a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.quick-card a:hover { color: var(--blue-600); }
.quick-card a svg { width: 18px; height: 18px; color: var(--blue-600); }

/* Map */
.map-section { margin-top: clamp(70px, 9vw, 110px); }
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.map-head .section-head { margin: 0; }
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); height: 460px; background: #e6ebf2; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-pin { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 14px; align-items: center; background: #fff; padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow); max-width: calc(100% - 48px); }
.map-pin img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.map-pin strong { display: block; color: var(--ink); }
.map-pin span { font-size: .85rem; }

@media (max-width: 980px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-hero .container { padding-bottom: 140px; }
  .form-grid { grid-template-columns: 1fr; }
  .map-frame { height: 360px; }
  .map-pin img { display: none; }
}

/* Let form columns shrink below their content width on small screens */
.contact-wrap > *, .form-grid > *, .field { min-width: 0; }
.upload > span { min-width: 0; overflow-wrap: anywhere; }
.pills { position: relative; }
.pills input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }
