/* SOP 05.1: latimea comuna pentru header, continut si footer (coloana headerului: 1400 px - 2 x 40 px) */
:root { --fe-inner: 1320px; }

/* Baza comuna v2 (inlocuieste CSS-ul GHL). Stilurile paginilor raman in blocurile lor. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; font-family: 'Poppins', 'Montserrat', sans-serif; color: #1A2E20; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
main { display: block; }

/* Formulare proprii */
.fe-form { font-family: 'Montserrat', sans-serif; text-align: left; color: #1A2E20; max-width: 100%; }
.fe-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.fe-f { display: flex; flex-direction: column; gap: 6px; }
.fe-f label { font-size: 14px; font-weight: 600; color: #0D1F14; line-height: 1.35; }
.fe-f label span { color: #00A651; }
.fe-f input, .fe-f select, .fe-f textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid #D8EAE0; border-radius: 10px;
  background: #fff; color: #1A2E20; width: 100%; box-sizing: border-box; min-height: 46px;
}
.fe-f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23007A3D' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fe-f input:focus, .fe-f select:focus, .fe-f textarea:focus { outline: none; border-color: #00A651; box-shadow: 0 0 0 3px rgba(0,166,81,.15); }
.fe-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; margin: 16px 0 12px; color: #5A7A65; }
.fe-consent input { margin-top: 3px; accent-color: #00A651; width: 18px; height: 18px; flex: none; }
.fe-consent a { color: #007A3D; }
.fe-submit {
  font: inherit; font-weight: 700; font-size: 16px; width: 100%; padding: 15px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #00A651, #007A3D); color: #fff; margin-top: 8px;
}
.fe-submit:hover { filter: brightness(1.06); }
.fe-submit:disabled { opacity: .6; cursor: wait; }
.fe-status { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.fe-status:empty { display: none; }
.fe-ok { color: #007A3D; background: #e6f7ee; padding: 14px; border-radius: 10px; }
.fe-err { color: #b42318; }
.fe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 6px; }

/* "Pe scurt", tabel CAEN, FAQ (adaugate in v2) */
.fe-v2 { font-family: 'Montserrat', sans-serif; color: #1A2E20; }
.fe-v2 .wrap { max-width: calc(var(--fe-inner) + 40px); margin: 0 auto; padding: 0 20px; }
.fe-brief { background: #f7faf8; border-bottom: 1px solid #D8EAE0; padding: 22px 0; }
.fe-brief h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #007A3D; margin: 0 0 12px; }
.fe-brief dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.fe-brief dl div { background: #fff; border: 1px solid #D8EAE0; border-radius: 12px; padding: 12px 14px; }
.fe-brief dt { font-size: 12px; color: #5A7A65; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.fe-brief dd { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.fe-brief .status { color: #007A3D; }
.fe-sec { padding: 64px 0; }
.fe-sec h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 14px; color: #0D1F14; font-weight: 800; }
.fe-sec p.lead { color: #5A7A65; font-size: 16px; line-height: 1.7; max-width: 760px; margin: 0 0 28px; }
.fe-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid #D8EAE0; border-radius: 12px; overflow: hidden; }
.fe-table th, .fe-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #D8EAE0; vertical-align: top; }
.fe-table th { background: #e6f7ee; color: #007A3D; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.fe-table .yes { color: #007A3D; font-weight: 700; }
.fe-table .no { color: #b42318; font-weight: 700; }
.fe-table .maybe { color: #9a6700; font-weight: 700; }
.fe-table-wrap { overflow-x: auto; }
.fe-faq details { border: 1px solid #D8EAE0; border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.fe-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.fe-faq summary::-webkit-details-marker { display: none; }
.fe-faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: #00A651; }
.fe-faq details[open] summary::after { content: '–'; }
.fe-faq details p { margin: 0 0 16px; line-height: 1.7; color: #1A2E20; }
.fe-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fe-links a { display: block; border: 1px solid #D8EAE0; border-radius: 12px; padding: 16px 18px; text-decoration: none; color: #0D1F14; background: #fff; transition: border-color .2s; }
.fe-links a:hover { border-color: #00A651; }
.fe-links strong { display: block; color: #007A3D; margin-bottom: 4px; }
.fe-links span { font-size: 14px; color: #5A7A65; line-height: 1.5; }
.fe-li-follow { display: inline-flex; align-items: center; gap: 8px; background: #0A66C2; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; font-family: 'Montserrat', sans-serif; }
.fe-li-follow:hover { background: #004182; }
.fe-li-follow svg { width: 16px; height: 16px; fill: currentColor; }

/* Pagini legale */
.fe-legal { padding: 140px 0 70px; line-height: 1.75; font-size: 16px; }
.fe-legal .wrap { max-width: 880px; }
.fe-legal h1, .fe-legal h2 { font-size: clamp(24px, 3vw, 34px); color: #0D1F14; margin: 0 0 10px; line-height: 1.25; }
.fe-legal h2 + h2 { font-size: 15px; color: #5A7A65; font-weight: 500; margin-bottom: 28px; }
.fe-legal p { margin: 0 0 12px; }
.fe-legal a { color: #007A3D; }

/* LinkedIn Follow (footer + contact) */
.fe-li-footer { margin-top: 16px; min-height: 22px; }
.fe-contact-form { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; margin: 40px 0; padding: 36px; border: 1px solid #D8EAE0; border-radius: 20px; background: #fff; box-shadow: 0 10px 40px rgba(0,80,40,.06); }
.fe-contact-form h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; color: #0D1F14; }
.fe-contact-form__intro p { font-family: 'Montserrat', sans-serif; color: #5A7A65; line-height: 1.7; margin: 0 0 18px; }
.fe-li-box { background: #f7faf8; border: 1px solid #D8EAE0; border-radius: 14px; padding: 16px 18px; }
.fe-li-box p { margin: 0 0 12px !important; color: #1A2E20 !important; font-size: 14px; }
@media (min-width: 640px) { .fe-contact-form .fe-grid { grid-template-columns: 1fr 1fr; } .fe-f--wide { grid-column: 1 / -1; } }
@media (max-width: 860px) { .fe-contact-form { grid-template-columns: 1fr; padding: 22px; gap: 24px; } }
.fe-modal-form { padding: 8px 4px 16px; }

/* Acord cookie (SOP 11.2) */
#fe-consent { position: fixed; z-index: 99999; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
#fe-consent .fe-c-box { pointer-events: auto; max-width: 560px; width: 100%; background: #fff; color: #1A2E20; border: 1px solid #D8EAE0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,40,20,.18); padding: 18px 20px; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.55; }
#fe-consent strong { font-size: 16px; color: #0D1F14; }
#fe-consent p { margin: 6px 0 10px; color: #5A7A65; }
#fe-consent a { color: #007A3D; }
#fe-consent label { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; }
#fe-consent input { accent-color: #00A651; width: 17px; height: 17px; }
.fe-c-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fe-c-btns button { flex: 1 1 auto; font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 10px; border: 1.5px solid #D8EAE0; background: #fff; color: #007A3D; cursor: pointer; }
.fe-c-btns .fe-c-primary { background: #00A651; border-color: #00A651; color: #fff; }
.fe-map-ph { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; z-index: 2; font: 700 14px 'Montserrat', sans-serif; padding: 12px 18px; border-radius: 10px; border: 0; background: #00A651; color: #fff; cursor: pointer; }
.map-wrapper { position: relative; }

/* Selector de limbă RO / EN (SOP 06.4: păstrează pagina echivalentă) */
.fe-lang { display: inline-flex; align-items: center; gap: 2px; margin-right: 12px; font: 700 13px 'Montserrat', sans-serif; border: 1.5px solid #D8EAE0; border-radius: 999px; padding: 3px; background: #fff; }
.fe-lang a, .fe-lang span { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: #5A7A65; line-height: 1; }
.fe-lang span[aria-current] { background: #00A651; color: #fff; }
.fe-lang a:hover { color: #007A3D; background: #e6f7ee; }
.fe-lang--mobile { margin: 0 0 14px; align-self: flex-start; }
.fe-legal-note { background: #fff8e6; border: 1px solid #f3dfa6; border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #6b5200; margin: 0 0 24px; }
#fe-topbar .fe-lang { margin-right: 14px; border-color: rgba(255,255,255,.25); background: transparent; font-size: 12px; padding: 2px; }
#fe-topbar .fe-lang a { color: rgba(255,255,255,.8); padding: 3px 8px; }
#fe-topbar .fe-lang a:hover { color: #fff; background: rgba(255,255,255,.12); }
#fe-topbar .fe-lang span[aria-current] { padding: 3px 8px; }
#fe-topbar .tb-right { display: flex; align-items: center; }
/* Header GHL: la 1024–1279 px meniul + butonul CTA nu încap (SOP 05.3); rămâne linkul Contact din meniu */
@media (min-width: 1000px) and (max-width: 1279px) { #fe-header .h-cta-wrap .h-cta { display: none !important; } }

/* Pagini legale: cuprins lateral fix pe desktop, <details> pe mobil (SOP 05.2) */
.fe-legal { padding-top: 150px; }
.fe-legal .wrap { max-width: calc(var(--fe-inner) + 40px); }
.fe-legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.fe-legal-body { max-width: 860px; min-width: 0; }
.fe-legal h1 { font-size: clamp(26px, 3.2vw, 38px); color: #0D1F14; margin: 0 0 6px; line-height: 1.2; }
.fe-legal h1 strong, .fe-legal h2 strong, .fe-legal h3 strong { font-weight: inherit; }
.fe-legal-date { color: #5A7A65; font-size: 14px; margin: 0 0 26px !important; }
.fe-legal h2 { font-size: 21px; color: #0D1F14; margin: 34px 0 10px; scroll-margin-top: 24px; font-weight: 800; }
.fe-legal h3 { font-size: 17px; color: #007A3D; margin: 22px 0 8px; scroll-margin-top: 24px; font-weight: 700; }
.fe-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #D8EAE0; border-radius: 14px; padding: 16px 14px; background: #f7faf8; font-family: 'Montserrat', sans-serif; }
.fe-toc-t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #007A3D; font-weight: 800; margin: 0 0 8px !important; }
.fe-toc ol, .fe-toc-m ol { list-style: none; margin: 0; padding: 0; }
.fe-toc li a, .fe-toc-m li a { display: block; padding: 6px 8px; border-radius: 8px; color: #1A2E20; text-decoration: none; font-size: 14px; line-height: 1.35; }
.fe-toc li a:hover, .fe-toc li a.active { background: #e6f7ee; color: #007A3D; }
.fe-toc-m { display: none; border: 1px solid #D8EAE0; border-radius: 12px; background: #f7faf8; padding: 0 14px; margin: 0 0 24px; }
.fe-toc-m summary { cursor: pointer; font-weight: 800; padding: 12px 0; color: #007A3D; font-family: 'Montserrat', sans-serif; }
.fe-toc-m ol { padding-bottom: 10px; }
@media (max-width: 900px) {
  .fe-legal { padding-top: 110px; }
  .fe-legal-grid { grid-template-columns: 1fr; gap: 0; }
  .fe-toc { display: none; }
  .fe-toc-m { display: block; }
}

/* Confirmare / reamintire in locul formularului */
.fe-done { font-family: 'Montserrat', sans-serif; background: #e6f7ee; border: 1.5px solid #b9e4cb; border-radius: 16px; padding: 22px 22px 16px; color: #1A2E20; text-align: left; line-height: 1.6; }
.fe-done--recent { background: #fff8e6; border-color: #f3dfa6; }
.fe-done--partial { background: #f7faf8; border-color: #D8EAE0; }
.fe-done__t { font-size: 18px; font-weight: 800; color: #007A3D; margin: 0 0 12px !important; }
.fe-done--recent .fe-done__t { color: #7a5b00; }
.fe-done dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 12px; }
.fe-done dl div { background: rgba(255,255,255,.75); border-radius: 10px; padding: 8px 12px; }
.fe-done dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5A7A65; }
.fe-done dd { margin: 0; font-weight: 800; font-size: 15px; word-break: break-word; }
.fe-done p { margin: 0 0 8px; font-size: 14px; }
.fe-done__note { color: #5A7A65; }

/* Breadcrumbs (SOP 10.2) */
.fe-crumbs { font-family: 'Montserrat', sans-serif; font-size: 13px; background: #f7faf8; border-bottom: 1px solid #D8EAE0; }
.fe-crumbs ol { list-style: none; margin: 0 auto; padding: 10px 20px; max-width: calc(var(--fe-inner) + 40px); display: flex; flex-wrap: wrap; gap: 4px 0; }
.fe-crumbs li { color: #5A7A65; }
.fe-crumbs li + li::before { content: '›'; margin: 0 8px; color: #8DAA96; }
.fe-crumbs a { color: #007A3D; text-decoration: none; }
.fe-crumbs a:hover { text-decoration: underline; }
.fe-crumbs li[aria-current] { color: #0D1F14; font-weight: 600; }
@media (max-width: 1440px) { .fe-crumbs ol { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 768px) { .fe-crumbs ol { padding: 8px 20px; } }

/* v3 — banda de apartenență la grup (SOP 12.2, model mariusion.us / energyinv.com) */
.fe-group { display: flex; flex-wrap: wrap; gap: 14px 48px; padding: 4px 0 24px; margin: -6px 0 26px; border-bottom: 1px solid rgba(0,128,55,.14); }
.fe-group-row { flex: 1 1 420px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.fe-group-row p { margin: 0; color: #6C757D; font-size: 13.5px; line-height: 1.6; }
.fe-group-row p a { color: #008037; font-weight: 500; text-decoration: none; }
.fe-group-row p a:hover { text-decoration: underline; }
.fe-group-logo img { display: block; height: 35px; width: auto; }
.fe-group-cbc img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.fe-group-logo, .fe-group-cbc { flex: 0 0 auto; }
.fe-group-tags { white-space: nowrap; }
.fe-group-tags a { font-weight: 600; }
@media (max-width: 600px) {
  .fe-group { gap: 18px; }
  .fe-group-row { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 10px; }
  .fe-group-tags { white-space: normal; }
}
