/* Contact Us Section */
.contact-section {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-header {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.contact-subtitle {
  color: #4b4b4b;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 375px);
  gap: 2rem;
  margin: 0 auto;
  padding: 0 1rem;
  /* ensure cards stretch to equal height */
  align-items: stretch;
  justify-content: center;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 250px);
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 250px;
  }
}

/* Shared card styles */
.info-card,
.form-card {
  background: rgb(251, 251, 247);
  border: 3px solid;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.7);
  padding: 2rem;
  width: 100%;
  height: 100%;
  border-color: #4b4b4b;
}

/* Headings inside cards */
.info-card h2,
.form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #5d7948;
}

/* Contact info items */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
  color: black;
}

.info-item i {
  font-size: 1.75rem;
  color: black;
  margin-top: 0.2rem;
}

.info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: black;
}

/* Contact form */
.contact-form label {
  display: block;
  font-weight: 600;
  color: black;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid black;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1.5rem;
  width: 100%;
  background: #B2D2DF;
  color: black;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #e5ebee;
}


/* CONTACT CARDS — match Core Beliefs styling & interactivity */
.info-card,
.form-card {
  background: var(--white);
  border: 2px solid transparent;
  border: 4px solid #660c21; /* same accent as belief cards */
  
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* subtle top glow just like beliefs */
.info-card::before,
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0,91,150,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.info-card:hover,
.form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #660c21;
}

/* headings + text tone aligned with belief cards */
.info-card h2,
.form-card h2 {
  font-family: 'Montserrat', sans-serif;
  color: #2c3e50;
  margin-top: 0.25rem;
}

.info-item i {
  color: var(--color-blue);
}
.info-item,
.contact-form label {
  color: #5a6c7d;
}
.info-item strong {
  color: #2c3e50;
}

/* form controls + CTA button consistent with site tokens */
.contact-form input,
.contact-form textarea {
  border: 1px solid #d0d7de;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0,91,150,.15);
}

.contact-form button {
  background: var(--color-blue);
  color: var(--white);
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.contact-form button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* CONTACT: spacing + restore usual interactivity */

/* 1) Make the cards further apart + add space before the footer */
.contact-grid {
  gap: clamp(2.5rem, 4vw, 3.5rem);           /* wider column gap */
  margin-bottom: clamp(3rem, 6vw, 6rem);     /* extra space above footer */
}

/* 3) Restore the button’s normal hover (no scale/lift) */
.contact-form button {
  transition: background .2s;                /* back to simple color fade */
}
.contact-form button:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* === CONTACT GRID: make cards larger on smaller screens, fluid across devices === */

/* Mobile-first: single big card per row that uses most of the viewport width */
.contact-grid {
  /* Each card can grow up to 560px, but on small screens it expands to ~92vw */
  grid-template-columns: repeat(auto-fit, minmax(clamp(320px, 92vw, 560px), 1fr));
  justify-content: center; /* keep centered when only one column */
}

/* iPad portrait & small tablets: two generous columns */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
  }
}

/* iPad landscape / larger tablets and small laptops: even roomier two columns */
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
  }
}

/* Slightly larger padding and comfy controls that scale fluidly */
.info-card,
.form-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.info-card h2,
.form-card h2 {
  font-size: clamp(1.6rem, 5.2vw, 2rem);
}

/* Inputs feel a touch bigger on small screens */
.contact-form input,
.contact-form textarea {
  font-size: clamp(1rem, 3.4vw, 1.1rem);
  padding: clamp(0.9rem, 3vw, 1.1rem);
}

.contact-form button {
  font-size: clamp(1.05rem, 3.6vw, 1.15rem);
  padding: clamp(0.9rem, 3vw, 1.1rem);
}
