/* ===================================================
   Geek Squad – Premium Dark Theme Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────── */
:root {
  /* Geek Squad brand palette */
  --gs-blue:          #0071CE;   /* Best Buy / GS signature blue */
  --gs-blue-light:    #1A8FE3;
  --gs-blue-glow:     rgba(0, 113, 206, 0.2);
  --gs-yellow:        #FFE000;   /* GS accent yellow */
  --gs-yellow-dim:    rgba(255, 224, 0, 0.12);

  /* Light background layers */
  --bg-root:          #F0F4F8;
  --bg-panel:         #E8EDF3;
  --bg-card:          #FFFFFF;
  --bg-card-solid:    #FFFFFF;
  --bg-input:         #F5F7FA;

  /* Text */
  --text-primary:     #1A2332;
  --text-secondary:   #4A5568;
  --text-muted:       #8896A6;

  /* Borders */
  --border-subtle:    rgba(0,0,0,0.08);
  --border-focus:     var(--gs-blue);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);
  --shadow-blue: 0 0 20px rgba(0,113,206,0.2);

  /* Motion */
  --ease:  cubic-bezier(0.25, 0.8, 0.25, 1);
  --trans: 0.3s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  /* Soft radial blue tint on light background */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,113,206,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(0,113,206,0.03) 0%, transparent 60%);
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ── Header ───────────────────────────────────────── */
header {
  background: linear-gradient(90deg, #0A1628 0%, #0D2040 60%, #0F2A55 100%);
  border-bottom: 2px solid var(--gs-blue);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
}

.header-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-section img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,113,206,0.5));
}

.logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

.logo-section span {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Animated security badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,113,206,0.15);
  border: 1px solid rgba(0,113,206,0.4);
  border-radius: 999px;
  padding: 7px 18px;
  transition: var(--trans);
}

.security-badge:hover {
  background: rgba(0,113,206,0.2);
  border-color: var(--gs-blue);
  box-shadow: var(--shadow-blue);
}

.security-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.85); opacity: 0.6; box-shadow: none; }
  50%       { transform: scale(1.25); opacity: 1;   box-shadow: 0 0 8px rgba(34,197,94,0.6); }
}

.security-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #22C55E;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── Hero Banner ──────────────────────────────────── */
.hero-banner {
  position: relative;
  padding: 72px 24px 60px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    url('GS_car_agent_for_blog_HEADER.jpg') center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: luminosity;
}

/* Glowing top line */
.hero-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gs-blue), var(--gs-yellow), var(--gs-blue), transparent);
  animation: shimmer-line 3s linear infinite;
}

@keyframes shimmer-line {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.4; }
}

.hero-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* Geek Squad badge above H1 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gs-yellow-dim);
  border: 1px solid rgba(255,224,0,0.3);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gs-yellow);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge svg { fill: var(--gs-yellow); }

.hero-container h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-container h1 span {
  background: linear-gradient(90deg, var(--gs-blue-light), var(--gs-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-container p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Main Grid ────────────────────────────────────── */
main {
  max-width: 1260px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Portal Card (Form) ───────────────────────────── */
.portal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--trans);
}

.portal-card:hover { box-shadow: var(--shadow-lg); }

.card-header {
  background: #F7FAFD;
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shield-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gs-blue-light);
}

.shield-indicator svg { fill: var(--gs-blue-light); }

/* Progress bar */
.progress-container {
  height: 3px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gs-blue), var(--gs-yellow));
  width: 5%;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 8px rgba(0,113,206,0.8);
}

/* Form body */
form { padding: 30px; }

.form-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title span {
  background: var(--gs-blue);
  color: #fff;
  font-size: 0.65rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,113,206,0.5);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group-full { grid-column: span 2; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label span { color: #FF6B6B; }

/* Inputs */
.form-control {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  padding: 11px 15px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
  background: var(--bg-input);
  transition: var(--trans);
  width: 100%;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--gs-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gs-blue-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B99B5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Radio group */
.radio-group { display: flex; gap: 20px; margin-top: 4px; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--trans);
}

.radio-option:hover { color: var(--text-primary); }

.radio-option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  background: var(--bg-input);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--trans);
}

.radio-option input[type="radio"]:checked {
  border-color: var(--gs-blue);
  background: var(--gs-blue);
  box-shadow: 0 0 8px rgba(0,113,206,0.5);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  display: block;
}

/* Terms checkbox */
.terms-container {
  margin-top: 28px;
  padding: 18px 20px;
  background: #F0F6FC;
  border: 1px dashed rgba(0,113,206,0.3);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.terms-container input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  background: var(--bg-input);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: var(--trans);
}

.terms-container input[type="checkbox"]:checked {
  border-color: var(--gs-blue);
  background: var(--gs-blue);
  box-shadow: 0 0 8px rgba(0,113,206,0.5);
}

.terms-container input[type="checkbox"]:checked::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.terms-container label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  cursor: pointer;
}

/* Submit Button */
.btn-submit {
  margin-top: 28px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(90deg, var(--gs-blue) 0%, #0055A5 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 4px 16px rgba(0,113,206,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

.btn-submit:hover::before { transform: translateX(100%); }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,113,206,0.55);
}
.btn-submit:active { transform: translateY(0); }

/* ── Sidebar ──────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 22px; }

.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  color: var(--text-primary);
}

.sidebar-card h3 svg { fill: var(--gs-blue-light); flex-shrink: 0; }

/* Guarantee items */
.guarantee-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.guarantee-item:last-child { margin-bottom: 0; }

.guarantee-icon {
  width: 42px; height: 42px;
  background: rgba(0,113,206,0.12);
  border: 1px solid rgba(0,113,206,0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.guarantee-icon svg { fill: var(--gs-blue-light); width: 20px; height: 20px; }

.guarantee-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.guarantee-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ */
.faq-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

.faq-question {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.faq-answer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, #0A1628 0%, #071020 100%);
  border-top: none;
  padding: 50px 24px 36px;
  margin-top: 80px;
  position: relative;
  color: #B0BDD0;
}

/* Yellow accent line at top of footer */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gs-blue), var(--gs-yellow), var(--gs-blue));
}

.footer-container {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  height: 56px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,113,206,0.4));
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #8899B0;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--trans);
  font-weight: 500;
}

.footer-links a:hover { color: var(--gs-blue-light); }

.footer-copyright {
  font-size: 0.72rem;
  color: #7088A0;
  max-width: 760px;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 992px) {
  main { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 12px; }
  .hero-banner { padding: 52px 16px 44px; }
  form { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group-full { grid-column: span 1; }
  .security-badge span { display: none; }
}
