/* ============================================================
   Contact page — info strip + form + departments + map
   ერთიანი სტილი: შავი/თეთრი/წითელი, არსებული tokens.
   ============================================================ */


/* ============================================================
   Info strip — page-hero-ის ქვემოთ, სუფთა გათიშვით
   ============================================================ */

.contact-strip {
  background: var(--white);
  padding: 64px 0 16px;
}

.contact-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 1023.98px) {
  .contact-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .contact-strip { padding: 40px 0 8px; }
}

@media (max-width: 575.98px) {
  .contact-strip__grid { grid-template-columns: 1fr; gap: var(--sp-2); }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.contact-card:hover { border-color: var(--ink-3); box-shadow: var(--shadow-2); }

.contact-card__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-card__icon svg { width: 16px; height: 16px; }

.contact-card__label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card__value {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.contact-card__value a {
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}

.contact-card__value a:hover { color: var(--red); }

.contact-card__sub {
  font-size: var(--fs-13);
  color: var(--text-muted);
  line-height: 1.4;
}


/* ============================================================
   Main 2-col section — form + departments
   ============================================================ */

.contact-main {
  background: var(--white);
  padding: 56px 0 96px;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1023.98px) {
  .contact-main__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 575.98px) {
  .contact-main { padding: 32px 0 64px; }
  .contact-main__grid { gap: 40px; }
}

.contact-section__head {
  margin-bottom: 28px;
}

.contact-section__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-section__lede {
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 50ch;
}

/* ---- Language toggle (segmented pill, ფორმის ფილდი) ---- */
.form-lang {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  width: fit-content;
  align-self: flex-start;
}

.form-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 34px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.form-lang__btn:hover { color: var(--ink); }

.form-lang__btn.is-active {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}


/* ============================================================
   Form
   ============================================================ */

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 575.98px) {
  .form-row { grid-template-columns: 1fr; gap: 18px; }
}

.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.form-label {
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.form-label__req {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input,
.form-textarea,
.form-select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-14);
  font-family: inherit;
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  width: 100%;
  min-width: 0;
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-input:hover,
.form-textarea:hover,
.form-select:hover { border-color: var(--graphite); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper-2);
}

/* Native select with custom arrow */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%235B5F69' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Checkboxes */
.form-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--text-muted);
}

.form-check input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-check__mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-soft);
  border-color: var(--graphite);
  border-radius: var(--r-1);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.form-check__mark::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--white);
  border-bottom: 1.6px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.form-check input:checked + .form-check__mark {
  background: var(--ink);
  border-color: var(--ink);
}

.form-check input:checked + .form-check__mark::after { opacity: 1; }

.form-check input:focus-visible + .form-check__mark {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-check__label a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease);
}

.form-check__label a:hover { text-decoration-color: var(--ink); }

/* Submit row */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-actions .btn {
  height: 46px;
  padding: 0 22px;
}

.form-actions__hint {
  font-size: var(--fs-13);
  color: var(--text-muted);
}


/* ============================================================
   Departments side panel
   ============================================================ */

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.depts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dept-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.dept-card:hover {
  border-color: var(--ink-3);
  background: var(--paper-2);
}

.dept-card__role {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.dept-card__email {
  font-size: var(--fs-13);
  color: var(--text-muted);
}

.dept-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur) var(--ease);
}

.dept-card:hover .dept-card__arrow {
  background: var(--ink);
  color: var(--white);
  transform: translateX(2px);
}

.dept-card__arrow svg { width: 12px; height: 12px; }


/* Side social block */
.contact-side__social {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.contact-side__social-label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-side__socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-side__socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.contact-side__socials a:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: var(--paper-2);
}

.contact-side__socials svg { width: 14px; height: 14px; }


/* ============================================================
   Map
   ============================================================ */

.contact-map {
  background: var(--white);
  padding-bottom: 96px;
}

.contact-map__frame {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
}

.contact-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.4) contrast(0.95);
}

.contact-map__pill {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur) var(--ease);
}

.contact-map__pill svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}

.contact-map__pill:hover { border-color: var(--ink); }
.contact-map__pill:hover svg { transform: translateX(2px); color: var(--ink); }

@media (max-width: 767.98px) {
  .contact-map { padding-bottom: 64px; }
  .contact-map__frame { aspect-ratio: 4 / 5; border-radius: var(--r-3); }
  .contact-map__pill { left: 16px; bottom: 16px; padding: 8px 14px; font-size: 12.5px; }
}
