/* 04 Liên hệ: offices, office card, map and the contact form.
   Loaded after Vvs_Site.css (Helpers/VvStylesheets.cs). */

/* ---------- Contact (04) ---------- */
.vv-contact {
  max-width: 920px;
  padding-top: 56px;
  padding-bottom: 72px;
}
.vv-offices__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin-bottom: 44px;
}
.vv-offices__item {
  height: 100%;
  padding: 11px 14px;
}
.vv-offices__item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vv-offices__item svg {
  flex: none;
  opacity: 0.6;
}
.vv-office-card {
  padding: 22px 24px;
  border-radius: var(--vv-radius);
  background: var(--vv-green);
  color: rgba(255, 255, 255, 0.92);
}
.vv-office-card__name {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.vv-office-card__body {
  font-size: 14px;
  line-height: 1.8;
  padding: 0 20px;
}
.vv-office-card__body p {
  margin: 0;
}
.vv-map {
  position: relative;
  height: 340px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--vv-radius);
  background: #e6ece4;
}
.vv-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vv-map__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--vv-green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.vv-map__link:hover {
  text-decoration: underline;
}

/* ---------- Contact form ---------- */
.vv-contact-form {
  margin-top: 48px;
}
.vv-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.vv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.vv-field label {
  font-size: 13px;
  font-weight: 600;
}
.vv-field input,
.vv-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d3dbd2;
  border-radius: 6px;
  background: #fff;
  color: var(--vv-text);
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.vv-field input {
  height: 42px;
}
.vv-field textarea {
  resize: vertical;
  min-height: 140px;
}
.vv-field input:focus,
.vv-field textarea:focus {
  border-color: var(--vv-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 87, 40, 0.15);
}
.vv-field [aria-invalid="true"] {
  border-color: var(--vv-danger);
}
.vv-field__error {
  margin: 0;
  color: var(--vv-danger);
  font-size: 12px;
}
.vv-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.vv-form__status {
  margin: 0;
  font-size: 14px;
}
.vv-form__status.is-success {
  color: var(--vv-green);
  font-weight: 600;
}
.vv-form__status.is-error {
  color: var(--vv-danger);
}
.vv-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .vv-offices__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .vv-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .vv-map {
    height: 280px;
  }
}

@media (max-width: 575px) {
  .vv-offices__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
