/* Your original CSS remains completely intact */
:root {
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --accent: #3b82f6;
  --dark: #0f172a;
  --light: #f8fafc;
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-xl: 20px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --democrat: #0015BC;
  --republican: #E9141D;
}

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

.logo {
  display: block;
  margin: 0 auto 1rem;
  width: 200px !important;
  height: auto;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: 1rem auto;
  width: 95%;
  max-width: 1200px;
  background-image: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 20%, rgba(255,255,255,0.1) 50%, transparent 80%);
  animation: shine 8s infinite;
}

@keyframes shine {
  0% { transform: translateX(-50%) translateY(-50%) rotate(45deg); }
  100% { transform: translateX(50%) translateY(50%) rotate(45deg); }
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin: 1rem auto;
  width: 95%;
  max-width: 800px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.container h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--dark);
  text-align: center;
  font-weight: 700;
}

.input-group {
  margin: 1.5rem 0;
  position: relative;
}

input {
  width: 100%;
  padding: 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255,255,255,0.8);
}

input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: white;
}

input::placeholder {
  color: #94a3b8;
}

button {
  background: var(--primary-gradient);
  color: white;
  padding: 1.25rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

#result {
  margin-top: 2rem;
}

.official-block {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  border-left: 4px solid var(--accent);
}

.detail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  align-items: center;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.detail-value {
  word-break: break-word;
}

.party-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.democrat {
  color: var(--democrat);
}

.republican {
  color: var(--republican);
}

.party-icon {
  font-size: 1.2em;
}

footer {
  background: var(--dark);
  color: var(--light);
  padding: 2rem;
  border-radius: var(--radius-xl);
  margin: 2rem auto;
  width: 95%;
  max-width: 1200px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

@media (max-width: 768px) {
  header h1 { font-size: 2rem; }
  .card { padding: 1.5rem; }
  .detail-item {
    gap: 0.5rem;
    font-size: 0.95rem;
  }
  .detail-label { font-size: 0.9rem; }
  .detail-value a { font-size: 0.9rem; }
}

@media (min-width: 768px) {
  .input-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  #street { grid-column: 1 / -1; }
}

.rep-heading-card {
  background-image: var(--primary-gradient);
  color: var(--light);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* New classes only (no original code removed) */
.welcome-heading {
  text-align: center;
  font-size: 1.1rem;
}

.welcome-heading strong {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-text {
  margin: 1rem 0;
}

.pro-tip {
  background: rgba(59,130,246,0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.geocoding-credit {
  margin-bottom: 1rem;
}

.counter {
  margin-top: 1rem;
}