@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --dc-dark: #0b0e1d;
  --dc-dark-lighter: #141829;
  --dc-red: #ea5153;
  --dc-blue: #00a6e2;
  --dc-gradient: linear-gradient(135deg, #00a6e2 0%, #4c8ab2 40%, #ea5153 100%);
  --dc-gradient-btn: linear-gradient(135deg, #00a6e2 0%, #ea5153 100%);
  --dc-white: #ffffff;
  --dc-gray-50: #f8f9fa;
  --dc-gray-100: #e9ecef;
  --dc-gray-200: #dee2e6;
  --dc-gray-400: #adb5bd;
  --dc-gray-600: #6c757d;
  --dc-gray-800: #343a40;
  --dc-text: #1a1e2e;
  --dc-text-muted: #6c757d;
  --dc-card-shadow: 0 4px 24px rgba(11, 14, 29, 0.08);
  --dc-input-border: #dee2e6;
  --dc-input-focus: #00a6e2;
  --dc-radius: 12px;
  --dc-radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dc-gray-50);
  color: var(--dc-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  background: var(--dc-dark);
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  background: var(--dc-gradient);
  opacity: 0.15;
  border-radius: 50%;
}
.header::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  background: var(--dc-red);
  opacity: 0.08;
  transform: rotate(45deg);
}
.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.header .logo {
  height: 40px;
  margin-bottom: 16px;
}
.header h1 {
  color: var(--dc-white);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.header p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Main ── */
.main {
  max-width: 680px;
  margin: -20px auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── Card ── */
.card {
  background: var(--dc-white);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-card-shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dc-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dc-gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon {
  width: 20px;
  height: 20px;
  background: var(--dc-gradient-btn);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Form ── */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--dc-gray-800);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--dc-red);
  margin-left: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--dc-input-border);
  border-radius: var(--dc-radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--dc-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--dc-white);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--dc-input-focus);
  box-shadow: 0 0 0 3px rgba(0, 166, 226, 0.12);
}
input::placeholder { color: var(--dc-gray-400); }
select { cursor: pointer; }

.input-small { max-width: 140px; }

/* ── Button ── */
.btn-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--dc-gradient-btn);
  color: var(--dc-white);
  border: none;
  border-radius: var(--dc-radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn-submit:hover { opacity: 0.9; }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Honeypot ── */
.hp-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--dc-gray-400);
  font-size: 12px;
}

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--dc-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ── Success Page ── */
.success-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 24px;
}
.success-card {
  background: var(--dc-white);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-card-shadow);
  padding: 48px;
  max-width: 480px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--dc-gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg { width: 32px; height: 32px; fill: white; }
.success-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.success-card p {
  color: var(--dc-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Loading ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 600px) {
  .header h1 { font-size: 20px; }
  .card { padding: 20px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .main { padding: 0 16px; }
}
