.contact-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.contact-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
}

.contact-card-head {
  min-height: 82px;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  color: #b42318;
  background: #fff1f1;
  border: 1px solid #ffd6d6;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.contact-title {
  margin: 7px 0 3px;
  color: #111827;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.25;
}

.contact-card p {
  margin: 0;
  color: #667085;
  font-size: .79rem;
  line-height: 1.45;
}

.contact-action,
.contact-address,
.contact-callback-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.contact-action,
.contact-address {
  color: #111827;
  background: #fff;
  border: 1px solid #dfe6ef;
}

.contact-action:hover,
.contact-address:hover {
  color: #111827;
  background: #f8fafc;
  border-color: #cfd8e4;
}

.contact-action-call {
  border-color: #efb5b5;
  background: #fffafa;
}

.contact-action-call:hover {
  background: #fff4f4;
  border-color: #df8b8b;
}

.contact-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border-radius: 50%;
  font-size: .86rem;
}

.contact-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.contact-icon-call { color: #b42318; background: #fee2e2; }
.contact-icon-map { color: #047857; background: #d1fae5; }
.contact-icon-zalo { color: #0284c7; background: #e0f2fe; }
.contact-icon-messenger { color: #7c3aed; background: #ede9fe; }

.contact-action-text,
.contact-address span:not(.contact-icon) {
  min-width: 0;
}

.contact-action-text span,
.contact-address span span {
  display: block;
  color: #667085;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-action-text strong,
.contact-address strong {
  display: block;
  margin-top: 1px;
  color: #111827;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-action-call strong {
  color: #b42318;
  font-size: .98rem;
}

.contact-arrow {
  margin-left: auto;
  color: #98a2b3;
  font-size: 1.15rem;
  flex-shrink: 0;
}

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

.contact-chat-btn {
  justify-content: flex-start;
  font-size: .86rem;
  font-weight: 900;
}

.contact-callback {
  min-width: 0;
}

.contact-callback-toggle {
  width: 100%;
  justify-content: space-between;
  color: #fff;
  background: #2451c6;
  border: 0;
  font-size: .88rem;
  font-weight: 900;
  cursor: pointer;
}

.contact-callback-toggle:hover {
  background: #1d4ed8;
}

.contact-callback-toggle[aria-expanded="true"] {
  background: #334155;
}

.contact-callback-form {
  margin-top: 9px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  animation: contact-slide-in .18s ease;
}

@keyframes contact-slide-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-callback-form p {
  margin-bottom: 8px;
  color: #667085;
  font-size: .78rem;
}

.contact-callback-row {
  display: flex;
  gap: 6px;
}

.contact-phone-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: .88rem;
  outline: none;
}

.contact-phone-input:focus {
  border-color: #2451c6;
}

.contact-callback-submit {
  height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #16a34a;
  border: 0;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.contact-callback-submit:hover {
  background: #15803d;
}

.contact-callback-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.contact-callback-msg {
  min-height: 18px;
  margin-top: 6px;
  font-size: .8rem;
}

.contact-callback-msg.ok { color: #16a34a; }
.contact-callback-msg.err { color: #dc2626; }

@media (max-width: 767.98px) {
  .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-card-head {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .contact-chat-grid {
    grid-template-columns: 1fr;
  }

  .contact-callback-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
