/* =========================================
   CONTACT US STYLES (BRAND COLORS)
========================================= */

/* Kills horizontal scrollbar globally */
html, body {
  overflow-x: hidden;
}

.contact-section {
  background-color: #11676d; /* FIXED: Single # for Brand Teal */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff; /* Changed base text to white */
  padding-bottom: 5rem;
  padding-top: 0 !important; /* KILLS THE GREEN GAP */
}
/* ... keep your .contact-header code here as normal ... */
.contact-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px 2rem 20px;
}

.contact-header h1 {
  font-size: 2.5rem;
  color: #fce03b; /* Changed to Brand Yellow */
  font-weight: 600;
  margin: 0;
}

/* --- Map --- */
.map-container {
  width: 100vw; 
  max-width: 100%;
  margin-top: 0 !important; /* SNAPS MAP TO THE PHOTO */
  margin-bottom: 4rem;
  line-height: 0; 
}

.map-container iframe {
  width: 100% !important;
  display: block;
}

/* --- Split Layout --- */
.contact-content-split {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

/* --- Left Column: Form --- */
.contact-form-col {
  flex: 1.2;
  width: 100%;
}

.form-subhead {
  font-size: 1rem;
  color: #e0f2f1; /* Softened white-teal */
  margin-bottom: 1.5rem;
}

.dark-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* Form Fields - Semi-transparent with white borders */
.dark-form input,
.dark-form select,
.dark-form textarea {
  box-sizing: border-box; 
  width: 100%;
  background-color: rgba(0, 0, 0, 0.15); /* Dark transparent overlay */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Thin white border */
  border-radius: 4px;
  padding: 14px 15px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.dark-form input::placeholder,
.dark-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.dark-form select {
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.dark-form select option {
  color: #333333; /* Keeps dropdown readable when clicked */
  background-color: #ffffff;
}

.dark-form input:focus,
.dark-form select:focus,
.dark-form textarea:focus {
  outline: none;
  border-color: #fce03b; /* Brand Yellow outline on focus */
  background-color: rgba(0, 0, 0, 0.25);
}

.dark-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn-yellow {
  background-color: #fce03b; /* Brand Yellow */
  color: #11676d; /* Teal text */
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn-yellow:hover {
  background-color: #ffffff; /* Turns white on hover */
  transform: translateY(-2px);
}

/* --- Right Column: Info & Social --- */
.contact-info-col {
  flex: 1;
}

.address-block h2,
.social-block h2 {
  font-size: 1.8rem;
  color: #fce03b; /* Brand Yellow */
  font-weight: 400;
  margin-bottom: 1rem;
}

.address-block h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.address-block p {
  color: #e0f2f1; /* Softened white-teal */
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.social-squares {
  display: flex;
  gap: 12px; /* Matches the spacing of your other pages */
}

.social-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff; /* Solid White Box */
  color: #11676d; /* Teal Icon */
  border-radius: 8px; /* Modern Rounded Squares */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* Soft drop shadow */
}

/* Resizes the icon to fit perfectly in the 40px box */
.social-box .social-icon {
  font-size: 1.2rem;
  margin-bottom: 0; 
}

/* Hides the text labels so it's just a clean icon */
.social-box span {
  display: none; 
}

/* Hover Effect: Turns Yellow and floats up */
.social-box:hover {
  background-color: #fce03b; 
  color: #11676d; 
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 850px) {
  .contact-content-split {
    flex-direction: column;
    gap: 3.5rem;
  }
}
/* =========================================
   FOOTER STYLES
========================================= */

/* 1. Makes the 'Back to Top' button glide smoothly */
html {
  scroll-behavior: smooth; 
}

/* 2. Main Footer Wrapper */
.site-footer {
  background-color: #ffffff; /* Clean white background */
  padding: 50px 20px 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 3. Back to Top Link */
.back-to-top {
  display: inline-block;
  text-decoration: none;
  color: #9aa7b1; /* Soft grey-blue matching your image */
  font-size: 1.05rem;
  margin-bottom: 30px; /* Space between the link and copyright */
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Turns the text Teal and lifts it slightly when hovered */
.back-to-top:hover {
  color: #11676d; 
  transform: translateY(-3px);
}

/* 4. Copyright Text */
.copyright-text {
  color: #9aa7b1; /* Soft grey-blue matching your image */
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.5px;
}

/* =========================================
   UNIVERSAL SOCIAL ICONS OVERRIDE
   (Forces bottom footer icons to match)
========================================= */
.social-links a,
.social-icons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background-color: #ffffff !important; /* Solid White Box */
  color: #11676d !important; /* Teal Icon */
  border-radius: 8px !important; /* Modern Rounded Squares */
  text-decoration: none !important;
  font-size: 1.2rem !important;
  margin: 0 6px !important; /* Keeps them spaced nicely */
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important; 
}

/* Hover Effect: Turns Brand Yellow and floats up */
.social-links a:hover,
.social-icons a:hover {
  background-color: #fce03b !important; 
  color: #11676d !important; 
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
}
/* =========================================
   FIX: CONTACT US HERO (Neutral Colors, Height & Parallax)
========================================= */
.contact-hero,
.hero-section {
  /* 1. Makes the banner taller so the room is fully visible! */
  min-height: 90vh !important; 
  padding: 6rem 2rem;

  /* 2. Replaces teal with a clean, neutral dark shadow so the text pops */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://i.ibb.co/9kvrD2RW/HARNISH-JI-STUDY-ROOM-OP4-VIEW2.png') !important;
  
  /* 3. THE MAGIC: Adds the 3D scrolling animation! */
  background-attachment: fixed !important; 
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  
  /* Keeps the text dead-center */
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
}

/* Forcefully hides any old teal or blurry color layers */
.contact-hero::before,
.hero-section::before {
  display: none !important; 
}
/* =========================================
   MOBILE FIX: CONTACT HERO (BALANCED BANNER)
========================================= */
@media (max-width: 768px) {
  .contact-hero,
  .hero-section {
    /* 1. Removes the black background */
    background-color: transparent !important; 
    
    /* 2. Creates a perfectly balanced landscape box (removes the empty gap) */
    height: 45vh !important; 
    min-height: 300px !important;
    padding: 80px 20px 20px 20px !important; 
    
    /* 3. Fills the new box with the image, reducing side-cropping */
    background-size: cover !important; 
    background-position: center center !important;
    
    /* 4. Restores your parallax animation! */
    background-attachment: fixed !important; 
    
    /* 5. Perfectly centers the text back over the image */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .contact-hero h1,
  .contact-header h1 { 
    font-size: 2.4rem !important; 
    margin-top: 20px !important; /* Nudges text down slightly to clear the navbar */
  }
}