/* Carbon Confido — Contact page
   Loaded after type.css, site.css and pages.css.
   Breakpoints: desktop ≥1100 · iPad 768–1099 · mobile <768 */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Banner: title left, two short paragraphs right ---------- */
.contact-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end;
}
.contact-hero-text p { font-size: var(--fs-body-sm); line-height: var(--lh-body); max-width: 470px; }   /* same size as the homepage Our Services paragraphs */
.contact-hero-text p + p { margin-top: 18px; }
.contact-intro-sm { display: none; }   /* shown instead of the banner paragraphs on iPad / mobile */
.contact-intro-sm p { font-size: var(--fs-body-sm); line-height: var(--lh-body); max-width: 720px; }   /* same size as the homepage Our Services paragraphs */
.contact-intro-sm p + p { margin-top: 18px; }

/* ---------- Enquiry section ---------- */
.enquiry { padding: var(--sy) 0; }
.enquiry-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px);
  gap: 48px 64px; align-items: start;
}

/* Left: heading + company contact details */
.enquiry-info { padding-top: 28px; }
.enquiry-title {   /* same as the homepage section headings, with the same space below */
  color: var(--green); font-size: 35px; font-weight: 600;
  line-height: var(--lh-heading); letter-spacing: -.01em; margin-bottom: 24px;   /* desktop: tight under the heading, as the mockup */
}
.enquiry-company { font-size: var(--fs-md); font-weight: 600; margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 32px 1fr; gap: 18px; align-items: start; font-size: var(--fs-body-sm); line-height: var(--lh-body); }   /* same size as the hero intro text */
.contact-list img { width: 32px; height: 32px; }
.contact-list a { width: fit-content; padding-top: 2px; }
.contact-list address { padding-top: 2px; }
.contact-list a:hover { color: var(--green-dark); }

/* Right: light-gray rounded card holding the form */
.enquiry-card {
  background: var(--gray-bg); border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.enquiry-intro { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 18px; }

/* ---------- Form ---------- */
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.is-full, .form-status.is-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 16px;
  font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1px solid transparent; border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
/* touch screens keep 16px in the fields, otherwise iPhone / iPad Safari zooms in when a field is tapped */
@media (pointer: coarse) { .field input, .field select, .field textarea { font-size: 16px; } }
.field ::placeholder { color: #9a9a9a; opacity: 1; }

/* Select: custom chevron, gray text until a choice is made */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.field select:has(option[value=""]:checked) { color: #9a9a9a; }
.field select option { color: var(--ink); }

/* Focus + error states */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.2);
}
.field [aria-invalid="true"] { border-color: #d64545; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(214,69,69,.18); }
.field-error { color: #c23030; font-size: var(--fs-sm); line-height: 1.35; }
.field-error:empty { display: none; }

.form-actions { flex-direction: row; justify-content: flex-end; margin-top: 8px; }
.form-actions .btn { border: 0; cursor: pointer; font-family: inherit; }

.form-status {
  padding: 14px 18px; border-radius: 10px;
  background: var(--green-pale); border: 1px solid #c8e1a8; color: #2f4d10;
  font-size: var(--fs-body-sm); line-height: 1.5;
}
.form-status a { text-decoration: underline; }

/* =========================================================
   iPad (768 – 1099)
   ========================================================= */
@media (max-width: 1099px) {
  .contact-hero-grid { grid-template-columns: 1fr; }
  .contact-hero-text { display: none; }
  .contact-intro-sm { display: block; margin-bottom: 40px; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .enquiry-info { padding-top: 0; }
  .enquiry-title { margin-bottom: 24px; font-size: var(--fs-h3); }   /* iPad 28px, mobile 24px */
}

/* =========================================================
   Mobile (< 768)
   ========================================================= */
@media (max-width: 767px) {
  .br-lg { display: none; }
  .contact-intro-sm { margin-bottom: 36px; }
  .contact-hero-grid { gap: 20px; }
  .enquiry-card { padding: 22px 16px 24px; }
  .enquiry-form { grid-template-columns: 1fr; gap: 14px; }
  .field input, .field select, .field textarea { padding-left: 14px; }
}

/* =========================================================
   WordPress: Fluent Forms enquiry form, styled to match the
   original HTML form above (.enquiry-form / .field).
   Selectors start with .enquiry-ff so they beat Fluent Forms' own styles.
   ========================================================= */
.enquiry-ff .fluentform { margin: 0; }
.enquiry-ff .fluentform fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.enquiry-ff .fluentform .ff-el-group { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.enquiry-ff .fluentform .ff-el-group.is-full,
.enquiry-ff .fluentform .ff_submit_btn_wrapper { grid-column: 1 / -1; }

.enquiry-ff .fluentform .ff-el-input--label { margin: 0; display: block; }
.enquiry-ff .fluentform .ff-el-input--label label { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; color: var(--ink); margin: 0; }
.enquiry-ff .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { content: " *"; color: inherit; margin-left: 0; }

.enquiry-ff .fluentform .ff-el-form-control {
  width: 100%; min-height: 46px; padding: 10px 16px;
  font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink);
  background-color: #fff; border: 1px solid transparent; border-radius: 10px; box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.enquiry-ff .fluentform textarea.ff-el-form-control { min-height: 110px; resize: vertical; }
@media (pointer: coarse) { .enquiry-ff .fluentform .ff-el-form-control { font-size: 16px; } }
.enquiry-ff .fluentform .ff-el-form-control::placeholder { color: #9a9a9a; opacity: 1; }
.enquiry-ff .fluentform select.ff-el-form-control {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.enquiry-ff .fluentform select.ff-el-form-control:has(option[value=""]:checked) { color: #9a9a9a; }
.enquiry-ff .fluentform select.ff-el-form-control option { color: var(--ink); }
.enquiry-ff .fluentform .ff-el-form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.2); }

/* errors */
.enquiry-ff .fluentform .ff-el-is-error .ff-el-form-control { border-color: #d64545; }
.enquiry-ff .fluentform .ff-el-is-error .ff-el-form-control:focus { box-shadow: 0 0 0 3px rgba(214,69,69,.18); }
.enquiry-ff .fluentform .error.text-danger { color: #c23030; font-size: var(--fs-sm); line-height: 1.35; margin-top: 6px; }
.enquiry-ff .ff-errors-in-stack { color: #c23030; font-size: var(--fs-sm); margin-top: 12px; }

/* submit button (turned into the site's .btn by contact.js) */
.enquiry-ff .fluentform .ff_submit_btn_wrapper { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; margin: 8px 0 0; text-align: right; }
/* Fluent Forms gives its button its own size, colour and padding: put the site's .btn / .btn-blue values back */
.enquiry-ff .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn {
  display: inline-flex; align-items: center; gap: 18px; width: auto; min-width: 0;
  height: 60px; padding: 0 9px 0 38px; margin: 0; border: 0; border-radius: 999px;
  font-family: inherit; font-size: var(--fs-ui); font-weight: 600; line-height: normal; white-space: nowrap;
  background: var(--blue) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(0,0,0,.18);
  cursor: pointer; opacity: 1;
}
.enquiry-ff .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn:hover,
.enquiry-ff .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn:focus-visible {
  background: #0aa3df !important; box-shadow: 0 0 0 5px var(--btn-ring), 0 8px 20px rgba(0,0,0,.12);
}
.enquiry-ff .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn .btn-ico { flex: none; }
.enquiry-ff .fluentform .ff_submit_btn_wrapper .btn[disabled] { opacity: .6; cursor: wait; }

/* thank-you message after sending */
.enquiry-ff .ff-message-success {
  margin: 0; padding: 14px 18px; border-radius: 10px; box-shadow: none;
  background: var(--green-pale); border: 1px solid #c8e1a8; color: #2f4d10;
  font-size: var(--fs-body-sm); line-height: 1.5;
}
.enquiry-ff .ff-message-success p { margin: 0; }

@media (max-width: 767px) {
  .enquiry-ff .fluentform fieldset { grid-template-columns: 1fr; gap: 14px; }
  /* same phone size as every other button (site.css: .btn 54px tall, 28px left padding) */
  .enquiry-ff .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn { height: 54px; padding-left: 28px; gap: 14px; }
  .enquiry-ff .fluentform .ff-el-form-control { padding-left: 14px; }
}
