/* ============================================================
   African Descendants Historical Timeline — Standalone CSS
   Design: "Ancestral Cartography" — Afrofuturist dark theme
   Typography: Cinzel (display) + Crimson Text (body)
   Colors: Deep indigo bg, gold/copper accents, ivory text
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #1e1a32;
  --bg-lighter: #2a2545;
  --card-bg: #302b4a;
  --card-bg-hover: #38335a;
  --gold: #C9A227;
  --gold-dim: rgba(201,162,39,0.5);
  --copper: #B87333;
  --ivory: #F5E6CC;
  --ivory-dim: rgba(245,230,204,0.7);
  --text: #e8dcc8;
  --text-dim: rgba(232,220,200,0.6);
  --text-dimmer: rgba(232,220,200,0.4);
  --border: rgba(201,162,39,0.15);
  --border-light: rgba(201,162,39,0.08);
  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Text', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1e1a32; }
::-webkit-scrollbar-thumb { background: #6b5e3e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8a7a50; }

/* ---------- Pattern Overlay ---------- */
.pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23c9a227' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Hero Banner ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  overflow: hidden;
}
.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,26,50,0.25) 0%, rgba(30,26,50,0.50) 50%, rgba(30,26,50,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(201,162,39,0.3), 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--ivory);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}
.hero-desc {
  max-width: 640px;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--ivory);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ---------- Main Content ---------- */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
@media (min-width: 768px) {
  .main-content { padding: 2.5rem 1.5rem 3rem; }
}

/* ---------- Pill Filters ---------- */
.pill-nav { margin-bottom: 1.5rem; }

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.breadcrumb-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.breadcrumb-btn:hover, .breadcrumb-btn.active { opacity: 1; }
.breadcrumb-sep { opacity: 0.4; color: var(--text); }
.breadcrumb-back {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  color: var(--text);
  opacity: 0.6;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.breadcrumb-back:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
@media (min-width: 768px) { .pill-row { gap: 0.75rem; } }

.filter-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.filter-pill:hover {
  transform: scale(1.03);
  opacity: 1 !important;
}
.filter-pill.active { transform: scale(1.05); }

.filter-pill-sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  min-height: 28px;
  min-width: 28px;
}

/* ---------- Search Bar ---------- */
.search-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.search-input-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(201,162,39,0.2);
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-input:focus { border-color: var(--gold-dim); }
.search-input::placeholder { color: var(--text-dim); }
.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.4;
  padding: 0;
  display: none;
}
.search-clear.visible { display: block; }
.search-clear:hover { opacity: 0.8; }
.event-count {
  font-size: 0.75rem;
  opacity: 0.5;
  white-space: nowrap;
}
@media (max-width: 767px) { .event-count { display: none; } }

/* ---------- Egypt Section ---------- */
.egypt-header {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-height: 160px;
}
.egypt-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.egypt-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,26,50,0.4) 0%, rgba(30,26,50,0.80) 100%);
}
.egypt-header-content {
  position: relative;
  z-index: 10;
  padding: 1.25rem;
  display: flex;
  align-items: flex-end;
  min-height: 160px;
}
@media (min-width: 768px) { .egypt-header-content { padding: 2rem; } }
.egypt-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #E6B84F;
  text-shadow: 0 2px 12px rgba(230,184,79,0.3);
  margin-bottom: 0.25rem;
}
.egypt-header p {
  color: var(--ivory);
  opacity: 0.8;
  font-size: 0.875rem;
  max-width: 560px;
}

.egypt-section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.egypt-section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #E6B84F;
  margin-bottom: 0.25rem;
}
.egypt-section-title p {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Egypt hierarchy levels */
.egypt-top-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  margin-bottom: 0.5rem;
}
.egypt-top-btn:hover { background: rgba(255,255,255,0.05); }
.egypt-top-btn .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}
@media (min-width: 768px) { .egypt-top-btn .label { font-size: 1rem; } }
.egypt-top-btn .period { font-size: 0.75rem; opacity: 0.5; margin-left: 0.5rem; }
.egypt-top-btn .duration { font-size: 0.75rem; opacity: 0.4; margin-left: 0.25rem; }
.egypt-top-btn .chevron { transition: transform 0.3s; flex-shrink: 0; }
.egypt-top-btn .chevron.open { transform: rotate(90deg); }
.egypt-top-btn .flex-1 { flex: 1; min-width: 0; }

.egypt-children { padding-left: 0.5rem; }

.egypt-period-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  margin-bottom: 0.375rem;
}
.egypt-period-btn:hover { background: rgba(255,255,255,0.05); }
.egypt-period-btn .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}
.egypt-period-btn .period-text { font-size: 0.75rem; opacity: 0.5; margin-left: auto; }

.egypt-dynasty-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  margin-bottom: 0.25rem;
  margin-left: 10px;
}
.egypt-dynasty-btn:hover { background: rgba(255,255,255,0.05); }
.egypt-dynasty-btn .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}
.egypt-dynasty-btn .period-text { font-size: 0.75rem; opacity: 0.5; margin-left: auto; }

/* Ruler card (Egypt) */
.ruler-card {
  margin-bottom: 0.375rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  margin-left: 10px;
}
.ruler-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.1);
}
.ruler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.ruler-header .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ruler-header .name {
  font-weight: 600;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ruler-header .date { font-size: 0.75rem; opacity: 0.5; flex-shrink: 0; }
.ruler-header .chevron { flex-shrink: 0; opacity: 0.4; transition: transform 0.3s; }
.ruler-header .chevron.open { transform: rotate(180deg); }

.ruler-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ruler-details.expanded { max-height: 600px; }
.ruler-details-inner {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid;
}
.ruler-details-inner p { font-size: 0.875rem; opacity: 0.8; margin-top: 0.5rem; line-height: 1.6; }
.ruler-details-inner .summary { font-weight: 600; opacity: 0.9; }
.ruler-facts h5 {
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.ruler-facts ul { list-style: none; }
.ruler-facts li {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

/* ---------- Timeline ---------- */
.timeline-section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.timeline-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--gold);
}
.timeline-section-header p {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* Central spine — desktop */
.timeline-spine-center {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #C9A227, #B87333, #C9A227);
  box-shadow: 0 0 10px rgba(201,162,39,0.25), 0 0 20px rgba(201,162,39,0.08);
}
@media (min-width: 768px) { .timeline-spine-center { display: block; } }

/* Mobile spine */
.timeline-spine-mobile {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #C9A227, #B87333, #C9A227);
  box-shadow: 0 0 10px rgba(201,162,39,0.25), 0 0 20px rgba(201,162,39,0.08);
}
@media (min-width: 768px) { .timeline-spine-mobile { display: none; } }

/* ---------- Event Card ---------- */
.event-article {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 3rem;
  animation: fadeSlideIn 0.5s ease-out both;
}
@media (min-width: 768px) {
  .event-article {
    padding-left: 0;
    width: 48%;
    margin-bottom: 1rem;
  }
  .event-article.left { padding-right: 2rem; text-align: right; }
  .event-article.right { padding-left: 2rem; margin-left: auto; }
}

/* Timeline node dot */
.event-node {
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 3px solid;
  background: var(--bg);
  z-index: 10;
}
@media (min-width: 768px) {
  .event-article.left .event-node { left: auto; right: -9px; }
  .event-article.right .event-node { left: -9px; }
}

.event-card {
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,162,39,0.12);
}
@media (min-width: 768px) {
  .event-card {
    cursor: default;
  }
}

.event-compact {
  padding: 0.625rem 0.75rem;
}
@media (min-width: 768px) { .event-compact { padding: 0.75rem 1rem; } }

.event-compact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .event-article.left .event-compact-row { flex-direction: row-reverse; }
}

.category-pill {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.event-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.6;
  font-family: var(--font-display);
}

.event-title {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .event-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}
@media (min-width: 768px) {
  .event-title { font-size: 1rem; }
  .event-article.left .event-title { text-align: right; }
}

.event-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.3s;
}
.event-chevron.open { transform: rotate(180deg); }
@media (min-width: 768px) {
  .event-chevron { display: none; }
}

/* Expandable content — compact on mobile, always visible on desktop */
.event-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.event-details.expanded { max-height: 800px; }
@media (min-width: 768px) {
  .event-details {
    max-height: none;
    overflow: visible;
  }
}
.event-details-inner {
  padding: 0 0.75rem 0.75rem;
}
@media (min-width: 768px) { .event-details-inner { padding: 0 1rem 1rem; } }
.event-details-inner .divider {
  border-top: 1px solid;
  padding-top: 0.75rem;
}
.event-details-inner .summary {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.event-details-inner .full-text {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .event-article.left .event-details-inner .summary,
  .event-article.left .event-details-inner .full-text { text-align: left; }
}
.key-facts h4 {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
@media (min-width: 768px) {
  .event-article.left .key-facts h4 { justify-content: flex-start; }
}
.key-facts ul { list-style: none; }
.key-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) {
  .event-article.left .key-facts li { text-align: left; }
}

/* ---------- No Data ---------- */
.no-data {
  text-align: center;
  padding: 4rem 1rem;
}
.no-data-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 2px solid rgba(201,162,39,0.2);
}
.no-data h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.no-data p {
  opacity: 0.5;
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.875rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(201,162,39,0.12);
  background: #17142a;
}
.site-footer .title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--gold);
  opacity: 0.6;
}
.site-footer .tagline {
  font-size: 0.75rem;
  opacity: 0.3;
  margin-top: 0.25rem;
}

/* ---------- Contact Us Button ---------- */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-btn:hover {
  background: var(--gold);
  color: #1e1a32;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201,162,39,0.3);
}

/* ---------- Contact Modal Overlay ---------- */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 8, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contact-overlay.open {
  display: flex;
  opacity: 1;
}

/* ---------- Contact Modal ---------- */
.contact-modal {
  background: linear-gradient(145deg, #2a2545 0%, #1e1a32 100%);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 1rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 40px rgba(201,162,39,0.08);
  animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-header {
  position: relative;
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(201,162,39,0.1);
}
.contact-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.375rem;
}
.contact-modal-header p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding-right: 2rem;
}
.contact-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.4;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s;
}
.contact-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* ---------- Contact Form ---------- */
.contact-form {
  padding: 1.25rem 1.5rem 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-row-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.form-group label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group .required {
  color: #e67e22;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(201,162,39,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dimmer);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.form-btn-cancel {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(201,162,39,0.15);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}
.form-btn-cancel:hover {
  border-color: rgba(201,162,39,0.3);
  color: var(--text);
}
.form-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  color: #1e1a32;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s;
}
.form-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.3);
}
.form-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.submit-spinner svg {
  animation: spin 1s linear infinite;
}

.form-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}
.form-status.success {
  background: rgba(39, 201, 82, 0.1);
  border: 1px solid rgba(39, 201, 82, 0.25);
  color: #4ade80;
}
.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

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

/* ---------- SVG Icons inline ---------- */
.icon { display: inline-block; vertical-align: middle; }
