.contact-page {
  --contact-green: #b7ef20;
  background: #050505;
  color: #f4f4f1;
}

body.rtl-lang.contact-page .contact-info-panel,
body.rtl-lang.contact-page .contact-form-panel {
  text-align: right;
}

.contact-page .site-header { background: linear-gradient(180deg, rgba(2, 2, 2, .96), rgba(2, 2, 2, .68) 72%, transparent); }
.contact-page .nav-item.active { color: var(--contact-green); }

/* --- Hero ------------------------------------------------------- */
.contact-hero {
  position: relative;
  min-height: 68svh;
  overflow: hidden;
  padding: 168px 0 90px;
  text-align: center;
  background: #020202;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-7svh);
}

.contact-hero-kicker { margin-bottom: 1.25rem; }

.split-text-word,
.split-text-char { display: inline-block; }
.split-text-word { white-space: nowrap; }
.split-text-char { will-change: transform, opacity; }

.contact-hero-title {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-size: 62px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.contact-hero-copy {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

/* A small pill that breathes gently, reading as "someone is here". */
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 20px 10px 16px;
  border: 1px solid rgba(183, 239, 32, 0.28);
  border-radius: 999px;
  background: rgba(183, 239, 32, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--contact-green);
  box-shadow: 0 0 0 0 rgba(183, 239, 32, 0.55);
  animation: contactPulseDot 2.2s ease-out infinite;
}

@keyframes contactPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(183, 239, 32, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(183, 239, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 239, 32, 0); }
}

.contact-scroll-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  color: var(--accent-lime);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-scroll-link::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--accent-lime), transparent);
  animation: contactScrollCue 1.8s ease-in-out infinite;
}

@keyframes contactScrollCue {
  0%, 100% { opacity: .32; transform: scaleY(.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* --- Info + Form section ----------------------------------------- */
.contact-main-section {
  position: relative;
  padding: 40px 0 150px;
  overflow: hidden;
  isolation: isolate;
}

.contact-main-section .contact-x-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(60vw, 900px);
  height: min(60vw, 900px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-main-section .contact-x-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.35;
  animation: contactXDrift 34s linear infinite;
  filter: drop-shadow(0 0 24px rgba(183, 239, 32, 0.08));
}

@keyframes contactXDrift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(1); }
}

.contact-main-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-info-panel,
.contact-form-panel {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.contact-info-title {
  margin: 18px 0 20px;
  font: 400 34px var(--font-heading);
  line-height: 1.15;
}

.contact-info-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-info-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 44px;
}

.contact-info-items li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(183, 239, 32, 0.25);
  background: rgba(183, 239, 32, 0.06);
  color: var(--contact-green);
  transition: border-color .25s, background-color .25s, transform .25s;
}

.contact-info-items li:hover .contact-info-icon {
  border-color: var(--contact-green);
  background: rgba(183, 239, 32, 0.12);
  transform: translateY(-2px);
}

.contact-info-label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.contact-info-value {
  display: block;
  font-size: 17px;
  color: #ffffff;
  text-decoration: none;
}

.contact-info-link[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-info-link:hover { color: var(--contact-green); }

.contact-social-links { margin-top: 4px; }

/* --- Form card ---------------------------------------------------- */
.contact-form-panel {
  padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: .5rem;
}

.contact-form-subtitle {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.contact-field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #ffffff;
  padding: .85rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(173, 205, 1, 0.12);
}

.contact-field textarea { resize: vertical; }

.contact-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: .5rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s, color .2s;
}

#contact-page-form-success h3 { margin-top: 0; }

/* --- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .contact-availability-dot { animation: none; }
  .contact-main-section .contact-x-bg img { animation: none; }
  .contact-scroll-link::after { animation: none !important; }
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 1023px) {
  .contact-main-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-main-section .contact-x-bg { width: 120vw; height: 120vw; opacity: .8; }
}

@media (max-width: 767px) {
  .contact-hero { min-height: 58svh; padding: 126px 0 60px; }
  .contact-hero-inner { transform: translateY(-4svh); }
  .contact-hero-title { font-size: clamp(36px, 11vw, 48px); }
  .contact-hero-copy { font-size: 15px; }
  .contact-form-panel { padding: 24px; }
  .contact-info-title { font-size: 28px; }
}
