:root {
  --black: #231f20;
  --red: #ed1c24;
  --white: #ffffff;
  --gray-100: #2c2928;
  --gray-200: #3a3633;
  --glass: rgba(0, 0, 0, 0.55);
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #303335 0, #181a1c 35%, #111214 65%, #101113 100%);
  color: var(--white);
  line-height: 1.6;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  background: transparent;
}

.navbar-inner {
  width: min(1200px, 100% - 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--glass));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-line-1 {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-center {
  gap: 28px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 4px;
}

.nav-link-active {
  color: var(--white);
}

.nav-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin-inline: auto;
  height: 2px;
  width: 0;
  background: var(--white);
  opacity: 0.8;
  transition: width 0.25s ease;
}

.nav-link:hover .nav-underline,
.nav-link-active .nav-underline {
  width: 100%;
}

.video-count-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- CONTACT PAGE LAYOUT ---------- */
.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 32px;
  max-width: min(1200px, 100% - 40px);
  margin: 80px auto 80px;
}

@media (max-width: 900px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 60px 16px 60px;
  }
}

/* Left: form panel */
.contact-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.88)
  );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  padding: 32px 28px;
}

.contact-panel h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.contact-panel p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
}

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

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

.field-group label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.field-group input,
.field-group select,
.field-group textarea {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(17, 18, 20, 0.95);
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(237, 28, 36, 0.7);
}

.primary-btn {
  border-radius: 999px;
  border: none;
  padding: 12px 22px;
  font-size: 0.96rem;
  font-weight: 600;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  align-self: flex-start;
}

.contact-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- RIGHT PANEL: MOBILE-FRAME MAP + CARD ---------- */

.contact-map-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer mobile-frame container */
.contact-device-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 10px;
  border-radius: 32px;
  background: radial-gradient(circle at top, #4b5563, #020617);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.35);
}

/* Simulated device bezel */
.contact-device-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.7);
  pointer-events: none;
}

/* Top notch / sensor area */
.contact-device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #020617;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Inside the “phone” */
.contact-map-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* Map area *//* ---------- RIGHT PANEL: FULL MAP + GLASS CARD ---------- */
.contact-map-panel {
  position: relative;
  height: 420px; /* Fixed height for desktop */
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
}

/* Full-width map backdrop */
.contact-map-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-map-full {
  width: 100%;
  height: 100%;
  filter: saturate(0.7) contrast(0.9); /* Muted backdrop */
  border: 0;
}

/* Glass card - floating over map */
.contact-glass-card {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 28px 24px;
  width: 320px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #1f2937;
}

/* Card heading */
.contact-glass-card h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: #111827;
  text-align: center;
}

/* Clean stacked list */
.contact-glass-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-glass-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.contact-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--red);
}

.contact-glass-link {
  color: #1f2937;
  text-decoration: none;
  display: block;
}

.contact-glass-link:hover {
  color: var(--red);
}

/* ---------- MOBILE: Full-width glass card ---------- */
@media (max-width: 900px) {
  .contact-map-panel {
    height: 360px;
    order: -1; /* Map above form on mobile */
  }
  
  .contact-glass-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.32); /* More opaque */
    right: auto;
    top: auto;
    margin: 0 16px;
    padding: 24px 20px;
  }
  
  .contact-glass-card h2 {
    text-align: left;
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .contact-map-panel {
    height: 320px;
    margin-bottom: 24px;
  }
  
  .contact-glass-content {
    gap: 10px;
  }
  
  .contact-glass-item {
    font-size: 0.88rem;
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 20px 24px;
  background: rgba(0, 0, 0, 0.85);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 60px 16px 60px;
  }

  .contact-device-frame {
    max-width: 100%;
  }

  .contact-map-body {
    flex-direction: column;
    gap: 10px;
  }

  .contact-map-right {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding-inline: 18px;
    gap: 10px;
  }

  .nav-center {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .contact-map-card h2 {
    font-size: 1rem;
    letter-spacing: 0.14em;
  }

  .contact-address,
  .contact-lines p {
    font-size: 0.86rem;
  }

  .contact-map-right {
    flex-direction: column;
    gap: 6px;
  }
}
