/* ==========================================================================
   Project: Fitnumbers Outsourcing
   Page: Contact Page
   Theme: Professional Corporate (Navy, Gold, Slate)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --color-primary: #1a2b3c;
  /* Navy */
  --color-accent: #d4af37;
  /* Gold */

  /* Neutrals */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #f8f9fa;
  /* Slate/White mix */
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-input-bg: #fcfcfc;

  /* Elevation */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 20px rgba(212, 175, 55, 0.3);

  /* Structure & Animation */
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --container-width: 1150px;
}

/* Global Box Sizing Reset - Essential for Grids */
*,
*::before,
*::after {
  box-sizing: border-box;
}

main {
  background-color: var(--color-white);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Crisp text on Mac */
}

/* --------------------------------------------------------------------------
   2. HEADER & HERO SECTION
   -------------------------------------------------------------------------- */
#contact-details {
  min-height: auto;
  padding: 80px 5%;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-light) 100%);
}

.headingMain {
  margin-bottom: 60px;
  text-align: center;
}

.headingMain .heading1 {
  display: block;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.headingMain p {
  max-width: 750px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   3. CONTACT GRID LAYOUT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  /* Ratio: Info vs Form */
  gap: 50px;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Left Column: Contact Info Card --- */
.contact-info {
  padding: 40px;
  background: var(--color-white);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.contact-info strong.heading2 {
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--color-text);
  font-size: 1.1rem;
}

/* Email Link Styling */
.contact-info p a[href^="mailto:"] {
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info p a[href^="mailto:"]:hover {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

/* Social Media Icons */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  /* Centered vertically */
  justify-content: center;
  /* Centered horizontally */
  width: 50px;
  height: 50px;
  background-color: #f0f2f5;
  color: var(--color-primary);
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-5px);
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-hover);
}

/* --- Right Column: Form Wrapper --- */
.contact-form-wrapper {
  padding: 45px;
  background: var(--color-white);
  border-top: 6px solid var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.contact-form-wrapper strong.heading2 {
  display: block;
  margin-bottom: 25px;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.form label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form input:focus,
.form textarea:focus {
  background: var(--color-white);
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

#form-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

#form-submit-btn:hover {
  transform: translateY(-2px);
  background-color: #2c4157;
  /* Slightly lighter navy */
  box-shadow: 0 5px 15px rgba(26, 43, 60, 0.2);
}

/* --------------------------------------------------------------------------
   4. LOCATIONS SECTION
   -------------------------------------------------------------------------- */
#physical-location {
  padding: 80px 5%;
  background-color: var(--color-white);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: var(--container-width);
  margin: 40px auto 0;
}

.address-card,
.map-embed {
  padding: 35px;
  background: var(--color-bg-light);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.map-embed {
  border-left-color: var(--color-accent);
}

.address-card h3,
.map-embed h3 {
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
}

.address-card address p {
  margin-bottom: 8px;
  color: var(--color-text-light);
  font-style: normal;
  line-height: 1.6;
}

.placeholder-map iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  filter: grayscale(0.2);
  /* Muted map style */
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */

/* Tablet & Small Desktop (max-width: 992px) */
@media screen and (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    /* Stack logic */
    gap: 40px;
  }
}

/* Mobile (max-width: 600px) */
@media screen and (max-width: 600px) {
  #contact-details {
    padding: 50px 4%;
  }

  .headingMain {
    margin-bottom: 40px;
  }

  /* Center alignment for mobile aesthetics */
  .contact-info,
  .contact-form-wrapper {
    padding: 30px 20px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Adjust borders for vertical stacking */
  .address-card,
  .map-embed {
    text-align: center;
    border-left: none;
    border-top: 5px solid var(--color-primary);
  }

  .map-embed {
    border-top-color: var(--color-accent);
  }
}