/* =========================================================
   CONTACT PAGE
   Split layout: info on the left, form on the right.
   Below: 3 office cards. Bottom: alternative channels strip.
   ========================================================= */

/* =========================================================
   PAGE HERO
   ========================================================= */
.ct-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(40px, 5vw, 60px);
  background: #fff;
  border-bottom: 1px solid var(--border);
  clip-path: inset(0);
  overflow: hidden;
}

.ct-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ct-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 25, 23, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, #000 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, #000 30%, transparent 95%);
}

.ct-hero__bg-glow {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(28, 25, 23, .14) 0%,
      rgba(28, 25, 23, .04) 40%,
      rgba(28, 25, 23, 0) 70%);
  filter: blur(40px);
  transform: translateY(-50%);
  animation: ct-glow 8s ease-in-out infinite alternate;
}

@keyframes ct-glow {
  0% {
    opacity: .6;
    transform: translateY(-50%) scale(.9);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

.ct-hero .container {
  position: relative;
  z-index: 1;
}

.ct-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-size: var(--t-xs);
  color: var(--text-muted);
}

.ct-crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.ct-crumbs a:hover {
  color: var(--text);
}

.ct-crumbs i {
  font-size: .75rem;
  color: var(--text-light);
}

.ct-crumbs span {
  color: var(--text);
  font-weight: 500;
}

.ct-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.ct-hero__meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--text-muted);
}

.ct-hero__title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 760px;
}

.ct-hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 640px;
}

/* =========================================================
   MAIN GRID — info column + form column
   ========================================================= */
.ct-main {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-soft);
}

.ct-main__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* ----- LEFT: Info column ----- */
.ct-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ct-info__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-info__label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-info__label i {
  color: var(--accent);
  font-size: 1rem;
}

.ct-info__value {
  display: block;
  font-size: var(--t-md);
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* Secondary entries (2nd, 3rd email/phone) — smaller, muted */
.ct-info__value--secondary {
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.ct-info__value a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.ct-info__value--secondary a {
  color: var(--text-muted);
}

.ct-info__value a:hover,
.ct-info__value--secondary a:hover {
  color: var(--accent);
}

.ct-info__hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-info__hours span {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-sm);
  color: var(--text);
  padding: 4px 0;
}

.ct-info__hours span b {
  font-weight: 500;
  color: var(--text-muted);
}

/* Visual divider */
.ct-info__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ----- RIGHT: Form ----- */
.ct-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
}

.ct-form__head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ct-form__title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 6px;
}

.ct-form__sub {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.ct-form__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ct-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-form__field label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  color: var(--text);
}

.ct-form__field input,
.ct-form__field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.ct-form__field input:focus,
.ct-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ct-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.ct-form__field.has-error input,
.ct-form__field.has-error textarea {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .04);
}

/* Topic chips — replace native select */
.ct-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-form__chip {
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--t-xs);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.ct-form__chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.ct-form__chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* GDPR consent */
.ct-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-xs);
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.ct-form__consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ct-form__consent-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: .7rem;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.ct-form__consent input[type="checkbox"]:checked+.ct-form__consent-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ct-form__consent input[type="checkbox"]:focus-visible+.ct-form__consent-mark {
  outline: 2px solid var(--highlight, #1c1917);
  outline-offset: 2px;
}

.ct-form__consent.has-error .ct-form__consent-mark {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .04);
}

.ct-form__consent-text a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ct-form__consent-text a:hover {
  color: var(--accent);
}

/* Submit button */
.ct-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.ct-form__submit.is-loading {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

.ct-form__submit.is-loading .ct-form__submit-label::after {
  content: '...';
  animation: ct-dots 1s steps(4, end) infinite;
}

@keyframes ct-dots {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

/* =========================================================
   OFFICE CARDS
   ========================================================= */
.ct-offices {
  padding: clamp(56px, 8vw, 96px) 0;
  background: #fff;
}

.ct-offices__head {
  margin-bottom: 36px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ct-offices__eyebrow {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.ct-offices__title {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 10px;
}

.ct-offices__sub {
  font-size: var(--t-md);
  color: var(--text-muted);
  line-height: 1.5;
}

.ct-offices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ct-office {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base-d) var(--ease),
    transform var(--t-base-d) var(--ease),
    box-shadow var(--t-base-d) var(--ease);
}

.ct-office:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ct-office__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}

.ct-office__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.ct-office:hover .ct-office__media img {
  transform: scale(1.04);
}

.ct-office__body {
  padding: 22px 24px 24px;
}

.ct-office__city {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.ct-office__country {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: block;
}

/* Address now opens Google Maps — styled like a hover link with pin icon */
.ct-office__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.ct-office__address i {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 2px;
  transition: transform var(--t-base-d) var(--ease);
}

.ct-office__address span {
  flex: 1;
  min-width: 0;
}

.ct-office__address:hover {
  color: var(--text);
}

.ct-office__address:hover i {
  transform: scale(1.15);
}

.ct-office__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ct-office__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-sm);
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.ct-office__contact a i {
  font-size: .95rem;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}

.ct-office__contact a:hover,
.ct-office__contact a:hover i {
  color: var(--accent);
}

/* =========================================================
   TOAST (success / error feedback)
   ========================================================= */
.ct-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.ct-toast__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
  font-size: var(--t-sm);
  color: var(--text);
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  animation: ct-toast-in .35s var(--ease-out);
}

.ct-toast__item.is-removing {
  animation: ct-toast-out .25s var(--ease) forwards;
}

@keyframes ct-toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ct-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.ct-toast__item--success {
  border-left-color: #16a34a;
}

.ct-toast__item--error {
  border-left-color: #dc2626;
}

.ct-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.ct-toast__item--success .ct-toast__icon {
  color: #16a34a;
}

.ct-toast__item--error .ct-toast__icon {
  color: #dc2626;
}

.ct-toast__body {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.ct-toast__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.ct-toast__message {
  color: var(--text-muted);
  font-size: var(--t-xs);
}

.ct-toast__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  border-radius: 4px;
}

.ct-toast__close:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .ct-main__grid {
    grid-template-columns: 320px 1fr;
  }
}

@media (max-width: 992px) {
  .ct-main__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ct-info {
    /* Horizontal info layout on tablet */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .ct-info__group {
    flex: 1 1 calc(50% - 12px);
    min-width: 240px;
  }

  .ct-info__divider {
    display: none;
  }

  .ct-offices__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-offices__grid>*:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .ct-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ct-info {
    flex-direction: column;
  }

  .ct-info__group {
    flex: 1 1 100%;
    min-width: 0;
  }

  .ct-offices__grid {
    grid-template-columns: 1fr;
  }

  .ct-offices__grid>*:nth-child(3) {
    max-width: none;
  }

  .ct-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .ct-toast__item {
    min-width: 0;
    max-width: none;
  }
}