/* ========================================
   CONTACT SECTION BASE
======================================== */
.contact-section {
  position: relative;
  /* CHANGED: 100px is now 40px */
  padding: 5px 5vw 120px;
  background: radial-gradient(circle at bottom, #0a0f2a 0%, #020617 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ========================================
   RIBBON HEADER (Inherited style)
======================================== */
.contact-header-wrap {
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
}

.contact-ribbon-title {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
}

.contact-ribbon-accent {
  position: relative;
  display: inline-block;
}

.contact-ribbon-accent::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #facc15);
  opacity: 0.9;
}

/* ========================================
   THE OVERLAPPING LAYOUT
======================================== */
.contact-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* LEFT IMAGE BLOCK */
.contact-image-wrapper {
  flex: 0 0 60%; /* Takes up 60% of the width */
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 1;
}

.contact-img {
  width: 100%;
  height: 120%; /* Extra height to allow for the JS parallax scroll */
  object-fit: cover;
  position: absolute;
  top: -10%;
  left: 0;
  will-change: transform;
}

/* RIGHT CARD BLOCK */
.contact-card {
  flex: 0 0 50%; /* Takes up 50% of the width */
  /* This negative margin pulls it left, creating the premium overlap! */
  margin-left: -10%; 
  z-index: 5;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
}

.contact-card h2 {
  color: #facc15;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================
   FORM STYLING
======================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Glow effect when user types */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: #f97316;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.contact-btn {
  width: 100%;
  padding: 1.2rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #070707;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}

.contact-response-msg {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #67e2ae; /* Success green */
  min-height: 20px;
}

/* ========================================
   MOBILE RESPONSIVENESS
======================================== */
@media (max-width: 1024px) {
  .contact-layout {
    flex-direction: column;
  }
  .contact-image-wrapper {
    width: 100%;
    height: 400px;
  }
  .contact-card {
    width: 90%;
    margin-left: 0;
    margin-top: -80px; /* Pulls the card UP to overlap the bottom of the image */
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-card {
    width: 95%;
    padding: 2rem 1.5rem;
  }
}