:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --success: #10b981;
  --bg-gradient: linear-gradient(135deg, #1e1e24 0%, #2d2d3a 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --radius: 16px;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism Card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.5px;
}

p {
  color: var(--text-muted);
  line-height: 1.5;
}

/* Buttons */
.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* Inputs */
input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  margin-bottom: 1rem;
  box-sizing: border-box; /* Fix sizing */
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Star Rating */
.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1.5rem 0;
}

.star {
  font-size: 2rem;
  cursor: pointer;
  color: var(--glass-border);
  transition: color 0.2s;
}

.star.active, .star:hover {
  color: #fbbf24;
}

/* Checkbox container */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1rem 0;
  text-align: left;
  font-size: 0.9rem;
}

.checkbox-container input {
  margin-top: 4px;
  accent-color: var(--primary);
}

/* Valid'Artisan Widget Specifics */
#valid-artisan-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.widget-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 200px; /* Pill shape */
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  backdrop-filter: blur(8px); /* Subtle glass effect on opaque bg ??? No sense, just shadow */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.widget-btn:hover {
  transform: translateY(-2px);
}

/* Widget Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-overlay.open {
  display: flex;
}

/* Referral Button */
.btn-referral {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

.btn-referral:hover {
  transform: scale(1.02);
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* FIX: Star Rating Visibility - Clean Reset */
.sub-rating {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 100;
}

.sub-rating span {
    font-size: 1.8rem;
    cursor: pointer;
    color: #555; 
    transition: transform 0.1s;
    user-select: none;
}

.sub-rating span:hover {
    transform: scale(1.1);
}

.sub-rating span.active-fill {
    color: #ffd700 !important; /* Gold */
}
