/* ==========================================================================
   Component: datpro_contact
   Layout for /lien-he/ only — the information column, the form card, the
   quick-contact action row and the location panel. The form itself is styled
   by components/form.css, which is deliberately page-agnostic.

     .dp-contact__grid    info (left) + form card (right), stacks info-first
     .dp-contact__list    icon + label + value information rows
     .dp-contact__card    the white card the form sits in
     .dp-quick            three real contact actions (Zalo / phone / e-mail)
     .dp-map              schematic location panel + address card
   ========================================================================== */

/* --------------------------------------------------------------------------
   Information + form
   -------------------------------------------------------------------------- */

.dp-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 1024px) {
  .dp-contact__grid {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: clamp(2.5rem, 4.4vw, 4.5rem);
  }
}

.dp-contact__info {
  min-width: 0;
  max-width: 34rem;
}

.dp-contact__intro {
  margin-top: var(--sp-3);
  color: var(--dp-text-body);
  font-size: var(--fs-lead);
  text-wrap: pretty;
}

/* Legal identity — the one block that is pure company record */
.dp-contact__identity {
  margin-top: clamp(1.5rem, 2.6vw, 2rem);
  padding: var(--sp-5);
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--r-md);
}

.dp-contact__legal-name {
  color: var(--dp-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  text-wrap: pretty;
}

.dp-contact__tax {
  margin-top: 0.375rem;
  color: var(--dp-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.dp-contact__tax b {
  color: var(--dp-text-body);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

/* Grouped information rows */
.dp-contact__block {
  margin-top: clamp(1.5rem, 2.6vw, 2rem);
}

.dp-contact__block-title {
  margin-bottom: var(--sp-3);
  color: var(--dp-text-muted);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1.4;
}

.dp-contact__list {
  display: grid;
  gap: var(--sp-4);
}

.dp-contact__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-3);
  min-width: 0;
}

.dp-contact__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--dp-blue-50);
  color: var(--dp-blue);
}

.dp-contact__icon svg {
  width: 19px;
  height: 19px;
}

.dp-contact__label {
  display: block;
  color: var(--dp-text-subtle);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.dp-contact__value {
  display: block;
  margin-top: 0.125rem;
  color: var(--dp-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

a.dp-contact__value {
  color: var(--dp-blue);
  font-weight: var(--fw-semibold);
  transition: color var(--dur) var(--ease);
}

a.dp-contact__value:hover {
  color: var(--dp-blue-700);
  text-decoration: underline;
}

/* ---------- The form card ------------------------------------------------- */

.dp-contact__card {
  min-width: 0;
  padding: clamp(1.375rem, 3vw, 2.5rem);
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.dp-contact__card-title {
  font-size: var(--fs-h3);
}

.dp-contact__card-desc {
  margin: var(--sp-2) 0 clamp(1.5rem, 2.6vw, 2rem);
  color: var(--dp-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Quick contact — three real channels, as actions rather than as text
   -------------------------------------------------------------------------- */

.dp-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Three across only once each card can hold datpro.business@gmail.com on one
   line — below that they stack rather than wrap the address mid-word. */
@media (min-width: 900px) {
  .dp-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dp-quick__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-2) var(--sp-4);
  min-width: 0;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.dp-quick__item:hover {
  border-color: var(--dp-blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dp-quick__icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--dp-blue-50);
  color: var(--dp-blue);
}

.dp-quick__icon svg {
  width: 22px;
  height: 22px;
}

.dp-quick__label {
  align-self: end;
  color: var(--dp-text);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.dp-quick__value {
  align-self: start;
  color: var(--dp-blue);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dp-quick__desc {
  grid-column: 1 / -1;
  margin-top: 0.125rem;
  color: var(--dp-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Location
   The panel is an honest schematic, not a screenshot of a map: DATPRO has no
   Maps API key yet, and inventing coordinates for a real address is worse than
   linking out. The button opens Google Maps with the address as a search
   query — keyless, and it works today.
   -------------------------------------------------------------------------- */

.dp-map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 1024px) {
  .dp-map__grid {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: clamp(2rem, 3.6vw, 3.25rem);
  }
}

.dp-map__frame {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(200px, 20vw, 270px);
  padding: var(--sp-5);
  overflow: hidden;
  background: linear-gradient(150deg, #f3f8fd 0%, #ffffff 62%, #eef4fb 100%);
  border: 1px solid var(--dp-border);
  border-radius: var(--r-lg);
}

/* Schematic street grid — decorative, deliberately abstract */
.dp-map__frame::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: linear-gradient(var(--dp-blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--dp-blue-100) 1px, transparent 1px),
    linear-gradient(115deg, transparent 46%, var(--dp-blue-200) 46%, var(--dp-blue-200) 47.2%, transparent 47.2%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  opacity: 0.65;
  pointer-events: none;
}

.dp-map__marker {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.dp-map__pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--dp-border);
  box-shadow: var(--shadow-md);
  color: var(--dp-blue);
}

.dp-map__pin svg {
  width: 25px;
  height: 25px;
}

.dp-map__pin-label {
  padding: 0.3125rem 0.875rem;
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
  color: var(--dp-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.dp-map__body {
  min-width: 0;
  max-width: 30rem;
}

.dp-map__label {
  color: var(--dp-text-subtle);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.dp-map__address {
  margin-top: 0.25rem;
  color: var(--dp-text);
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  line-height: 1.55;
  text-wrap: pretty;
}

.dp-map__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5);
}

@media (max-width: 559px) {
  .dp-map__actions .dp-btn {
    flex: 1 1 100%;
  }
}

.dp-map__second {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--dp-border-strong);
}

.dp-map__second-address {
  margin-top: 0.25rem;
  color: var(--dp-text-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  text-wrap: pretty;
}

.dp-map__second-link {
  margin-top: var(--sp-2);
}

.dp-map__note {
  margin-top: var(--sp-5);
  color: var(--dp-text-subtle);
  font-size: var(--fs-xs);
  line-height: 1.6;
  text-wrap: pretty;
}
