/* =============================================
   Ping Source Global Inc — Main Stylesheet
   ============================================= */

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

:root {
  --blue-dark: #0a2463;
  --blue-mid: #1e3a8a;
  --blue: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-pale: #dbeafe;
  --green: #22c55e;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
  padding: 10px 1rem;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-cta {
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: -0.2px;
  transition: background 0.2s;
}
.topbar-cta:hover { background: #16a34a; }
.topbar-avail { color: #bfdbfe; font-size: 12px; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #0a2463 0%, #1e3a8a 55%, #1d4ed8 100%);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; text-align: center; }

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}
.logo-mark {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 14px;
  color: #fff; letter-spacing: 0.5px;
}
.logo-mark.sm { width: 38px; height: 38px; font-size: 12px; }
.logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 18px; color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px; color: #bfdbfe;
  margin-bottom: 1.25rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 .highlight { color: #60a5fa; }
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: #bfdbfe;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2rem;
}
.prov-chip {
  background: rgba(255,255,255,0.95);
  color: #1e3a8a;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.prov-chip:hover { transform: translateY(-2px); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #e0f2fe;
  font-weight: 500;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--white);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  flex: 1 1 220px;
  max-width: 280px;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border: 2px solid var(--blue-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 18px; color: var(--blue);
}
.step-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 0.5rem;
}
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.step-arrow {
  font-size: 24px; color: #93c5fd;
  flex-shrink: 0; margin: 0 4px;
}
@media(max-width: 600px) { .step-arrow { transform: rotate(90deg); } }

/* ---- FORM SECTION ---- */
.form-section { padding: 4rem 0; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media(max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
  .sidebar-col { order: -1; }
}

/* Form Card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-card-header { margin-bottom: 1.75rem; }
.form-card-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 0.4rem;
}
.form-card-header p { font-size: 14px; color: var(--text-muted); }

.field-label {
  font-size: 13px; font-weight: 600;
  color: #374151; margin-bottom: 0.75rem;
}
.issue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.issue-btn {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.issue-btn:hover { border-color: #93c5fd; background: #f0f6ff; }
.issue-btn.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

.field-group {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 1rem;
}
.field-group label {
  font-size: 13px; font-weight: 600; color: #374151;
}
.req { color: #ef4444; }
.field-group input,
.field-group select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.field-group input:focus,
.field-group select:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.field-group input.error,
.field-group select.error { border-color: #ef4444; }
.field-error {
  font-size: 12px; color: #ef4444; display: none;
}
.field-error.show { display: block; }
.field-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 16px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.2px;
  margin-top: 0.5rem;
}
.submit-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Success Box */
.success-box {
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon {
  width: 60px; height: 60px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 1.25rem;
}
.success-box h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #15803d; margin-bottom: 0.5rem;
}
.success-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 1rem; }
.success-phone {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--blue); text-decoration: none;
  letter-spacing: -0.5px;
}
.success-phone:hover { color: var(--blue-dark); }

/* ---- SIDEBAR ---- */
.call-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.call-label { font-size: 13px; color: #bfdbfe; margin-bottom: 0.5rem; }
.call-number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 30px; font-weight: 800;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.5px; margin-bottom: 1rem;
  transition: color 0.2s;
}
.call-number:hover { color: #bfdbfe; }
.call-avail {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px; padding: 5px 14px;
  font-size: 13px; color: #e0f2fe;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.issues-card, .providers-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.issues-card h3, .providers-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 1rem;
}
.issues-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.issues-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: #374151;
}
.prov-list {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.prov-list span {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---- WHY US ---- */
.why-section {
  background: var(--blue-dark);
  padding: 4rem 0;
}
.why-section .section-eyebrow { color: #60a5fa; }
.why-section .section-title { color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.why-icon { font-size: 28px; margin-bottom: 1rem; }
.why-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #fff; margin-bottom: 0.5rem;
}
.why-card p { font-size: 14px; color: #93c5fd; line-height: 1.6; }

/* ---- FOOTER ---- */
.footer {
  background: #080f1f;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media(max-width: 680px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.footer-brand .logo-mark { background: rgba(255,255,255,0.1); font-size: 11px; }
.footer-brand .logo-name { font-size: 15px; color: #e2e8f0; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 1rem; }
.footer-phone {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #60a5fa; text-decoration: none; letter-spacing: -0.3px;
}
.footer-phone:hover { color: #93c5fd; }
.footer-links h4, .footer-providers h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #e2e8f0; margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #60a5fa; }
.footer-providers p { font-size: 13px; line-height: 1.9; }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 12px; margin-bottom: 0.75rem; }
.footer-bottom a { color: #60a5fa; text-decoration: none; }
.disclaimer {
  font-size: 11px; color: #475569; line-height: 1.7; max-width: 680px;
  margin: 0 auto;
}

/* ---- RESPONSIVE ---- */
@media(max-width: 480px) {
  .issue-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: 26px; }
  .steps-row { flex-direction: column; align-items: stretch; }
  .step-card { max-width: 100%; }
  .step-arrow { text-align: center; font-size: 20px; }
}
