/* =========================================================
   T-Control · Contacto + CTA
   Left: the text composition of UI Vault sections/cta/model-001 (a huge
   title, a quiet paragraph, a pill button with a round arrow) plus the
   contact data of sections/contact/model-001 and the map of the current
   site. Right: the form card of sections/contact/model-001 (icon fields,
   character count, inline errors, status message).
   Texts, data and fields: "Contacto" of the inventory.
========================================================= */

.tc-contact {
  padding: clamp(96px, 10vw, 150px) clamp(20px, 4vw, 72px) clamp(72px, 7vw, 110px);
  border-bottom: 1px solid var(--tc-line);
  background: var(--tc-white);
}

.tc-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr);
  gap: clamp(48px, 7vw, 130px);
  align-items: start;
  max-width: 1680px;
  margin: 0 auto;
}

/* ---------- left: the CTA composition ---------- */

.tc-contact__content { min-width: 0; }

.tc-contact .eyebrow { display: flex; align-items: center; gap: 12px; }
.tc-contact .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--tc-black); }

.tc-contact__title {
  max-width: 900px;
  margin-top: 8px;
  font-size: clamp(4.2rem, 8vw, 9.4rem);
  line-height: .86;
}
.tc-contact__title span { display: block; color: var(--tc-grey); }

.tc-contact__description {
  max-width: 560px;
  margin: clamp(32px, 5vh, 64px) 0 0;
  color: var(--tc-grey);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.6;
}

/* CTA: the model's black pill + a separate round arrow */
.tc-contact__cta {
  display: inline-flex;
  align-items: center;
  height: 64px;
  margin-top: 36px;
}
.tc-contact__cta-text {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--tc-black);
  color: var(--tc-white);
  font-size: .95rem;
  font-weight: 600;
  transition: background-color .3s ease;
}
.tc-contact__cta-arrow {
  display: grid;
  width: 64px;
  height: 64px;
  margin-left: 8px;
  place-items: center;
  border: 1px solid var(--tc-grey-light);
  border-radius: 50%;
  color: var(--tc-black);
  transition: background-color .3s ease, color .3s ease, transform .35s var(--tc-ease);
}
.tc-contact__cta-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--tc-ease); }
.tc-contact__cta:hover .tc-contact__cta-text { background: var(--tc-black-hover); }
.tc-contact__cta:hover .tc-contact__cta-arrow { background: var(--tc-black); color: var(--tc-white); transform: translateX(5px); }
.tc-contact__cta:hover .tc-contact__cta-arrow svg { transform: translateX(2px); }

/* contact data (contact model's meta row) */
.tc-contact__meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 26px 48px;
  width: fit-content;
  margin: 52px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--tc-line);
}
.tc-contact__meta div { display: grid; gap: 6px; }
.tc-contact__meta div:last-child { grid-column: 1 / -1; max-width: 420px; }
.tc-contact__meta dt { color: var(--tc-grey); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tc-contact__meta dd { margin: 0; color: var(--tc-black); font-size: 1rem; font-weight: 500; line-height: 1.45; }
.tc-contact__meta a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--tc-ease); }
.tc-contact__meta a:hover { background-size: 100% 1px; }

/* map of the office (as on the current site) */
.tc-contact__map {
  position: relative;
  max-width: 620px;
  height: 230px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 18px;
  background: var(--tc-soft);
}
.tc-contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); transition: filter .5s ease; }
.tc-contact__map:hover iframe { filter: grayscale(0); }

/* ---------- right: the form card ---------- */

.tc-contact__card {
  position: sticky;
  top: 100px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--tc-line);
  border-radius: 28px;
  background: var(--tc-surface);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--tc-black) 45%, transparent);
}

.tc-contact__card-head span { color: var(--tc-grey); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tc-contact__card-head h3 { margin: 12px 0 28px; font-size: clamp(2.2rem, 2.8vw, 3.1rem); line-height: .95; }

.tc-form { display: flex; flex-direction: column; gap: 18px; }

.tc-field label { display: block; margin: 0 0 8px 3px; color: var(--tc-graphite); font-size: .8rem; font-weight: 600; }
.tc-field label span { margin-left: 6px; color: var(--tc-grey); font-size: .72rem; font-weight: 500; }

.tc-control {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--tc-grey-light);
  border-radius: 14px;
  background: var(--tc-white);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tc-control:focus-within { border-color: var(--tc-graphite); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc-graphite) 12%, transparent); }
.tc-control svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--tc-black); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tc-control input,
.tc-control textarea { width: 100%; border: 0; outline: 0; background: transparent; color: var(--tc-black); font: 500 .95rem var(--font-body); }
.tc-control input::placeholder,
.tc-control textarea::placeholder { color: var(--tc-grey); opacity: .8; }

.tc-control--textarea { position: relative; align-items: flex-start; min-height: 140px; padding: 15px 16px 28px; }
.tc-control--textarea svg { margin-top: 2px; }
.tc-control--textarea textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.tc-count { position: absolute; right: 14px; bottom: 9px; color: var(--tc-grey); font-size: .72rem; }

.tc-error { display: none; margin: 6px 0 0 3px; color: var(--tc-black); font-size: .78rem; font-weight: 600; }
.tc-error::before { content: "— "; }
.tc-field.is-invalid .tc-control { border-color: var(--tc-black); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc-black) 10%, transparent); }
.tc-field.is-invalid .tc-error { display: block; }

.tc-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--tc-black);
  color: var(--tc-white);
  font: 600 .95rem var(--font-body);
  cursor: pointer;
  transition: background-color .3s ease;
}
.tc-submit i { font-style: normal; font-size: 1.1rem; transition: transform .35s var(--tc-ease); }
.tc-submit:hover { background: var(--tc-black-hover); }
.tc-submit:hover i { transform: rotate(45deg); }
.tc-submit:disabled { opacity: .6; cursor: not-allowed; }

.tc-status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--tc-soft);
}
.tc-status.is-shown { display: flex; animation: tc-status-in .5s var(--tc-ease); }
.tc-status > span { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--tc-black); color: var(--tc-white); font-size: .8rem; }
.tc-status strong { display: block; color: var(--tc-black); font-size: .9rem; }
.tc-status p { margin: 2px 0 0; font-size: .82rem; }
@keyframes tc-status-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .tc-contact__inner { grid-template-columns: minmax(0, 1fr); }
  .tc-contact__card { position: relative; top: auto; max-width: 640px; }
}

@media (max-width: 560px) {
  .tc-contact__title { font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .tc-contact__cta, .tc-contact__cta-text { height: 56px; }
  .tc-contact__cta-arrow { width: 56px; height: 56px; }
  .tc-contact__cta-text { padding: 0 26px; }
  .tc-contact__meta { grid-template-columns: 1fr; width: 100%; }
  .tc-contact__map { height: 200px; }
  .tc-contact__card { padding: 26px 20px; border-radius: 22px; }
}
