/* -----------------------------------
   SPRYLIFE MEDICAL CENTRE — CONTACT PAGE
   Version: 2.1 (Final Professional Consistency)
   Requires: style.css, head.css for variables and base styles.
----------------------------------- */

/* BANNER */
.banner {
  position: relative;
  /* ACTION: Replace 'images/banner-contact.jpg' with your actual image path */
  background: url('../images/contact.png') center 15% /cover no-repeat;
  color: var(--white);
  padding: 8rem 0 8rem; /* Consistent padding */
  text-align: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  /* Lighter Blue Gradient to match other pages */
  background: linear-gradient(135deg, rgba(25, 148, 209, 0.70) 0%, rgba(15, 23, 42, 0.40) 100%); 
}

.banner-inner {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

.banner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.banner p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  color: var(--white);
}

/* CONTACT INFO SECTION */
.contact-info {
  padding: 6rem 0;
  background: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.info-box.in-view {
  opacity: 1;
  transform: translateY(0);
}

.info-box h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.info-box p {
  color: var(--text-body);
  line-height: 1.6;
}

/* MAP + FORM SECTION */
.map-contact {
  background: var(--white); /* White background for clean separation */
  padding: 6rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.map-box iframe {
  width: 100%;
  min-height: 450px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.contact-form.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contact-form h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-heading);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  color: var(--text-heading);
  background: var(--white);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(25, 148, 209, 0.1);
}

button[type="submit"] {
  /* Styled to match the primary buttons on the home page */
  background: var(--color-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-toggle {
  display: none;
}