/* ==========================================================================
   Contact page (app/views/pages/contact.php)
   Full-bleed 50/50 split: contact details on white (left), message form card
   floating over a photo (right). Proportions follow the live page at 1440px.
   ========================================================================== */

/* Hero: full-screen via .page-hero--full; overlay matched to the live page */
.contact-hero .media-cover { --overlay: 0.4; }

.contact-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ----- Left: contact information ----- */
.contact-info {
  display: flex; align-items: center;
  padding: clamp(72px, 7vw, 100px) clamp(24px, 5.6vw, 94px);
  background: var(--c-white);
}
.contact-info__inner { width: 100%; max-width: 620px; }
.contact-info__title { margin-top: 18px; font-size: var(--fs-h5); line-height: 1.35; }
.contact-info__address { margin-top: 18px; font-size: 16px; line-height: 1.66; }
.contact-info__lines { margin-top: 14px; font-size: 16px; line-height: 1.85; }
.contact-info__lines strong { font-weight: 600; color: var(--c-ink); }
.contact-info a { overflow-wrap: anywhere; transition: color var(--t-fast) var(--ease); }
.contact-info a:hover { color: var(--c-lagoon); }

.contact-depts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 32px;
  margin-top: clamp(44px, 4.8vw, 68px); padding-top: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--c-ink);
}
.contact-dept__title { font-size: clamp(23px, 1.8vw, 26px); line-height: 1.3; }
.contact-dept__text { margin-top: 12px; font-size: 15px; line-height: 1.75; }
.contact-dept__lines { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.75; }
.contact-dept__label { color: var(--c-text); }

/* ----- Right: form card over a photo ----- */
.contact-form-col {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(72px, 7vw, 100px) clamp(20px, 7vw, 100px);
  background: var(--c-dark);
}
.contact-form-col .media-cover { z-index: -1; }
.contact-form-col .media-cover img { object-position: 50% 60%; }
.contact-card {
  width: 100%; max-width: 680px; padding: clamp(32px, 4.2vw, 60px); /* live: ~690px at 1920, column-limited below */
  background: var(--c-white); box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14);
  scroll-margin-top: 100px;
}
.contact-card__head { gap: 14px; margin-bottom: 30px; }
.contact-card__title { font-size: var(--fs-h5); line-height: 1.35; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .textarea { min-height: 120px; }
.contact-form__consent { font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.contact-form__consent a { color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__consent a:hover { color: var(--c-lagoon-dark); }
.contact-form__alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-left: 2px solid var(--c-error); background: #fdf0ef; color: var(--c-error); font-size: 15px; line-height: 1.5;
}
.contact-form__alert .icon { width: 18px; height: 18px; margin-top: 2px; stroke-width: 1.6; }
.contact-form__alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.contact-form__submit { margin-top: 2px; }
/* Keep the live region rendered (screen readers), but collapse it while empty */
.contact-form .form-status:empty { margin-top: -20px; }

/* Success state (revealed by main.js, or rendered server-side after a no-JS submit) */
.contact-success {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 12px 0 4px; text-align: center;
  animation: contact-success-in 0.6s var(--ease-out) both;
}
.contact-success:focus { outline: none; }
.contact-success__icon { width: 52px; height: 52px; margin-bottom: 6px; color: var(--c-lagoon); stroke-width: 1.2; }
.contact-success__title { font-size: clamp(24px, 2vw, 28px); line-height: 1.3; }
.contact-success__ref { font-size: 16px; }
.contact-success__ref strong { font-weight: 600; letter-spacing: 0.04em; color: var(--c-ink); }
.contact-success__text { font-size: 16px; color: var(--c-muted); }
.contact-success .link-more { margin-top: 6px; }
@keyframes contact-success-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .contact-depts { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-info { padding: 72px var(--gutter); }
  .contact-info__inner { max-width: none; }
  .contact-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .contact-form-col { padding: 72px var(--gutter); }
  .contact-card { max-width: 560px; }
}
@media (max-width: 600px) {
  .contact-info { padding-block: 56px; }
  .contact-depts { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-col { padding: 48px 16px; }
  .contact-card { padding: 32px 20px; }
  .contact-card__head { margin-bottom: 24px; }
}
