/* ==========================================================================
   BookingsMed — Pagina de contact
   Necesita bm-tokens.css incarcat inainte.
   ========================================================================== */

/* Varianta fara spatiu sus, cand sectiunea urmeaza imediat dupa alta. */
.bm-contact--tight { padding-top: 0; }

.bm-contact { padding: var(--bm-sp-10) 0 var(--bm-sp-12); background: #F4F8FC; font-family: var(--bm-font-sans); }

.bm-contact__wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--bm-sp-5);
}

.bm-contact__head { margin-bottom: var(--bm-sp-8); text-align: center; }

.bm-contact__title {
  margin: 0 0 var(--bm-sp-2);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bm-navy-700);
}

.bm-contact__lead { margin: 0 auto; max-width: 560px; font-size: var(--bm-text-md); line-height: 1.6; color: var(--bm-ink-500); }

/* --------------------------------------------------------------------------
   Formular + card lateral
   -------------------------------------------------------------------------- */

.bm-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: var(--bm-sp-6);
  align-items: start;
  margin-bottom: var(--bm-sp-12);
}

.bm-contact__grid > * { min-width: 0; }

.bm-card {
  box-sizing: border-box;
  padding: var(--bm-sp-8);
  background: var(--bm-surface);
  border: 1px solid var(--bm-line-soft);
  border-radius: var(--bm-r-lg);
  box-shadow: var(--bm-shadow-sm);
}

.bm-card__title {
  margin: 0 0 var(--bm-sp-5);
  font-size: var(--bm-text-lg);
  font-weight: 600;
  color: var(--bm-navy-700);
}

/* --- Campuri ---------------------------------------------------------------- */

.bm-cf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bm-sp-4); }
.bm-cf__grid > * { min-width: 0; }
.bm-cf__full { grid-column: 1 / -1; }

.bm-cf__label {
  display: block;
  margin-bottom: var(--bm-sp-2);
  font-size: var(--bm-text-sm);
  font-weight: 500;
  color: var(--bm-ink-700);
}

/* `!important` doar pe dimensionare: pagina se incarca alaturi de main.css,
   responsive.css si Bootstrap, care au reguli pe `input[type=...]` si pe
   `.form-control`, cu specificitate mai mare decat o clasa. */
.bm-cf__input,
.bm-cf__area {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  padding: var(--bm-sp-3);
  background: var(--bm-surface);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-r-sm);
  font-family: var(--bm-font-sans);
  font-size: var(--bm-text-base);
  line-height: 1.5;
  color: var(--bm-ink-900);
  transition: border-color var(--bm-dur) var(--bm-ease),
              box-shadow var(--bm-dur) var(--bm-ease);
}

.bm-cf__input::placeholder,
.bm-cf__area::placeholder { color: var(--bm-ink-400); }

.bm-cf__input:focus,
.bm-cf__area:focus {
  outline: 0;
  border-color: var(--bm-teal-500);
  box-shadow: var(--bm-focus-ring);
}

.bm-cf__area { resize: vertical; min-height: 150px; }

.bm-cf__submit {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-sp-2);
  padding: var(--bm-sp-3) var(--bm-sp-6);
  border: 0;
  border-radius: var(--bm-r-pill);
  background: var(--bm-teal-500);
  font-family: var(--bm-font-sans);
  font-size: var(--bm-text-md);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color var(--bm-dur) var(--bm-ease);
}

.bm-cf__submit:hover { background: var(--bm-teal-600); }
.bm-cf__submit:focus-visible { outline: 0; box-shadow: var(--bm-focus-ring); }
.bm-cf__submit svg { width: 17px; height: 17px; }

/* Mesajele puse de jqBootstrapValidation */
.bm-contact .help-block.with-errors {
  margin: var(--bm-sp-1) 0 0;
  font-size: var(--bm-text-xs);
  color: var(--bm-danger) !important;
}

.bm-cf__note {
  margin: var(--bm-sp-4) 0 0;
  padding: var(--bm-sp-3);
  border-radius: var(--bm-r-sm);
  font-size: var(--bm-text-sm);
  text-align: center;
}

.bm-cf__note--ok  { background: var(--bm-success-bg); color: var(--bm-success); }
.bm-cf__note--err { background: var(--bm-danger-bg);  color: var(--bm-danger); }

/* --- Card lateral ------------------------------------------------------------ */

.bm-aside { display: grid; gap: var(--bm-sp-4); }

.bm-aside__box {
  box-sizing: border-box;
  padding: var(--bm-sp-6);
  border-radius: var(--bm-r-lg);
}

.bm-aside__box--teal { background: var(--bm-navy-700); color: #fff; }
.bm-aside__box--soft { background: var(--bm-teal-50); border: 1px solid var(--bm-teal-100); }

.bm-aside__t { margin: 0 0 var(--bm-sp-4); font-size: var(--bm-text-md); font-weight: 600; }
.bm-aside__box--teal .bm-aside__t { color: #fff; }
.bm-aside__box--soft .bm-aside__t { color: var(--bm-navy-700); }

.bm-aside__row { display: flex; gap: var(--bm-sp-3); align-items: flex-start; margin-bottom: var(--bm-sp-4); }
.bm-aside__row:last-child { margin-bottom: 0; }

.bm-aside__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--bm-r-sm);
}

.bm-aside__box--teal .bm-aside__icon { background: rgba(255, 255, 255, .14); color: var(--bm-teal-300); }
.bm-aside__box--soft .bm-aside__icon { background: var(--bm-surface); color: var(--bm-teal-500); }
.bm-aside__icon svg { width: 18px; height: 18px; }

.bm-aside__k { display: block; font-size: var(--bm-text-xs); text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.bm-aside__v { display: block; margin-top: 2px; font-size: var(--bm-text-base); font-weight: 500; word-break: break-word; }
.bm-aside__box--teal .bm-aside__v a { color: #fff; }
.bm-aside__box--soft .bm-aside__v { color: var(--bm-navy-700); }
.bm-aside__v a { text-decoration: none; }
.bm-aside__v a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Birouri
   -------------------------------------------------------------------------- */

.bm-offices__head { margin-bottom: var(--bm-sp-6); text-align: center; }
.bm-offices__title { margin: 0 0 var(--bm-sp-2); font-size: 1.5rem; font-weight: 700; color: var(--bm-navy-700); }
.bm-offices__lead { margin: 0; font-size: var(--bm-text-base); color: var(--bm-ink-500); }

.bm-offices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--bm-sp-4);
}

.bm-office {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--bm-sp-5);
  background: var(--bm-surface);
  border: 1px solid var(--bm-line-soft);
  border-radius: var(--bm-r-md);
  transition: box-shadow var(--bm-dur) var(--bm-ease),
              transform var(--bm-dur) var(--bm-ease);
}

.bm-office:hover { box-shadow: var(--bm-shadow-md); transform: translateY(-2px); }

.bm-office__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bm-sp-2);
  margin-bottom: var(--bm-sp-3);
  padding-bottom: var(--bm-sp-3);
  border-bottom: 1px solid var(--bm-line-soft);
}

.bm-office__name {
  margin: 0;
  font-size: var(--bm-text-md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bm-navy-700);
  /* Numele vin din baza in forme diferite: „ITALY", „Romania", „CIS COUNTIRES".
     Le uniformizam vizual, fara sa modificam datele. */
  text-transform: capitalize;
}

.bm-office__code {
  flex: 0 0 auto;
  padding: 2px var(--bm-sp-2);
  border-radius: var(--bm-r-pill);
  background: var(--bm-teal-50);
  font-size: var(--bm-text-xs);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--bm-teal-700);
  text-transform: uppercase;
}

.bm-office__person {
  display: flex;
  align-items: center;
  gap: var(--bm-sp-2);
  margin: 0 0 var(--bm-sp-3);
  font-size: var(--bm-text-sm);
  font-weight: 500;
  color: var(--bm-ink-700);
}

.bm-office__person svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--bm-ink-400); }

.bm-office__links { display: grid; gap: var(--bm-sp-2); margin-top: auto; }

.bm-office__link {
  display: flex;
  align-items: center;
  gap: var(--bm-sp-2);
  min-width: 0;
  font-size: var(--bm-text-sm);
  color: var(--bm-ink-700);
  text-decoration: none;
  word-break: break-word;
}

.bm-office__link svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--bm-teal-500); }
.bm-office__link:hover { color: var(--bm-teal-600); text-decoration: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .bm-contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
  .bm-contact { padding: var(--bm-sp-8) 0; }
  .bm-contact__wrap { padding: 0 var(--bm-sp-4); }
  .bm-card { padding: var(--bm-sp-5); }
  .bm-contact__title { font-size: 1.4rem; }
  .bm-cf__grid { grid-template-columns: 1fr; }
  .bm-cf__submit { width: 100%; justify-content: center; }
  .bm-offices { grid-template-columns: 1fr; }
}
