/* Gen Z Inspired Style for Loca – classic look restored */

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base layout */
body {
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
  "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fdfcff, #f0f4ff);
  color: #111827;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header with gradient background & curved bottom */
header {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #fff;
  padding: 3rem 1.5rem 2.25rem;
  text-align: center;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  text-shadow: 0 6px 18px rgba(15, 23, 42, 0.5);
}

header p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.96;
}

/* Main layout */
main {
  padding: 0 1rem 3rem;
}

/* Card */
.card {
  max-width: 720px;
  margin: 1.5rem auto 3rem; /* no negative margin to avoid clipping under header */
  background: #ffffff;
  padding: 2rem 1.75rem;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.18);
  animation: cardFadeIn 0.6s ease;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-title {
  margin: 0 0 0.3rem;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-subtitle {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Form structure */
form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-section {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.form-section:first-of-type {
  border-top: none;
  padding-top: 0.5rem;
}

.form-section h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: #4338ca;
  font-weight: 600;
}

/* Labels & inputs */
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.94rem;
  color: #374151;
  margin-bottom: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
  background-color 0.2s ease, transform 0.08s ease;
  background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 110px;
}

/* Category banner */
.category-banner {
  margin: 0.75rem 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* Default / neutral */
.category-default {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  color: #374151;
}

/* Restaurant / Café */
.category-restaurant {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #fff;
}

/* Gym / Fitness */
.category-gym {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #fff;
}

/* Beauty / Spa */
.category-beauty {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
}

/* Retail / Shop */
.category-retail {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
}

/* Professional services */
.category-professional {
  background: linear-gradient(135deg, #0f172a, #4b5563);
  color: #f9fafb;
}

/* Other */
.category-other {
  background: linear-gradient(135deg, #6b7280, #a855f7);
  color: #f9fafb;
}

/* Radio group */
.radio-group {
  border: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.radio-group legend {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: #374151;
}

.radio-group label {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.radio-group input[type="radio"] {
  width: auto;
}

/* Checkboxes */
.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.25rem;
}

/* Form actions */
.form-actions {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding-top: 1.3rem;
  margin-top: 0.2rem;
}

button {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #ffffff;
  padding: 0.9rem 1.7rem;
  font-size: 1rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
  transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.12s ease;
}

button:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

button:active {
  transform: scale(0.98);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.helper-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.6rem;
}

/* Utility */
.hidden {
  display: none;
}

.required {
  color: #ec4899;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Accent colors for inputs */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #6366f1;
}

/* Centered content for thank-you card */
.center-text {
  text-align: center;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.5rem;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.btn:active {
  transform: scale(0.97);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header {
    padding: 2.4rem 1.25rem 2rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1.6rem 1.25rem;
    margin-top: 1.5rem; /* keep positive to avoid overlap */
  }
}

/* ===================== */
/* Ad slots (top/middle/bottom) */
/* ===================== */

.ad-slot {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 0;
  margin: 1rem auto;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-inner {
  width: 100%;
  height: 100%;
}

.ad-slot img,
.ad-slot video,
.ad-slot iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-slot-placeholder {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
  padding: 1rem;
}

/* Top & middle just inherit default sizing */
.ad-top {
  margin-top: 0.75rem;
}

.ad-middle {
  margin: 1.75rem 0;
}

/* Bottom grid: stack on mobile, side-by-side on larger screens */
.ad-bottom-grid {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ad-bottom-grid .ad-slot {
  flex: 1;
  margin: 0;
}

@media (min-width: 768px) {
  .ad-bottom-grid {
    flex-direction: row;
  }
}
