/* ============================================================
   RCTX CONTACT PAGE — 5★ UX VERSION
   Clean, modern, accessible, mobile‑first, conversion‑focused
   ============================================================ */

/* ------------------------------------------------------------
   ROOT DESIGN TOKENS
------------------------------------------------------------ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;

  --border: #cbd5e1;
  --border-focus: #2563eb;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  --transition: all 0.25s ease;
}

/* ------------------------------------------------------------
   GLOBAL RESET
------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ------------------------------------------------------------
   HERO HEADER
------------------------------------------------------------ */
.hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  color: white;
  background: linear-gradient(-45deg, #0f172a, #1e3a8a, #2563eb, #3b82f6);
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
}

.hero .container {
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dbeafe;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-top: 1.2rem;
  color: #f1f5f9;
}

/* ------------------------------------------------------------
   CONTACT FORM SECTION
------------------------------------------------------------ */
.contact-form-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--bg-light);
}

.contact-form-section .container {
  max-width: 850px;
}

#contactForm {
  background: var(--bg-white);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

/* Inputs */
#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-main);
  transition: var(--transition);
  appearance: none;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

#contactForm textarea {
  resize: vertical;
  min-height: 140px;
}

/* Dropdown arrow */
.field:has(select) {
  position: relative;
}

.field:has(select)::after {
  content: "▼";
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* ------------------------------------------------------------
   BENEFITS GRID
------------------------------------------------------------ */
.contact-benefits {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.contact-benefits h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefits-grid article {
  background: var(--bg-light);
  padding: 2.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.benefits-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.benefits-grid h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.benefits-grid p {
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   LOCAL SEO TAGS
------------------------------------------------------------ */
.local-seo {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.local-seo h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.area-tags span {
  padding: 0.6rem 1.2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.area-tags span:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   FAQ ACCORDION
------------------------------------------------------------ */
.contact-faq {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.contact-faq h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
}

.contact-faq details {
  background: var(--bg-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-faq details[open] {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.contact-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-faq summary::after {
  content: "＋";
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.contact-faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--text-dim);
}

.contact-faq p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   CTA PANEL
------------------------------------------------------------ */
.contact-cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  color: white;
  background: linear-gradient(-45deg, #0f172a, #1e3a8a, #2563eb, #1d4ed8);
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
}

.contact-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-cta p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
}

/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.contact-cta .btn-primary {
  background: white;
  color: var(--primary-dark);
}

.contact-cta .btn-primary:hover {
  background: var(--primary-light);
}

/* ------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------ */
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #contactForm {
    padding: 1.75rem 1.25rem;
  }

  .benefits-grid article {
    padding: 1.75rem;
  }
}
