:root {
  --accent: #46bde5;
  --accent-600: #3897ca;
  --accent-700: #246aa7;
  --bg: #0b0c0f;
  --panel: #111319;
  --text: #e7e9ee;
  --muted: #a9afbd;
  --border: #232633;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0a0b0e 0%, #0b0c10 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: rgba(11, 12, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.brand-badge { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:8px; background:#111; }
.brand-badge::before{ content:''; width:32px; height:32px; display:block; background:url('/logo-email.png') center/contain no-repeat; border-radius:8px; }

.back-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.back-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.site-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

/* Main content */
main {
  padding: 40px 0 60px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Form sections */
.form-sections {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.form-section h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
}

.field input[type="number"],
.field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.field input[type="number"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 189, 229, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

/* Addons */
.addons {
  display: grid;
  gap: 12px;
}

.addon-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.addon-item:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.addon-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.addon-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.addon-title {
  font-weight: 500;
  color: var(--text);
}

.addon-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* Summary */
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 640px) {
  .summary {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-600));
}

.price-card {
  border-color: rgba(70, 189, 229, 0.3);
}

.deadline-card {
  border-color: rgba(16, 185, 129, 0.3);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.summary-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.price-badge {
  background: rgba(70, 189, 229, 0.1);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Free badge for offers */
.badge-free{ display:inline-block; margin-left:8px; padding:2px 8px; font-size:12px; font-weight:700; color:#0a7b2f; background:rgba(16,185,129,.15); border:1px solid rgba(16,185,129,.3); border-radius:999px; }

.summary-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.summary-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Actions */
.actions {
  display: flex;
  gap: 12px;
  margin: 32px 0 20px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  min-width: 140px;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: white;
  box-shadow: 0 4px 12px rgba(70, 189, 229, 0.3);
}

.cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(70, 189, 229, 0.4);
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border);
}

.cta.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.cta.tertiary {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.cta.tertiary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Footer */
.site-footer {
  background: rgba(11, 12, 15, 0.8);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Disclaimer */
.disclaimer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .card {
    padding: 24px 20px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .cta {
    width: 100%;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}