* { box-sizing: border-box; max-width: 100%; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; color: #333; margin: 0; padding: 10px; }
.container { max-width: 1000px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
h2 { text-align: center; color: #2c3e50; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="text"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
button[type="submit"] { background-color: #3498db; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; font-size: 16px; }
button[type="submit"]:hover { background-color: #2980b9; }
.error { color: #e74c3c; background: #fadbd8; padding: 10px; border-radius: 4px; margin-bottom: 15px; display: none; }
.or-divider { text-align: center; margin: 15px 0; font-weight: bold; color: #7f8c8d; }

/* Grid and Card Styling */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 25px; }
.voter-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; }
.voter-card-banner { width: 100%; height: 120px; background-color: #ecf0f1; border-bottom: 3px solid #3498db; }
.voter-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.voter-card-content { padding: 15px; flex-grow: 1; }
.voter-card-content h3 { margin: 0 0 10px 0; color: #2c3e50; }
.voter-card-content p { margin: 5px 0; font-size: 14px; line-height: 1.4; }
.voter-card-content strong { color: #555; }

/* Action Buttons */
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px; background: #fdfdfd; border-top: 1px solid #eee; }
.action-btn { flex: 1; text-align: center; padding: 10px 5px; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block; box-sizing: border-box; }
.btn-map { background-color: #3498db; }
.btn-map:hover { background-color: #2980b9; }
.btn-download { background-color: #e67e22; }
.btn-download:hover { background-color: #d35400; }
.btn-wa { background-color: #25D366; }
.btn-wa:hover { background-color: #1ebe5d; }
.box-link { width: 100%; padding: 8px 10px; background-color: #05856e; color: #fff; text-decoration: none; text-align: center; margin-top: 10px; display: block; }

.single-voter-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.voter-card { max-width: 450px; width: 100%; }