/* AI Officer Academy — prototype redesign */

:root {
  --ink: #0c1222;
  --ink-soft: #1a2338;
  --slate: #3d4f6f;
  --mist: #8b9bb5;
  --paper: #f6f4ef;
  --paper-warm: #ede9e0;
  --accent: #c4a35a;
  --accent-bright: #d4b76e;
  --accent-glow: rgba(196, 163, 90, 0.22);
  --white: #ffffff;
  --line: rgba(12, 18, 34, 0.1);
  --hero-overlay: linear-gradient(
    115deg,
    rgba(8, 14, 28, 0.92) 0%,
    rgba(12, 22, 42, 0.78) 45%,
    rgba(8, 14, 28, 0.55) 100%
  );
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(12, 18, 34, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--white);
  white-space: nowrap;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-sub a {
  color: var(--white);
  transition: opacity 0.2s;
}

.brand-sub a:hover {
  opacity: 0.8;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 0.65rem 1.35rem;
  background: var(--accent);
  color: var(--ink) !important;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(8, 14, 28, 0.97);
  padding: 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ——— Course subpage hero ——— */

.course-hero {
  min-height: auto;
  align-items: center;
  padding: calc(var(--header-h) + 6rem) 0 6rem;
}

.course-hero .hero-content {
  padding: 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 960px) {
  .course-hero {
    padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  }
}

@media (max-width: 600px) {
  .course-hero {
    padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  }

  .course-hero h1 {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
  }

  .course-hero .hero-lead {
    font-size: 0.97rem !important;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--hero-overlay),
    url("https://aiofficeracademy.eu/images/banner-dark.jpg")
      center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, var(--paper), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}

.hero-logo {
  width: 10rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.15s forwards;
  filter: brightness(1.1);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.25s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 14ch;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.35s forwards;
}

.hero-lead {
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.65s forwards;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink-soft);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

/* ——— Sections ——— */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-inner {
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  /* Ensure content never overflows on very small screens */
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.section h2 strong,
.section h2 b {
  font-weight: 600;
  color: var(--ink-soft);
}

.section-lead {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 46rem;
  margin: 0 0 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Enterprise CTA block ——— */

.section-enterprise {
  background: var(--paper);
  padding-top: 2rem;
}

.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.enterprise-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.enterprise-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.enterprise-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 163, 90, 0.35);
  transform: translate(1.25rem, 1.25rem);
  pointer-events: none;
  z-index: 1;
}

.enterprise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ——— Problem section ——— */

.section-problem {
  background: var(--ink);
  color: var(--white);
}

.section-problem .section-label {
  color: var(--accent-bright);
}

.section-problem h2 {
  color: var(--white);
}

.section-problem .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.problem-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.problem-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}

.problem-list .team {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
}

.problem-list .team b {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  margin-top: 0.35rem;
}

.problem-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.problem-closer {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 36rem;
  margin: 0;
  color: var(--paper);
}

.problem-closer strong {
  color: var(--accent-bright);
  font-weight: 600;
}

/* ——— Pillars ——— */

.section-pillars {
  background: var(--paper-warm);
}

.pillars-intro {
  max-width: 42rem;
  margin-bottom: 4rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 2.5rem 2rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.pillar:last-child {
  border-right: none;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.pillar-tag {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin: 0 0 1rem;
}

.pillar-desc {
  color: var(--slate);
  margin: 0 0 2rem;
  flex: 1;
}

.pillar-image {
  margin: 0 -2rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.pillar:hover .pillar-image img {
  transform: scale(1.04);
}

/* ——— Program ——— */

.section-program {
  background: var(--paper);
}

.program-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.audience-list {
  list-style: none;
  margin: 2rem 0 0;
}

.audience-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}

.audience-list li b {
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}

.facts-panel {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
}

.facts-panel h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--white);
}

.facts-list {
  list-style: none;
}

.facts-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.facts-list li:last-child {
  border-bottom: none;
}

.facts-list b {
  color: var(--accent-bright);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.facts-list i {
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

/* ——— Benefits ——— */

.section-benefits {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.benefit {
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent);
}

.benefit h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.benefit p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

/* ——— Faculty ——— */

.section-faculty {
  background: var(--paper);
}

.faculty-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.faculty-portrait {
  position: relative;
}

.faculty-portrait img {
  width: 100%;
  border-radius: 2px;
  filter: grayscale(12%);
}

.faculty-portrait::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  right: 2rem;
  height: 4px;
  background: var(--accent);
}

.faculty-intro {
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.faculty-bio {
  margin-bottom: 2rem;
  color: var(--slate);
}

.achievements {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.achievements li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--slate);
  font-size: 0.98rem;
}

.achievements strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}

/* ——— Apply CTA ——— */

.section-apply {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-apply::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.section-apply h2 {
  color: var(--white);
}

.apply-lead {
  max-width: 50rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.apply-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.apply-steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3rem;
}

.apply-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.7;
}

.apply-steps h4 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.apply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  max-width: 36rem;
}

.apply-form input[type="email"] {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.apply-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.apply-form input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}

.apply-form .btn {
  white-space: nowrap;
}

/* ——— Footer ——— */

.site-footer {
  background: #060a14;
  color: rgba(255, 255, 255, 0.55);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 500;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent-bright);
}

.footer-legal {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  line-height: 1.5;
}

.footer-legal a {
  color: var(--accent-bright);
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ——— Animations ——— */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Responsive ——— */

@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .enterprise-grid,
  .program-layout,
  .faculty-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .enterprise-visual {
    aspect-ratio: 16 / 10;
    max-height: 22rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
  }

  .pillar-image {
    margin: 0;
  }

  .benefits-grid,
  .apply-steps {
    grid-template-columns: 1fr;
  }

  .problem-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .apply-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    max-width: none;
  }

  .hero-actions,
  .enterprise-actions,
  .program-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* ——— course.html mobile fixes ——— */

  /* Reduce the section-inner horizontal margin on very small screens */
  .section-inner {
    width: calc(100% - 2rem);
  }

  /* Week cards: reduce padding on small phones */
  .section-enterprise [style*="padding: 2rem"],
  div[style*="border-left: 3px solid var(--accent)"] {
    padding: 1.25rem !important;
  }

  /* Ensure week card h3 titles scale down */
  .section-enterprise h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
  }

  /* Allow long words to break so they don't overflow */
  .section-enterprise li,
  .section-enterprise p,
  .section-enterprise h3,
  .section-enterprise blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  /* Certification ordered list: add left padding so numbers show */
  ol[style*="padding-left: 1.5rem"] {
    padding-left: 1.25rem !important;
  }

  /* Contact container: stack to single column on small phones */
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ——— Contact Form & Page Styles ——— */
.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

/* Stack contact layout on tablet and below */
@media (max-width: 960px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info {
  background: var(--paper-warm);
  padding: 3rem;
  border-radius: 2px;
  border-left: 4px solid var(--accent);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.contact-info-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--slate);
}

.contact-info-list strong {
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form-wrapper {
  background: var(--ink);
  color: var(--white);
  padding: 3rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.contact-form-wrapper h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ——— Success Modal Styles ——— */
.success-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 18, 34, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.success-modal-content {
  background: var(--paper);
  color: var(--ink);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  max-width: 28rem;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow: 0 20px 50px rgba(12, 18, 34, 0.25);
  border-top: 4px solid var(--accent);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-modal-backdrop.is-visible .success-modal-content {
  transform: translateY(0);
}

.success-modal-icon {
  width: 4rem;
  height: 4rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem auto;
}

.success-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.success-modal-content p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.close-modal-btn {
  min-width: 8rem;
}


