:root {
  --ag-primary: #8B1A1A;
  --ag-primary-dark: #6B1414;
  --ag-gold: #C9A96E;
  --ag-gold-light: #E0C992;
  --ag-bg: #1A1A1A;
  --ag-card: #2A2A2A;
  --ag-text: #F5F5F5;
  --ag-text-muted: #999;
  --ag-border: #444;
  --ag-success: #2ECC71;
  --ag-error: #E74C3C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--ag-bg);
  color: var(--ag-text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
}

.widget-container {
  width: 100%;
  max-width: 480px;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.widget-header {
  background: linear-gradient(135deg, var(--ag-primary), var(--ag-primary-dark));
  padding: 1.5rem;
  text-align: center;
}

.widget-header h1 {
  font-size: 1.5rem;
  color: var(--ag-gold);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.widget-header p {
  font-size: 0.85rem;
  color: var(--ag-gold-light);
  opacity: 0.9;
}

.widget-body { padding: 1.5rem; }

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ag-border);
  transition: all 0.3s;
}

.step-dot.active { background: var(--ag-gold); transform: scale(1.2); }
.step-dot.done { background: var(--ag-success); }

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ag-gold);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--ag-bg);
  border: 1px solid var(--ag-border);
  border-radius: 6px;
  color: var(--ag-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ag-gold);
}

textarea { resize: vertical; min-height: 60px; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.time-slot {
  padding: 0.6rem 0.25rem;
  text-align: center;
  font-size: 0.8rem;
  border: 1px solid var(--ag-border);
  border-radius: 6px;
  background: var(--ag-bg);
  color: var(--ag-text);
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: var(--ag-gold);
  background: rgba(201, 169, 110, 0.1);
}

.time-slot.selected {
  border-color: var(--ag-gold);
  background: var(--ag-gold);
  color: var(--ag-bg);
  font-weight: bold;
}

.btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--ag-gold);
  color: var(--ag-bg);
}

.btn-primary:hover { background: var(--ag-gold-light); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--ag-gold);
  border: 1px solid var(--ag-gold);
  margin-top: 0.75rem;
}

.btn-secondary:hover { background: rgba(201, 169, 110, 0.1); }

.error-msg {
  color: var(--ag-error);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--ag-text-muted);
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ag-border);
  border-top-color: var(--ag-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.confirmation { text-align: center; padding: 1rem 0; }

.confirmation .checkmark { font-size: 3rem; margin-bottom: 1rem; }

.confirmation h2 { color: var(--ag-gold); margin-bottom: 0.5rem; }

.confirmation .details {
  text-align: left;
  background: var(--ag-bg);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

.confirmation .details strong { color: var(--ag-gold); }

.confirmation .conf-number {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--ag-text-muted);
  margin-top: 0.5rem;
}

.inline-row { display: flex; gap: 1rem; }
.inline-row .form-group { flex: 1; }

.step { display: none; }
.step.active { display: block; }

.widget-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ag-text-muted);
  border-top: 1px solid var(--ag-border);
}

.widget-footer a { color: var(--ag-text-muted); text-decoration: none; }
.widget-footer a:hover { color: var(--ag-gold); }

.ot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--ag-text-muted);
}

.ot-badge svg { width: 14px; height: 14px; fill: #DA3743; }

.token-timer {
  font-size: 0.75rem;
  color: var(--ag-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}
