/* ══ Contact Page ════════════════════════════════════════════════ */

.contact-main {
  padding-top: 62px;
}

/* ══ HERO BAR ════════════════════════════════════════════════════ */
.contact-hero-bar {
  padding: 52px 8vw 40px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.contact-hero-text {
  flex: 1;
  min-width: 0;
}

.contact-kicker {
  margin: 0 0 14px;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
  flex-shrink: 0;
}

.contact-heading {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.contact-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.35);
  max-width: 42ch;
}

/* Hero meta strip */
.contact-hero-meta {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
}

.hero-meta-item a,
.hero-meta-item span:not(.hero-meta-label) {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.hero-meta-item a:hover { color: #fff; }

.hero-meta-label {
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.hero-meta-sep {
  width: 1px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

/* ══ BODY ════════════════════════════════════════════════════════ */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 340px;
}

/* ══ FORM COLUMN ═════════════════════════════════════════════════ */
.contact-form-col {
  padding: 44px 8vw 64px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 40%);
}

/* CF7 form */
.wpcf7-form {
  display: flex;
  flex-direction: column;
}

.wpcf7-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  transition: border-color 0.25s, color 0.25s;
}

.wpcf7-form label:focus-within {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.5);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: #ffffff;
  padding: 8px 0 14px;
  font-family: inherit;
  font-size: 18px;
  outline: none;
  caret-color: rgba(255,255,255,0.5);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(255,255,255,0.12);
}

.wpcf7-form textarea {
  min-height: 90px;
  resize: none;
}

.wpcf7-not-valid-tip {
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(244,100,80,0.85);
  padding: 3px 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wpcf7-not-valid-tip::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(244,100,80,0.6);
  font-size: 8px;
  flex-shrink: 0;
}

.wpcf7-form input[type="submit"] {
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  color: #fff;
  padding: 13px 32px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 9px;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.25s, border-color 0.25s, letter-spacing 0.25s;
}

.wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.35);
  letter-spacing: 0.26em;
}

.wpcf7-form.submitting input[type="submit"] {
  opacity: 0.4;
  pointer-events: none;
}

.wpcf7-response-output {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpcf7-response-output::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.wpcf7-mail-sent-ok {
  border-color: rgba(100,200,120,0.2) !important;
  color: rgba(100,200,120,0.8) !important;
  background: rgba(100,200,120,0.04);
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  border-color: rgba(244,100,80,0.2) !important;
  color: rgba(244,100,80,0.8) !important;
  background: rgba(244,100,80,0.04);
}

.wpcf7-spinner { display: none !important; }

/* ══ SIDEBAR ═════════════════════════════════════════════════════ */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 50%);
}

.sidebar-block {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-block:last-child {
  border-bottom: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  display: block;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}

/* Social buttons */
.contact-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 10px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.social-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.social-btn:hover svg { opacity: 1; }

/* ══ MAP SLIDER ══════════════════════════════════════════════════ */
.sidebar-map-block {
  flex: 1;
}

.map-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.map-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
}

.map-tab {
  flex: 1;
  padding: 7px 4px;
  font-size: 9px;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.map-tab.map-tab-active {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.map-slides {
  position: relative;
  flex: 1;
}

.map-slide {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: slideIn 0.25s ease;
}

.map-slide.map-slide-active {
  display: flex;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.map-address {
  margin: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  filter: grayscale(1) invert(0.88) contrast(0.85);
  opacity: 0.7;
  transition: opacity 0.3s, filter 0.3s;
  position: relative;
}

.map-embed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  border-radius: 10px;
}

.map-embed:hover {
  opacity: 0.95;
  filter: grayscale(0.4) invert(0.75) contrast(0.9);
}

.map-embed iframe { display: block; }

.map-remote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

/* ══ RTL ═════════════════════════════════════════════════════════ */
[dir="rtl"] .contact-hero-bar {
  background: linear-gradient(340deg, rgba(255,255,255,0.04) 0%, transparent 60%);
}

[dir="rtl"] .contact-hero-inner {
  flex-direction: row;
}

[dir="rtl"] .contact-hero-text {
  text-align: right;
}

[dir="rtl"] .contact-kicker {
  letter-spacing: 0.05em;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .contact-kicker::before {
  background: linear-gradient(270deg, transparent, rgba(255,255,255,0.8));
}

[dir="rtl"] .contact-heading {
  font-size: clamp(28px, 3.8vw, 54px);
  letter-spacing: 0;
  font-family: "PingAR+LT", "Poppins", sans-serif;
}

[dir="rtl"] .contact-sub {
  font-size: 14px;
  line-height: 1.8;
  font-family: "PingAR+LT", "Poppins", sans-serif;
  max-width: 38ch;
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .contact-hero-meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-meta-item {
  text-align: right;
}

[dir="rtl"] .hero-meta-label {
  font-family: "PingAR+LT", "Poppins", sans-serif;
  letter-spacing: 0.04em;
}

[dir="rtl"] .hero-meta-item a,
[dir="rtl"] .hero-meta-item span {
  font-family: "PingAR+LT", "Poppins", sans-serif;
  font-size: 12px;
}

[dir="rtl"] .contact-body {
  grid-template-columns: 1fr 340px;
}

[dir="rtl"] .contact-form-col {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  order: 1;
}

[dir="rtl"] .contact-sidebar {
  order: 2;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-left: none;
}

[dir="rtl"] .sidebar-label {
  text-align: right;
  letter-spacing: 0.05em;
  font-family: "PingAR+LT", "Poppins", sans-serif;
}

[dir="rtl"] .wpcf7-form label {
  text-align: right;
  letter-spacing: 0.04em;
  font-family: "PingAR+LT", "Poppins", sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

[dir="rtl"] .wpcf7-form input[type="text"],
[dir="rtl"] .wpcf7-form input[type="email"],
[dir="rtl"] .wpcf7-form input[type="tel"],
[dir="rtl"] .wpcf7-form textarea {
  text-align: right;
  direction: rtl;
  font-family: "PingAR+LT", "Poppins", sans-serif;
  font-size: 18px;
  color: #ffffff;
}

[dir="rtl"] .wpcf7-form input[type="submit"] {
  align-self: flex-end;
  font-family: inherit;
  letter-spacing: 0.06em;
  font-size: 10px;
}

[dir="rtl"] .wpcf7-not-valid-tip {
  flex-direction: row-reverse;
  text-align: right;
  font-family: inherit;
}

[dir="rtl"] .wpcf7-response-output {
  flex-direction: row-reverse;
  text-align: right;
  font-family: inherit;
}

[dir="rtl"] .contact-socials {
  direction: rtl;
}

[dir="rtl"] .social-btn {
  flex-direction: row-reverse;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0;
}

[dir="rtl"] .map-tab {
  font-family: inherit;
  letter-spacing: 0;
  font-size: 10px;
}

[dir="rtl"] .map-address {
  text-align: right;
  font-family: inherit;
}

[dir="rtl"] .map-remote {
  font-family: inherit;
}

/* ══ RESPONSIVE ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .contact-hero-meta {
    width: 100%;
  }

  .hero-meta-item { flex: 1; }

  [dir="rtl"] .contact-hero-inner {
    flex-direction: column;
    align-items: flex-end;
  }
}

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

  .contact-form-col {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 36px 6vw 48px;
  }

  .contact-sidebar {
    border-top: none;
  }

  .sidebar-block {
    padding: 24px 6vw;
  }

  .wpcf7-form .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  [dir="rtl"] .contact-body {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .contact-form-col {
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    order: 1;
  }

  [dir="rtl"] .contact-sidebar {
    order: 2;
  }
}

@media (max-width: 600px) {
  .contact-hero-bar {
    padding: 40px 6vw 28px;
  }

  .contact-hero-meta {
    flex-direction: column;
    border-radius: 10px;
  }

  .hero-meta-sep {
    width: 100%;
    height: 1px;
  }

  .contact-socials {
    grid-template-columns: 1fr 1fr;
  }

  [dir="rtl"] .contact-hero-meta {
    flex-direction: column;
  }
}
