/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* LAYOUT FIX: PAGE SHOULD FILL SCREEN */
html, body {
  height: 100%;
}

body {
  background: #101010;
  color: #e6e6e6;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAV */
.nav {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  background: rgba(22,22,22,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.nav-back {
  color: #39d98a;
  text-decoration: none;
  font-weight: 600;
}

.nav-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* HERO SECTION */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.03), #101010 70%);
}

.hero-inner h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

.hero-inner p {
  font-size: 1.05rem;
  color: #bfbfbf;
  margin-top: 8px;
}

/* MAIN CONTACT WRAPPER - IMPROVED PROPORTIONS */
.contact-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px; /* Reduced from 1400px for better proportions */
  margin: 40px auto;
  padding: 0 40px;
  gap: 60px; /* Increased gap for better separation */
}

/* LEFT SIDE (FORM) - BETTER PROPORTIONS */
.contact-form {
  width: 55%; /* Slightly larger than half */
  max-width: 550px;
  padding: 30px;
  background: rgba(30, 30, 30, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-form h2 {
  color: #39d98a;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap for better spacing */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: #bfbfbf;
  font-weight: 500;
}

input, textarea {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #39d98a;
  box-shadow: 0 0 0 2px rgba(57, 217, 138, 0.2);
}

input::placeholder, textarea::placeholder {
  color: #666;
}

textarea {
  height: 140px;
  resize: none;
}

button {
  background: #39d98a;
  color: #000;
  font-weight: 700;
  padding: 16px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 10px;
}

button:hover {
  background: #2bc47a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(57, 217, 138, 0.3);
}

/* RIGHT SIDE (MAP IMAGE - SMALLER PROPORTIONS) */
.contact-map {
  width: 45%; /* Slightly smaller than half */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.map-image {
  width: 100%;
  max-width: 500px; /* Limit maximum size */
  aspect-ratio: 4/3; /* Better proportion for maps */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0f0f0f;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fallback if image doesn't load */
.map-image:before {
  content: "Map Image Loading...";
  color: #666;
  display: none;
}

.map-image img[src=""]:before {
  content: "Map not available";
  display: block;
  color: #666;
  text-align: center;
  padding: 40px;
}

/* FOOTER (ALWAYS AT BOTTOM) */
.footer {
  padding: 40px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* MOBILE */
@media(max-width: 900px) {
  .contact-container {
    flex-direction: column;
    padding: 0 20px;
    gap: 40px;
  }

  .contact-form,
  .contact-map {
    width: 100%;
    max-width: 100%;
  }

  .contact-form {
    padding: 25px;
  }

  .map-image {
    max-width: 100%;
    aspect-ratio: 16/9;
  }
}