/* Theme variables replicated from portfolio-personal (dark default + body.light). */

:root {
  --bg: #0b1120;
  --bg-soft: #101827;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: #111827;
  --panel-alt: #0f172a;
  --text: #e5eefb;
  --text-soft: #b6c2d1;
  --border: rgba(148, 163, 184, 0.22);
  --primary: #7c66ff;
  --primary-strong: #9c8aff;
  --secondary: #2dd4bf;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
}

body.light {
  --bg: #f5f7fb;
  --bg-soft: #edf3ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --panel-alt: #eef4ff;
  --text: #111827;
  --text-soft: #475569;
  --border: rgba(148, 163, 184, 0.2);
  --primary: #4f46e5;
  --primary-strong: #312e81;
  --secondary: #14b8a6;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 102, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.08), transparent 25%),
    linear-gradient(180deg, #0b1220 0%, #0d1727 100%);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

body.light {
  background:
    radial-gradient(circle at top left, rgba(124, 102, 255, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.08), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0 1rem;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: #101827;
  border-bottom: 1px solid var(--border);
}

body.light .topbar {
  background: rgba(245, 247, 251, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

/* Hero */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.14);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.hero p {
  margin-top: 1rem;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Form cards */
.brief-form {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0 3rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
}

.card legend {
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0 0.6rem;
}

.brief-form label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}

body.light .brief-form input,
body.light .brief-form select,
body.light .brief-form textarea {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: #d4deeb;
  opacity: 1;
}

body.light .brief-form input::placeholder,
body.light .brief-form textarea::placeholder {
  color: #64748b;
}

.brief-form select option {
  color: #111827;
}

.brief-form textarea {
  resize: vertical;
  min-height: 100px;
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.7);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Consent row keeps checkbox + text aligned */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.6;
  cursor: pointer;
}

.consent-label input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* Actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d5ef8);
  color: white;
  border: none;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}

#form-status {
  min-height: 1.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

#form-status.success {
  color: var(--secondary);
  font-weight: 600;
}

.footer {
  padding: 1.6rem 0 2.2rem;
  color: var(--text-soft);
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  text-align: center;
}

@media (max-width: 900px) {
  .brief-form {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
