/* Custom Fonts and Variables (Matching Homepage) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

:root {
  /* Matching Homepage Vibrant Color Palette */
  --primary-color: #5a189a; /* Deep Purple */
  --secondary-color: #9d4edd; /* Medium Purple */
  --accent-color: #ffc300; /* Bright Gold/Yellow for pop */
  --text-color: #2c2c2c;
  --light-text: #f4f4f4;
  --bg-color: #ffffff;
  --dark-bg: #1a0033; /* Very Dark Purple */
  --font-family: "Poppins", sans-serif;
  --transition-speed: 0.4s;
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 15px 45px rgba(90, 24, 154, 0.3);
}

/* Global Reset and Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-weight: 800;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

section {
  padding: 80px 5%;
  text-align: center;
}

/* CTA Button Styling (Matching Homepage) */
.cta-button {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--light-text);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-top: 25px;
  box-shadow: 0 8px 25px rgba(90, 24, 154, 0.5);
  transition: all var(--transition-speed) ease-in-out;
  border: 2px solid transparent;
}

.cta-button:hover {
  background: var(--light-text);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(90, 24, 154, 0.7);
}

/* -------------------
   1. Navbar (Matching Homepage)
   ------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: var(--bg-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.navbar nav ul {
  list-style: none;
  display: flex;
}

.navbar nav ul li {
  margin-left: 35px;
}

.navbar nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

/* Login Button Styling (Matching Homepage) */
.login-button {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin: 0;
  box-shadow: 0 4px 15px rgba(90, 24, 154, 0.3);
}

/* -------------------
   2. Contact Hero Section
   ------------------- */
.contact-hero {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 100px 5%;
  padding-top: 150px; /* Space from navbar */
  text-align: center;
}

.contact-hero h1 {
  font-size: 3.5rem;
  color: var(--accent-color);
}

.contact-hero p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* -------------------
   3. Main Contact Section (Form + Map)
   ------------------- */
.main-contact-section {
  background-color: #f7f7ff;
  padding: 100px 5%;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}

/* Contact Card Styling (Matching Product Card aesthetic) */
.contact-form-card,
.map-container-card {
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-dark);
  border-top: 5px solid var(--secondary-color);
}

.contact-form-card h2,
.map-container-card h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed),
    box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(90, 24, 154, 0.3);
}

textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  font-size: 1.1rem;
}

/* Map Styles */
.map-wrapper {
  position: relative;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-details p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* -------------------
   4. Footer (Matching Homepage)
   ------------------- */
.footer {
  background-color: #111111;
  color: var(--light-text);
  padding: 50px 5%;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.footer-logo h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #222;
  color: var(--light-text);
  outline: none;
}

.footer-newsletter button {
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: var(--dark-bg);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .map-wrapper {
    padding-bottom: 100%; /* Make map square on smaller screens */
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    margin-bottom: 30px;
  }
}

@media (max-width: 500px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  .contact-form-card,
  .map-container-card {
    padding: 25px;
  }
}