/* ===================================================
   INFIINTAREFIRME — Main Stylesheet
   Mobile-first | Dark Navy + Gold | Bootstrap 5
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --navy:        #0d1b2a;
  --navy-light:  #1b2838;
  --navy-mid:    #162232;
  --gold:        #c9a84c;
  --gold-light:  #e2c76b;
  --gold-pale:   #f5edd6;
  --white:       #ffffff;
  --off-white:   #f7f8fa;
  --gray:        #6b7280;
  --gray-light:  #e5e7eb;
  --text-dark:   #1f2937;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(13, 27, 42, 0.12);
  --shadow-lg:   0 8px 40px rgba(13, 27, 42, 0.2);
  --transition:  0.28s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
}
.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 12px rgba(201,168,76,0.35);
  white-space: nowrap;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.45);
  color: var(--navy);
}
.btn-gold:active { transform: translateY(0); }

@media (min-width: 576px) {
  .btn-gold { font-size: 1rem; padding: 14px 32px; }
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 24px;
  border: 2px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Confirm step */
.confirm-step .confirm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 900px) {
  .confirm-step .confirm-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}
.confirm-step .price-summary {
  background: #fbf4df;
  border: 1px solid #f1e2b3;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.confirm-step .price-label {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.confirm-step .price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}
.confirm-step .price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.confirm-step .confirm-terms {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.confirm-step .terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}
.confirm-step .terms-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.confirm-step .terms-check strong { color: var(--navy); }

/* ── Submission method radios ── */
.depunere-block {
  margin-bottom: 20px;
}
.depunere-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.depunere-radio:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.depunere-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.depunere-radio input:checked + .depunere-radio-label {
  color: var(--navy);
}
.depunere-radio-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gray);
}
.depunere-radio-label strong {
  font-size: 0.96rem;
  color: var(--navy);
}
.depunere-radio-label small {
  font-size: 0.84rem;
  color: var(--gray);
}

/* ── Alfasign partner banner ── */
.alfasign-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.alfasign-banner i {
  font-size: 1.8rem;
  color: #0ea5e9;
  flex-shrink: 0;
}
.alfasign-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
}
.alfasign-text strong {
  color: var(--navy);
}
.alfasign-text a {
  display: inline-block;
  margin-top: 4px;
  color: #0ea5e9;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.alfasign-text a:hover {
  color: #0284c7;
  text-decoration: underline;
}
.alfasign-text .fa-external-link-alt {
  font-size: 0.75rem;
  margin-left: 2px;
}

/* ── Price breakdown ── */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.price-line.price-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  border-top: 1px solid #f1e2b3;
  padding-top: 10px;
  margin-top: 6px;
}
.price-line.price-total span:first-child {
  color: var(--navy);
  font-size: 1rem;
}


/* ── Intro price card (Step 1) ── */
.intro-price-card {
  margin-top: 20px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 14px;
  padding: 24px 22px 20px;
  max-width: 340px;
}
.intro-price-badge {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 12px;
}
.intro-price-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.intro-price-sub {
  font-size: 0.85rem;
  color: var(--navy-mid);
  margin: 0 0 14px;
  line-height: 1.4;
  opacity: 0.7;
}
.intro-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
}
.intro-price-amount span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.55;
}
.intro-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(201,168,76,0.3);
  padding-top: 14px;
  margin-top: 2px;
}
.intro-price-list li {
  font-size: 0.9rem;
  color: var(--navy);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-price-list li .fa-check {
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── GDPR consent checkbox (Step 1) ── */
.gdpr-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}
.gdpr-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.gdpr-check strong { color: var(--navy); }
.gdpr-check input:not(:checked) + span {
  opacity: 0.7;
}


.confirm-step .payment-box {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.confirm-step .payment-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.confirm-step .payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: #374151;
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  .confirm-step .payment-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.confirm-step .payment-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Details helper */
.details-box {
  margin-top: 12px;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafafa;
}
.details-box > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}
/* CAEN AI helper actions */
.caen-ai-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 767px) {
  .caen-ai-actions { flex-wrap: wrap; }
}

/* ---------- Section Helpers ---------- */
.section { padding: 40px 0; }

.section-title {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-title .gold { color: var(--gold); }

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 36px;
}

.gold-line {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

@media (min-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2.4rem; }
  .section-subtitle { font-size: 1.1rem; margin-bottom: 48px; }
}

/* ---------- Navbar ---------- */
.navbar-main {
  background: var(--navy);
  padding: 0;
  transition: box-shadow var(--transition);
  z-index: 1030;
  position: sticky;
  top: 0;
}
.navbar-main .container {
  display: flex;
  align-items: center;
  width: 100%;

  margin: 0 auto;
  padding: 0 15px;
}
.navbar-main.scrolled {
  box-shadow: 0 2px 20px rgba(13,27,42,0.4);
}

.navbar-main .navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  padding: 14px 0;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-main .navbar-brand .brand-gold { color: var(--gold); }

@media (min-width: 992px) {
  .navbar-main .navbar-brand { font-size: 1.35rem; }
}

/* Desktop links wrapper — hidden on mobile */
.navbar-desktop-links {
  display: none;
  align-items: center;
  flex: 1;
}
@media (min-width: 992px) {
  .navbar-desktop-links { display: flex; }
}
.navbar-desktop-links .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  margin-left: 24px;
  padding: 0;
  flex: 1;
}

.navbar-main .nav-item {
  position: relative;
}

.navbar-main .nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 22px 16px;
  position: relative;
  transition: color var(--transition);
  text-decoration: none;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--white);
}

/* Desktop underline indicator */
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transition: width var(--transition);
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  width: 32px;
}

.navbar-main .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.navbar-main .nav-dropdown-toggle i {
  font-size: 0.72rem;
  transition: transform var(--transition);
}
.navbar-main .nav-item-dropdown:hover .nav-dropdown-toggle i,
.navbar-main .nav-item-dropdown:focus-within .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.navbar-main .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(13,27,42,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1060;
}
.navbar-main .nav-item-dropdown:hover .nav-dropdown-menu,
.navbar-main .nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.navbar-main .nav-dropdown-link {
  display: block;
  padding: 10px 16px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.navbar-main .nav-dropdown-link:hover,
.navbar-main .nav-dropdown-link.active {
  color: var(--navy);
  background: var(--gold-pale);
}

.navbar-main .btn-nav-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 50px;
  margin: 0 0 0 12px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-main .btn-nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--navy);
}

/* ---------- Hamburger (mobile < 992px) ---------- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 1040;
}
@media (min-width: 992px) {
  .hamburger { display: none; }
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Hamburger open state — animated to X */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Fullscreen Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1035;
  display: flex;
  flex-direction: column;
  /* slide in from right */
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
/* Only visible on mobile */
@media (min-width: 992px) {
  .mobile-menu { display: none; }
}

/* Header row: brand + close button */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  flex-shrink: 0;
}
.mobile-menu-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.mobile-menu-brand .brand-gold { color: var(--gold); }

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-close:hover {
  background: rgba(255,255,255,0.08);
}

/* Nav links list */
.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  flex: 1;
}
.mobile-menu-links li {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu.open .mobile-menu-links li {
  opacity: 1;
  transform: translateX(0);
}
/* Staggered delay for each link */
.mobile-menu.open .mobile-menu-links li:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu-links li:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.open .mobile-menu-links li:nth-child(6) { transition-delay: 0.36s; }

.mobile-menu-links a {
  display: block;
  padding: 16px 28px;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}
.mobile-menu-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
  padding-left: 36px;
}
.mobile-menu-links a.active {
  color: var(--gold);
}
.mobile-menu-links a.active::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.mobile-submenu {
  margin: 0;
  padding: 0;
}
.mobile-submenu summary {
  list-style: none;
}
.mobile-submenu summary::-webkit-details-marker {
  display: none;
}
.mobile-submenu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}
.mobile-submenu-title:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
  padding-left: 36px;
}
.mobile-submenu-title i {
  font-size: 0.85rem;
  transition: transform var(--transition);
}
.mobile-submenu[open] .mobile-submenu-title i {
  transform: rotate(180deg);
}
.mobile-submenu-title.active {
  color: var(--gold);
}
.mobile-submenu-title.active::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.mobile-submenu-links a {
  font-size: 1rem;
  padding: 12px 44px;
  background: rgba(0,0,0,0.12);
}
.mobile-submenu-links a:hover {
  padding-left: 52px;
}

/* CTA button at bottom */
.mobile-menu-cta {
  display: block;
  margin: 28px 24px 36px;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(12px);
  transition: background var(--transition), transform 0.35s ease, opacity 0.35s ease;
}
.mobile-menu.open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}
.mobile-menu-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--navy);
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a2d44 100%);
  color: var(--white);
  padding: 100px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero { padding: 130px 0 90px; }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero h1 .gold { color: var(--gold); }
/* Remove forced line break on small screens */
.hero h1 .hero-br { display: none; }

@media (min-width: 576px) {
  .hero h1 { font-size: 2.6rem; }
  .hero h1 .hero-br { display: inline; }
}
@media (min-width: 992px) {
  .hero h1 { font-size: 3.2rem; }
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 30px;
}
@media (min-width: 768px) {
  .hero-sub { font-size: 1.18rem; margin-bottom: 36px; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
/* Full-width buttons on very small screens */
@media (max-width: 359px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-gold,
  .hero-actions .btn-outline-gold { justify-content: center; }
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
@media (min-width: 576px) {
  .hero-stats { gap: 40px; margin-top: 48px; }
}
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}
@media (min-width: 576px) {
  .hero-stat-num { font-size: 1.9rem; }
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* Hero right-side visual card */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}
@media (min-width: 992px) {
  .hero-visual { margin-top: 0; }
}

.hero-card-mock {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
}
@media (min-width: 768px) {
  .hero-card-mock { padding: 36px; border-radius: 24px; }
}

.hero-card-mock .mock-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-card-mock .mock-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-card-mock .mock-step:last-child { margin-bottom: 0; }

.mock-step-num {
  width: 32px; height: 32px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.mock-step-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding-top: 4px;
  line-height: 1.5;
}

/* ---------- Services Cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
@media (min-width: 768px) {
  .service-card { padding: 40px 30px 36px; }
}

.service-card .card-icon {
  width: 68px; height: 68px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.7rem;
  color: var(--gold);
}
.service-card h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--gray);
  font-size: 0.93rem;
  flex: 1;
}
.service-card .card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin: 16px 0 20px;
}
.service-card .card-price span {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* ---------- How It Works ---------- */
.bg-navy { background: var(--navy); }
.bg-off-white { background: var(--off-white); }

.how-step {
  text-align: center;
  padding: 0 12px;
}
.how-step-number {
  width: 52px; height: 52px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.how-step h5 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.how-step p { color: var(--gray); font-size: 0.92rem; }

/* Connector line — desktop only */
.how-steps-row { position: relative; }
@media (min-width: 768px) {
  .how-steps-row::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 16.66%;
    right: 16.66%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    border-radius: 2px;
    z-index: 0;
  }
}

/* Mobile vertical flow for how-it-works */
@media (max-width: 767px) {
  .how-step { margin-bottom: 32px; }
  .how-step:last-child { margin-bottom: 0; }
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 44px 0;
  color: var(--white);
}
@media (min-width: 768px) {
  .stats-strip { padding: 56px 0; }
}

.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}
@media (min-width: 576px) {
  .stat-item .stat-num { font-size: 2.6rem; }
}
.stat-item .stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ---------- Trust Badges ---------- */
.trust-section { background: var(--off-white); }

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
}
.trust-badge .badge-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
}
.trust-badge h6 {
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.trust-badge p {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-light);
}
.faq-item:first-child { border-top: 1px solid var(--gray-light); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  gap: 14px;
  transition: color var(--transition);
  font-family: inherit;
}
.faq-question:hover { color: var(--gold); }

@media (min-width: 576px) {
  .faq-question { padding: 22px 0; font-size: 1.05rem; }
}

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--gold);
  color: var(--navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 18px;
}
.faq-answer p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 52px 0;
}
@media (min-width: 768px) {
  .cta-banner { padding: 70px 0; }
}
.cta-banner h2 {
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 12px;
}
@media (min-width: 576px) {
  .cta-banner h2 { font-size: 2.2rem; }
}
.cta-banner h2 .gold { color: var(--gold); }
.cta-banner p {
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 0.97rem;
}
@media (min-width: 576px) {
  .cta-banner p { font-size: 1.05rem; margin-bottom: 32px; }
}
.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 359px) {
  .cta-banner .cta-buttons { flex-direction: column; align-items: center; }
}

/* ---------- Blog Cards ---------- */
.blog-card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-img {
  height: 170px;
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (min-width: 576px) {
  .blog-card-body { padding: 24px; }
}
.blog-card-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}
.blog-card-body h5 {
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.blog-card-body p {
  color: var(--gray);
  font-size: 0.9rem;
  flex: 1;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}

/* ---------- Blog Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  padding: 48px 0 36px;
  text-align: center;
}
@media (min-width: 768px) {
  .page-header { padding: 60px 0 48px; }
}
.page-header h1 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}
@media (min-width: 576px) {
  .page-header h1 { font-size: 2.4rem; }
}
.page-header h1 .gold { color: var(--gold); }
.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Contact Form Inputs ---------- */
.contact-input {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  font-family: inherit;
}
.contact-input--sm {
  padding: 9px 12px;
  font-size: 0.88rem;
  min-height: 36px;
}
.contact-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}
.contact-input::placeholder { color: #9ca3af; }
.contact-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

textarea.contact-input { resize: vertical; min-height: 130px; }

label.form-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

/* ---------- Step Form (SRL / PFA / Radiere) ---------- */

/* Progress bar - Mobile first */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto 28px;
  position: relative;
  padding: 0 8px 20px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
@media (min-width: 480px) {
  .progress-steps {
    padding-bottom: 32px;
    margin-bottom: 36px;
  }
}
@media (min-width: 576px) {
  .progress-steps {
    margin-bottom: 42px;
    padding: 0 0 36px;
  }
}
@media (min-width: 768px) {
  .progress-steps {
    margin-bottom: 48px;
    padding-bottom: 32px;
  }
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .step-circle {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}
@media (min-width: 576px) {
  .step-circle {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

.step-circle.active {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
@media (min-width: 576px) {
  .step-circle.active {
    box-shadow: 0 0 0 4px rgba(201,168,76,0.25);
  }
}

.step-circle.completed {
  background: var(--navy);
  color: var(--white);
}

.step-label {
  font-size: 0.68rem;
  color: var(--gray);
  text-align: center;
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 85px;
  white-space: normal;
  line-height: 1.2;
  display: none;
  pointer-events: none;
}
@media (min-width: 480px) {
  .step-label {
    display: block;
    top: 42px;
    font-size: 0.7rem;
    max-width: 90px;
  }
}
@media (min-width: 576px) {
  .step-label {
    top: 47px;
    font-size: 0.72rem;
    max-width: 100px;
  }
}
@media (min-width: 768px) {
  .step-label {
    max-width: none;
    white-space: nowrap;
  }
}

.step-connector {
  width: 20px;
  height: 2px;
  background: var(--gray-light);
  transition: background var(--transition);
  flex-shrink: 0;
  margin: 0 2px;
}
@media (min-width: 480px) {
  .step-connector {
    width: 28px;
    height: 3px;
    margin: 0 4px;
  }
}
@media (min-width: 576px) {
  .step-connector {
    width: 40px;
  }
}
@media (min-width: 768px) {
  .step-connector {
    width: 52px;
    margin: 0;
  }
}

.step-circle.completed + .step-connector {
  background: var(--navy);
}

/* Form panel */
.form-panel {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  margin: 0 auto;
}
@media (min-width: 576px) {
  .form-panel { padding: 40px 36px; }
}

.form-panel h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.25rem;
}
@media (min-width: 576px) {
  .form-panel h3 { font-size: 1.4rem; }
}
.form-panel > p.step-desc {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-row-gap { margin-bottom: 16px; }

/* File upload area */
.upload-area {
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  background: var(--gold-pale);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}
.upload-area:hover { background: #efe3c0; }
@media (min-width: 576px) {
  .upload-area { padding: 40px 24px; }
}
.upload-area .upload-icon { font-size: 2.2rem; margin-bottom: 10px; color: var(--gold); }
.upload-area p { color: var(--gray); font-size: 0.88rem; margin: 0; line-height: 1.5; }
.upload-area p strong { color: var(--navy); }
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}

.uploaded-files { margin-top: 14px; }
.uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 0.85rem;
  word-break: break-all;
}
.uploaded-file .file-name { flex: 1; min-width: 0; }
.uploaded-file .remove-file {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
  flex-shrink: 0;
}

/* Form nav buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
}
.btn-back {
  background: none;
  border: none;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 10px 0;
  transition: color var(--transition);
  font-family: inherit;
}
.btn-back:hover { color: var(--navy); }

.price-summary {
  text-align: center;
  margin-top: 22px;
  padding: 16px;
  background: var(--gold-pale);
  border-radius: var(--radius);
}
.price-summary .price-label { font-size: 0.88rem; color: var(--gray); }
.price-summary .price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
}
.price-summary .price-amount span { font-size: 0.88rem; color: var(--gray); font-weight: 500; }

/* CAEN select search */
.caen-search-wrap { position: relative; }
.caen-search-wrap input { padding-right: 38px; }
.caen-search-wrap .search-icon {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}
.caen-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--gray-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  display: none;
}
.caen-list.open { display: block; }
.caen-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition);
  user-select: none;
}
.caen-item:last-child { border-bottom: none; }
.caen-item:hover { background: var(--gold-pale); }
.caen-item .caen-code { font-weight: 700; color: var(--navy); margin-right: 8px; }
.caen-group-header {
  padding: 6px 14px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-mid, #6b7280);
  background: var(--off-white, #f9fafb);
  border-bottom: 1px solid var(--gray-light);
  user-select: none;
  pointer-events: none;
}

.caen-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.caen-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}
.caen-tag .remove-caen {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
}

/* ---------- Footer ---------- */
.footer-main {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
@media (min-width: 768px) {
  .footer-main { padding: 70px 0 0; }
}
.footer-main h5 {
  color: var(--white);
  font-size: 0.97rem;
  margin-bottom: 16px;
}
.footer-main a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: block;
  margin-bottom: 8px;
}
.footer-main a:hover { color: var(--gold); }

.footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-brand .gold { color: var(--gold); }
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 575px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  margin: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* ---------- Floating Contact Button ---------- */
.float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px; height: 54px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 18px rgba(201,168,76,0.4);
  cursor: pointer;
  z-index: 10001;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(201,168,76,0.5);
  color: var(--navy);
}
@media (min-width: 768px) {
  .float-btn { width: 58px; height: 58px; font-size: 1.6rem; bottom: 30px; right: 30px; }
}

/* ---------- Upload Modal ---------- */
.modal-upload .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  margin: 12px;
}
.modal-upload .modal-header {
  border-bottom: 1px solid var(--gray-light);
  padding: 20px 22px 14px;
}
.modal-upload .modal-header h5 {
  color: var(--navy);
  font-size: 1.1rem;
}
.modal-upload .modal-body {
  padding: 20px 22px 24px;
}
@media (min-width: 576px) {
  .modal-upload .modal-content { margin: 0; }
  .modal-upload .modal-header { padding: 24px 28px 16px; }
  .modal-upload .modal-header h5 { font-size: 1.2rem; }
  .modal-upload .modal-body { padding: 24px 28px 28px; }
}

/* ---------- Contact page layout ---------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 46px; height: 46px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-info-item h6 {
  color: var(--navy);
  margin-bottom: 2px;
  font-size: 0.93rem;
}
.contact-info-item p {
  color: var(--gray);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Contact map ---------- */
.contact-map-section {
  margin-top: -22px;
  padding: 0 0 8px;
  position: relative;
  z-index: 2;
}
.contact-map-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-light);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.contact-map-head h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 1.18rem;
}
.contact-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 999px;
  padding: 4px 10px;
}
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), transform var(--transition);
}
.contact-map-link:hover {
  color: var(--gold);
  transform: translateY(-1px);
}
.contact-map-frame {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 767px) {
  .contact-map-section {
    margin-top: -14px;
  }
  .contact-map-head {
    flex-direction: column;
    padding: 14px 14px 12px;
  }
  .contact-map-head h2 {
    font-size: 1rem;
  }
  .contact-map-link {
    font-size: 0.82rem;
  }
  .contact-map-frame {
    height: 300px;
  }
}

/* ---------- Member type toggle (single / multi) ---------- */
.member-type-toggle {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}
.member-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  user-select: none;
}
.member-type-option:hover {
  border-color: var(--gold);
  color: var(--navy);
}
.member-type-option.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
}

/* ---------- Member card ---------- */
.member-card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--white);
  margin-top: 16px;
}
.member-card--founder {
  border-color: var(--gold);
  background: #fffdf5;
}

.member-card__header {
  margin-bottom: 14px;
}
.member-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.member-card__upload {
  margin-bottom: 18px;
}

/* Extra-member card header row */
.member-card__extra-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.member-card__extra-header strong {
  font-size: 0.95rem;
  color: var(--navy);
}

/* Compact upload variant (inside founder card) */
.upload-area--compact {
  padding: 20px 14px;
}
@media (min-width: 576px) {
  .upload-area--compact { padding: 24px 18px; }
}

/* Small button variant */
.btn--sm {
  font-size: 0.85rem !important;
  padding: 8px 18px !important;
}


/* ---------- Details-box internals ---------- */
.details-box > summary {
  margin-bottom: 14px;
}
.details-box .row.g-3 {
  margin-bottom: 0;
}
/* Sub-section label inside <details> or address group */
.details-sub-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--gold);
  margin-bottom: 10px;
  margin-top: 14px;
}
.details-sub-label:first-of-type,
#personalFields > .details-sub-label:first-of-type {
  margin-top: 0;
}
.details-sub-label--spaced {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}
/* Details toggle arrow */
.details-box > summary::marker {
  color: var(--gold);
}

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-gold-pale { background: var(--gold-pale) !important; }

/* ---------- Scrollbar (webkit) ---------- */
.caen-list::-webkit-scrollbar { width: 6px; }
.caen-list::-webkit-scrollbar-track { background: var(--off-white); }
.caen-list::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }
.caen-list::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* ========== Progress Bar (Linear) ========== */
.progress-bar-container {
  position: relative;
  margin-bottom: 40px;
  padding: 0 20px;
}

.progress-bar-bg {
  height: 8px;
  background: var(--gray-light);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #d4a853 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(201,168,76,0.3);
}

.progress-bar-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -4px;
}

.progress-bar-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 100px;
}

.progress-bar-step .step-dot {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid var(--gray-light);
  border-radius: 50%;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  z-index: 2;
}

.progress-bar-step.active .step-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}

.progress-bar-step.completed .step-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.progress-bar-step .step-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-mid);
  margin-bottom: 4px;
  text-align: center;
}

.progress-bar-step.active .step-name {
  color: var(--navy);
  font-weight: 700;
}

.progress-bar-step .step-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.progress-bar-step.active .step-percent {
  background: var(--gold);
  color: #1f1f1f;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .progress-bar-container {
    padding: 0 5px;
    margin-bottom: 30px;
  }

  .progress-bar-bg {
    height: 6px;
  }

  .progress-bar-step {
    max-width: 80px;
  }

  .progress-bar-step .step-name {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .progress-bar-step .step-percent {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  .progress-bar-step .step-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
    margin-bottom: 6px;
  }

  .progress-bar-step.active .step-dot {
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  }
}

@media (max-width: 576px) {
  .progress-bar-container {
    padding: 0;
    margin-bottom: 25px;
  }

  .progress-bar-bg {
    height: 4px;
  }

  .progress-bar-step {
    max-width: 60px;
  }

  .progress-bar-step .step-name {
    font-size: 0.55rem;
    margin-bottom: 2px;
  }

  .progress-bar-step .step-percent {
    display: none;
  }

  .progress-bar-step .step-dot {
    width: 8px;
    height: 8px;
    border-width: 2px;
    margin-bottom: 4px;
  }
}

@media (max-width: 400px) {
  .progress-bar-step .step-name {
    font-size: 0.5rem;
  }

  .progress-bar-step .step-dot {
    width: 7px;
    height: 7px;
    border-width: 1.5px;
  }
}

/* ========== Payment Method Cards ========== */
.payment-method-card {
  display: block;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: var(--transition);
}

.payment-method-card:hover .payment-method-content {
  border-color: var(--gold);
  background: #fffbf0;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-content {
  border-color: var(--gold);
  background: #fffbf0;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.payment-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.payment-method-info {
  flex: 1;
}

.payment-method-info strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.payment-method-info small {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- Punct de Lucru Modal ---------- */
.punct-choice-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.punct-choice-row .btn.active-choice {
  background: var(--gold);
  color: #111827;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.35);
}

.puncte-lucru-inline {
  margin-top: 1rem;
}

.punct-empty-state {
  text-align: center;
  color: #6b7280;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.85rem;
}

.punct-lucru-inline-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.punct-lucru-inline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.punct-lucru-inline-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.punct-lucru-inline-head i {
  color: var(--gold);
}

.punct-asociatie-details {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.punct-vecini-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.punct-vecin-row {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 1.2fr auto;
  gap: 0.55rem;
  align-items: end;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem;
}

.punct-vecin-row .form-row-gap {
  margin-bottom: 0;
}

.punct-vecin-field .form-label {
  font-size: 0.84rem;
  margin-bottom: 0.2rem;
}

.punct-vecin-row .contact-input {
  min-height: 38px;
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
}
.punct-vecin-row .contact-input--sm {
  min-height: 34px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.punct-vecin-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.punct-vecin-delete {
  min-width: 102px;
  white-space: nowrap;
}

.punct-vecin-delete.btn--sm {
  height: 36px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.punct-vecini-info {
  font-size: 0.85rem;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.punct-caen-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.punct-caen-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  background: #fff;
  font-size: 0.84rem;
  line-height: 1.2;
}

.punct-caen-row--simple {
  justify-content: flex-start;
}

.punct-caen-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 46px;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
}

.punct-caen-name {
  font-size: 0.78rem;
  line-height: 1.18;
  color: #4b5563;
}

.punct-mini-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.punct-mini-stepper-line {
  flex: 1;
  height: 1px;
  background: #d1d5db;
}

.punct-mini-step {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.punct-mini-step .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.punct-mini-step.is-active {
  border-color: #9ca3af;
  background: #f9fafb;
}

.punct-mini-step.is-done .dot {
  background: #e5e7eb;
}

.punct-address-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.punct-substep .form-row-gap {
  margin-bottom: 0.45rem;
}

.punct-address-grid .form-label {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.punct-address-grid .contact-input {
  min-height: 38px;
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
}

.punct-address-grid textarea.contact-input {
  min-height: 56px;
}

.punct-alte-detalii {
  min-height: 56px !important;
}

.punct-col-span-2 {
  grid-column: span 2;
}

.punct-col-span-3 {
  grid-column: span 3;
}

.punct-col-span-4 {
  grid-column: span 4;
}

.punct-col-span-full {
  grid-column: 1 / -1;
}

.punct-substep-nav {
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 992px) {
  .punct-vecin-row {
    grid-template-columns: 1fr 1fr;
  }

  .punct-vecin-field--plan {
    grid-column: 1 / 2;
  }

  .punct-vecin-actions {
    grid-column: 2 / 3;
  }
}

@media (max-width: 576px) {
  .punct-vecin-row {
    grid-template-columns: 1fr;
  }

  .punct-vecin-field--plan,
  .punct-vecin-actions {
    grid-column: 1 / -1;
  }

  .punct-vecin-delete {
    width: 100%;
    min-width: 0;
  }
}

.punct-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 1rem;
}

.punct-modal-overlay.show {
  display: flex;
}

.punct-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.punct-modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.punct-modal-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.punct-modal-header h4 i {
  color: var(--gold);
}

.punct-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.punct-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.punct-modal-tabs {
  display: flex;
  gap: 0;
  background: #f8f9fa;
  padding: 0 2rem;
  border-bottom: 2px solid #e5e7eb;
  flex-shrink: 0;
}

.punct-tab {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
  top: 2px;
}

.punct-tab i {
  opacity: 0.7;
}

.punct-tab:hover {
  color: var(--navy);
  background: rgba(201, 168, 76, 0.05);
}

.punct-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.punct-tab.active i {
  opacity: 1;
  color: var(--gold);
}

.punct-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.punct-modal-footer {
  background: #f8f9fa;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Modal responsive */
@media (max-width: 768px) {
  .punct-choice-row .btn {
    width: 100%;
  }

  .punct-lucru-inline-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .punct-address-grid {
    grid-template-columns: 1fr;
  }

  .punct-col-span-2,
  .punct-col-span-3,
  .punct-col-span-4 {
    grid-column: span 1;
  }

  .punct-col-span-full {
    grid-column: span 1;
  }

  .punct-mini-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .punct-mini-stepper-line {
    display: none;
  }

  .punct-mini-step {
    width: 100%;
    justify-content: center;
    padding: 0.34rem 0.5rem;
    font-size: 0.79rem;
  }

  .punct-mini-step .dot {
    width: 16px;
    height: 16px;
    font-size: 0.66rem;
  }

  .punct-caen-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-areas:
      "check code"
      "check name";
    column-gap: 0.45rem;
    row-gap: 0.16rem;
    padding: 0.38rem 0.46rem;
  }

  .punct-caen-row input[type="checkbox"] {
    grid-area: check;
    width: 18px;
    height: 18px;
    margin: 0.12rem 0 0;
  }

  .punct-caen-code {
    grid-area: code;
    min-width: 42px;
    font-size: 0.73rem;
    padding: 0.12rem 0.36rem;
  }

  .punct-caen-name {
    grid-area: name;
    font-size: 0.73rem;
    line-height: 1.15;
    color: #4b5563;
  }

  .punct-caen-row--simple {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.42rem 0.5rem;
  }

  .punct-caen-row--simple span {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .punct-substep-nav {
    gap: 0.5rem;
  }

  .punct-substep-nav .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 12px !important;
  }

  .punct-modal {
    max-height: 95vh;
    width: 100%;
    margin: 0;
  }

  .punct-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .punct-modal-header h4 {
    font-size: 1.1rem;
  }

  .punct-modal-tabs {
    padding: 0 1rem;
    overflow-x: auto;
  }

  .punct-tab {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .punct-tab i {
    display: none;
  }

  .punct-modal-body {
    padding: 1.5rem;
  }

  .punct-modal-footer {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .punct-modal-footer .ms-auto {
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .punct-modal-footer button {
    width: 100%;
  }
}

/* Contract type grid in modal */
.contract-type-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Punct de lucru cards (in the list) */
.punct-lucru-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.punct-lucru-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.15);
}

.punct-lucru-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.punct-lucru-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.punct-lucru-info {
  flex: 1;
}

.punct-lucru-info strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.punct-lucru-info small {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
}

.punct-lucru-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit-punct,
.btn-delete-punct {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-edit-punct:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-delete-punct:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

@media (max-width: 576px) {
  .punct-lucru-card-header {
    flex-wrap: wrap;
  }

  .punct-lucru-info {
    flex: 1 1 100%;
    order: 2;
    margin-top: 0.75rem;
  }

  .punct-lucru-actions {
    order: 3;
  }
}

