/* ===== Contact Page Styles (drop into styles/index.css or styles/contact.css) ===== */

/* Layout */
:root {
  --container-w: 1100px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --shadow-md: 0 10px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --text: #111827;
  --white: #ffffff;
}

body { color: var(--text); }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Section spacing */
.contact-section { padding: var(--space-10) 0; background: var(--gray-50); }

/* Header block */
.section-header { max-width: 760px; margin: 0 auto var(--space-8); }
.section-header .subtitle {
  display: inline-block;
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
.section-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- NEW: Contact Info Cards (Sales / Support) ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.contact-info-grid > div {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.contact-info-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.contact-info-grid h3 {
  margin: 0 0 var(--space-2);
}
.contact-info-grid p {
  margin: 0 0 var(--space-1);
  color: var(--gray-600);
  font-size: 0.98rem;
}
.contact-info-grid a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.contact-info-grid a:hover {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

/* ---------- NEW: Location Box ---------- */
.location-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-8);
}
.location-box h3 {
  margin: 0 0 var(--space-2);
}
.location-box p { margin: 0; color: var(--gray-700); }

/* Form wrapper */
.contact-form-wrapper { max-width: 820px; margin: var(--space-8) auto 0; }

/* Card look for the form */
#contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 32px);
}

/* Grid rows inside the form */
.contact-form-wrapper .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .contact-form-wrapper .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Inputs / selects / textarea */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  outline: none;
  appearance: none;
}
#contact-form textarea { resize: vertical; min-height: 140px; }

/* Placeholder color */
#contact-form ::placeholder { color: #9ca3af; }

/* Focus state (ring-like) */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Submit button */
#contact-form button[type="submit"] {
  width: 100%;
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, transform .06s ease;
}
#contact-form button[type="submit"]:hover { background: var(--blue-700); }
#contact-form button[type="submit"]:active { transform: translateY(1px); }

/* Status text */
#form-status {
  margin-top: var(--space-2);
  text-align: center;
  font-size: .9rem;
  color: var(--gray-600);
}

/* Utility helpers */
.text-center { text-align: center; }
.text-gray-600 { color: var(--gray-600); }
.max-w-4xl { max-width: 56rem; }
