/* ==========================================================================
   CraftyEdge Solutions (OPC) Private Limited
   Responsive Enterprise Design System (Mobile, Tablet & Desktop Optimized)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f4f4f5;
  --border: #e4e4e7;
  --border-subtle: #f4f4f5;
  --border-focus: #18181b;
  --border-hover: #a1a1aa;
  --text: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  --accent-btn-bg: #09090b;
  --accent-btn-text: #ffffff;
  --accent-btn-hover: #27272a;
  --badge-bg: #f4f4f5;
  --badge-border: #e4e4e7;
  --glow: rgba(9, 9, 11, 0.04);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --linkedin: #0A66C2;
}

html.dark {
  --bg: #000000;
  --bg-subtle: #080808;
  --bg-surface: #0e0e10;
  --bg-card: #121214;
  --bg-input: #18181b;
  --border: #27272a;
  --border-subtle: #1c1c1f;
  --border-focus: #ffffff;
  --border-hover: #52525b;
  --text: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-inverse: #000000;
  --accent-btn-bg: #ffffff;
  --accent-btn-text: #000000;
  --accent-btn-hover: #e4e4e7;
  --badge-bg: #141416;
  --badge-border: #27272a;
  --glow: rgba(255, 255, 255, 0.03);
  --card-shadow: none;
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease, box-shadow 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.75rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

@media (min-width: 768px) {
  .nav-container {
    height: 74px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-emblem-wrap {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 6px var(--glow);
  flex-shrink: 0;
}

.brand-emblem {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .brand-name {
    font-size: 1.2rem;
  }
}

.brand-name span {
  font-weight: 500;
  color: var(--text-muted);
}

.brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-cta-btn {
  display: none;
}

@media (min-width: 680px) {
  .nav-cta-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons & Touch Targets
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 42px;
}

.btn-primary {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  box-shadow: 0 2px 8px var(--glow);
}

.btn-primary:hover {
  background: var(--accent-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-icon:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-icon.linkedin-btn:hover {
  border-color: var(--linkedin);
  color: var(--linkedin);
}

.mobile-toggle-btn {
  display: flex;
}

@media (min-width: 960px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 90;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-links a:hover {
  background: var(--bg-subtle);
}

.mobile-drawer-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Hero Section (Responsive Mobile to Laptop)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 110px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 10%, var(--glow) 0%, transparent 60%), linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 145px;
    padding-bottom: 85px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-badge {
    font-size: 0.78rem;
    padding: 0.45rem 1.15rem;
  }
}

.hero-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero h1 span.gradient-text {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2rem auto;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 580px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-actions .btn {
  width: 100%;
}

@media (min-width: 580px) {
  .hero-actions .btn {
    width: auto;
  }
}

.trust-row {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: left;
}

@media (min-width: 768px) {
  .trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    text-align: center;
    font-size: 0.825rem;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  flex-shrink: 0;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
section {
  padding: 60px 0;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  section {
    padding: 85px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 3.5rem;
  }
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-sub {
    font-size: 1.025rem;
  }
}

/* ==========================================================================
   Services Grid & Interactive Filter
   ========================================================================== */
.services-section {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.services-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  border-color: var(--accent-btn-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.65rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
}

@media (min-width: 768px) {
  .service-card {
    padding: 2rem;
  }
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-capabilities {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-capabilities li {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
}

.service-capabilities li::before {
  content: "✓";
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.service-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-service-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.select-service-btn:hover {
  text-decoration: underline;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ==========================================================================
   About Us & Startup India Credentials
   ========================================================================== */
.about-section {
  background: var(--bg);
}

.about-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-highlight-card {
    padding: 2.75rem 2.5rem;
    margin-bottom: 3.5rem;
  }
}

.startup-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 1.25rem;
}

html.dark .startup-badge-pill {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.about-highlight-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.about-narrative {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about-narrative {
    font-size: 1.05rem;
  }
}

.about-narrative p {
  margin-bottom: 1rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credential-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
}

.credential-box .cred-icon {
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.credential-box h4 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.credential-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Values / Operating Tenets
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .value-card {
    padding: 2.25rem 2rem;
  }
}

.value-card:hover {
  border-color: var(--border-hover);
}

.value-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Careers & Hiring Section
   ========================================================================== */
.hiring-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 0.35rem;
  vertical-align: middle;
}

html.dark .hiring-nav-pill {
  color: #34d399;
}

.careers-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

@media (min-width: 768px) {
  .job-card {
    padding: 2.25rem 2rem;
  }
}

.job-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.job-header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.job-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.job-badge.featured {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}

html.dark .job-badge.featured {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.job-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.job-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.job-duties {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.job-duties li {
  font-size: 0.835rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.5;
}

.job-duties li::before {
  content: "•";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
}

.job-apply-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .job-apply-box {
    padding: 2.75rem 2.25rem;
  }
}

/* ==========================================================================
   Contact & Direct Engagement
   ========================================================================== */
.contact-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

.direct-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
}

.direct-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.direct-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-box h4 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.direct-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.direct-link-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--linkedin);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.entity-notice {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Form Panel */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.65rem 1.25rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .form-panel {
    padding: 2.5rem;
  }
}

.form-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .form-panel h3 {
    font-size: 1.5rem;
  }
}

.form-panel p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

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

.form-group {
  margin-bottom: 0.85rem;
}

@media (min-width: 600px) {
  .form-group {
    margin-bottom: 1rem;
  }
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  min-height: 42px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.alert-box {
  display: none;
  padding: 1.15rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

html.dark .alert-box {
  background: #064e3b;
  border-color: #047857;
  color: #d1fae5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 45px 0 30px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  footer {
    padding: 55px 0 35px 0;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    padding-bottom: 2.5rem;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 1.75rem;
  }
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}
