/* ===========================
   Overrides peste style.css de pe popandplay.ro
   (style.css are reguli globale care pot sparge LP-ul nostru)
   =========================== */
body.lp { background: #C8000B !important; }
body.lp #magazin_headline, body.lp #acasa_HP { background: none !important; }

/* Header padding alinia cu popandplay.ro + culoare identica cu produse.php */
body.lp header {
  padding: 7px !important;
  background: #e7151e !important;
}
@media (max-width: 768px) {
  body.lp header .menu.is-open { background: #e7151e !important; }
}

/* Hamburger menu open — ascuns pe iPad (992px) + mobile */
@media (max-width: 992px) {
  header .menu {
    display: none;
  }
  header .menu.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e7151e;
    padding: 8px 0;
    z-index: 60;
    border-top: 1px solid #fff;
  }
  header .menu.is-open li {
    display: block;
    width: 100%;
    padding: 0;
  }
  header .menu.is-open li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
}

/* Pringles x Football — Landing Page + Pop-up Inscriere
   Stil pop-up: identic cu popandplay.ro/promotie_nationala.php (campanie Monopoly anterioara)
   Hero: JPG primit de la designer, hot zones invizibile peste butoanele INSCRIE-TE si REGULAMENT.
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #C8000B;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #fff;
}

body.lp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   HERO
   =========================== */
.lp-hero {
  position: relative;
  width: 100%;
  max-width: 481px;
  margin: 0 auto;
  background: #C8000B;
}
.lp-hero__visual { display: block; width: 100%; line-height: 0; }
.lp-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Desktop — imaginea 3840x2160 (@2x) permite max-width pina la 1920px crisp */
@media (min-width: 900px) {
  .lp-hero { max-width: 1920px; }
}

/* Hot zones (clickable invisible) — coordonate din PSD */
.lp-hotzone {
  position: absolute;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,211,0,.35);
}
.lp-hotzone--inscrie    { left: 23.3%; width: 53.8%; top: 51.94%; height: 2.62%; }
.lp-hotzone--regulament { left: 23.3%; width: 53.8%; top: 55.95%; height: 2.62%; }

@media (min-width: 900px) {
  .lp-hotzone--inscrie    { left: 44.64%; width: 13.85%; top: 88.7%; height: 5.56%; }
  .lp-hotzone--regulament { left: 61.77%; width: 13.85%; top: 88.7%; height: 5.56%; }
}

.lp-hotzone:active { background: rgba(255,211,0,.25); }

/* Debug — ?debug=1 */
.lp-debug .lp-hotzone {
  outline: 2px dashed lime;
  background: rgba(0,255,0,.18);
}

/* ===========================
   POP-UP INSCRIERE
   (stil identic promotie_nationala — fundal alb, border-radius topleft+bottomleft 40px,
   buton rosu rotunjit, input-uri cu placeholder centrat)
   =========================== */

#inscrie {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.65);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0 80px;
  -webkit-overflow-scrolling: touch;
  margin: 0 !important;
}
#inscrie.hidden { display: none !important; }

/* Cand modal e deschis, blocheaza scroll background (iOS-safe via clasa, NU inline overflow:hidden) */
html.modal-open, body.modal-open {
  overflow: hidden;
  touch-action: none;
}
/* Dar modal-ul ramane scroll-able */
html.modal-open #inscrie, body.modal-open #inscrie {
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

#inscrie .form-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 550px;
  width: calc(100% - 32px);
  padding: 40px 24px 24px;
  background-color: #fff;
  color: #000;
  border-radius: 12px;
  box-shadow: 0px 0px 18px 2px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
  #inscrie { padding: 24px 0; }
  #inscrie .form-content {
    margin: 0 5% 0 auto;
    border-radius: 40px 12px 12px 40px;
  }
}

#inscrie .close-x {
  position: absolute;
  top: 14px;
  right: 24px;
  color: #d71d23;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

#inscrie h2 {
  text-align: center;
  font-weight: 700;
  color: #d71d23;
  font-size: 22px;
  margin: 0 auto 18px;
  max-width: 90%;
  font-family: 'Open Sans', Arial, sans-serif;
}

#inscrie .row {
  width: 100%;
  margin: 0 auto 10px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

#inscrie .row input[type="text"],
#inscrie .row input[type="email"],
#inscrie .row input[type="tel"] {
  display: block;
  width: 100%;
  height: 47px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #898989;
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  text-align: center;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Input[type=date] — pastreaza appearance nativ ca sa nu strice placeholder dd/mm/yyyy */
#inscrie .row input[type="date"] {
  display: block;
  width: 100%;
  height: 47px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #898989;
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  outline: none;
  font-family: inherit;
}

#inscrie .row input::placeholder { color: #5d5c5c; opacity: 1; }
#inscrie .row input:focus::placeholder { color: transparent; }
#inscrie .row input.is-error { border-color: #881014; }

/* Date input — bulletproof: input nativ invisible (opacity:0), label vizual overlay */
#inscrie .date-input-wrap {
  position: relative;
  height: 47px;
  border: 1px solid #898989;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
#inscrie .date-input-wrap input[type="date"] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  z-index: 2;
}
#inscrie .date-input-wrap .date-display {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d5c5c;
  font-size: 14px;
  font-family: Arial, sans-serif;
  pointer-events: none;
  z-index: 1;
  padding: 0 14px;
}
#inscrie .date-input-wrap .date-display.has-value { color: #000; }
#inscrie .date-input-wrap.is-error { border-color: #881014; }

/* File picker — fake label peste input native ascuns */
#inscrie .imagine-bon-input { display: none; }
#inscrie .label-file {
  display: block;
  width: 100%;
  height: 47px;
  line-height: 47px;
  border: 1px dashed #898989;
  border-radius: 4px;
  color: #5d5c5c;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color .15s, background .15s;
}
#inscrie .label-file:hover { border-color: #d71d23; background: #fff; }
#inscrie .label-file.has-file { color: #2e7d32; border-color: #2e7d32; }
#inscrie .label-file.is-uploading { color: #1565c0; border-color: #1565c0; background: #e3f2fd; }
#inscrie .file-preview {
  display: block;
  margin-top: 6px;
  max-height: 70px;
  border-radius: 4px;
}

/* Checkbox rows */
#inscrie .select_row {
  padding: 6px 8px 0;
}
#inscrie .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #000;
  cursor: pointer;
}
#inscrie .checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: #d71d23;
  cursor: pointer;
}
#inscrie .checkbox-row a { color: #d61d24; text-decoration: underline; }

/* reCAPTCHA */
#inscrie .row_captcha {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

/* Buton submit ".trimite" — identic cu vechi */
#inscrie .trimite {
  display: block;
  margin: 12px auto;
  background: #f23838;
  color: #fff !important;
  border: 2px solid #f23838;
  border-radius: 25px;
  padding: 8px 36px;
  font-size: 22px;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease-in-out, color .2s;
  outline: none;
}
#inscrie .trimite:hover:not(:disabled) {
  background: transparent;
  color: #f23838 !important;
}
#inscrie .trimite:disabled { opacity: .55; cursor: not-allowed; }
#inscrie .trimite.is-loading { opacity: .7; cursor: wait; }

/* Erori per camp — fundal galben + text rosu pentru vizibilitate */
#inscrie .error-msg {
  display: block;
  color: #c1051c;
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  margin-top: 6px;
  min-height: 0;
  background: transparent;
  padding: 0;
  border-radius: 4px;
  line-height: 1.35;
}
#inscrie .error-msg:not(:empty) {
  background: #fff3a3;
  padding: 6px 10px;
  border: 1px solid #f5d101;
  min-height: 14px;
}

/* General form error (sub form) */
#inscrie #form-general-error:not(:empty) {
  background: #fff3a3;
  border: 1px solid #f5d101;
  color: #c1051c;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
  text-align: center;
}

/* Raspuns succes — design Pringles (rosu + galben CTA rotunjit) */
#inscrie #response-section {
  text-align: center;
  padding: 8px 0 0;
}
#inscrie .response-msg--error { color: #881014; font-size: 15px; }

#inscrie .success-card {
  background: #C8000B;
  color: #fff;
  border-radius: 18px;
  padding: 28px 22px 24px;
  margin: 4px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #FFD300;
}

#inscrie .success-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

#inscrie .success-title {
  color: #FFD300;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 4px 0 14px;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}

#inscrie .success-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 18px;
  max-width: 360px;
}
#inscrie .success-text strong { color: #FFD300; }

#inscrie .success-divider {
  width: 60%;
  height: 2px;
  background: rgba(255,211,0,.5);
  margin: 6px auto 14px;
  border-radius: 1px;
}

/* CTA principal — galben pe rosu (in linie cu LP) */
#inscrie .btn-cta-yellow {
  display: inline-block;
  background: #FFD300;
  color: #C8000B;
  border: 3px solid #C8000B;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  margin: 4px 6px 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform .12s ease, background .15s;
}
#inscrie .btn-cta-yellow:hover { background: #FFDC2E; }
#inscrie .btn-cta-yellow:active { transform: scale(.97); }

#inscrie .btn-cta-link {
  display: block;
  margin: 6px auto 0;
  background: none;
  border: 0;
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
#inscrie .btn-cta-link:hover { color: #fff; }

/* (regula veche scoasa — folosim varianta cu fundal galben de mai sus) */

/* Cardul de succes umple intregul .form-content frumos */
#inscrie #response-section .success-card { margin-top: 0; }

/* ===========================
   MODAL REGULAMENT (mic, generic)
   =========================== */
.lp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
}
.lp-modal.hidden { display: none; }

.lp-modal__card {
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.lp-modal__card h2 {
  color: #C8000B;
  margin: 0 0 12px;
  font-size: 1.35rem;
  text-transform: uppercase;
}
.lp-modal__card p { line-height: 1.5; margin: 8px 0; }
.lp-modal__note { color: #666; font-size: .9rem; }

.lp-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}
.lp-modal__close:hover { color: #222; }

.lp-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: #f23838;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  border: 2px solid #f23838;
}
.lp-btn:hover { background: #d71d23; border-color: #d71d23; }

/* Back link pentru paginile fallback */
.back-link {
  display: inline-block;
  margin: 16px 0 4px 16px;
  color: #FFD300;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
