/* ============================================== */
/* LANDING KANCELARIA MARCHEWKA — B2B              */
/* Plik dedykowany dla podstrony:                  */
/* factolex.pl/adwokat-sprawy-o-zaplate-krakow/    */
/* Aktualizowany: 14.05.2026                       */
/* ============================================== */


/* ============================================== */
/* ZMIENNE GLOBALNE                                */
/* ============================================== */

:root {
  /* Kolory marki (paleta Factolex) */
  --lm-granat: #0A2756;
  --lm-granat-dark: #061a3d;
  --lm-pomarancz: #F39200;
  --lm-pomarancz-hover: #E08600;
  --lm-pomarancz-jasny: #FAEEDA;

  /* Tła i tekst */
  --lm-bg-bialy: #FFFFFF;
  --lm-bg-szary: #F5F5F8;
  --lm-text-body: #444441;
  --lm-text-muted: #5F5E5A;
  --lm-text-white-70: rgba(255, 255, 255, 0.7);
  --lm-text-white-65: rgba(255, 255, 255, 0.65);
  --lm-text-white-50: rgba(255, 255, 255, 0.5);

  /* Bordery */
  --lm-border-light: rgba(0, 0, 0, 0.08);
  --lm-border-dark: rgba(255, 255, 255, 0.15);

  /* Typografia */
  --lm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Promienie */
  --lm-radius-sm: 6px;
  --lm-radius-md: 8px;
  --lm-radius-lg: 12px;

  /* Spacing */
  --lm-section-py: 80px;
  --lm-section-px: 40px;
  --lm-max-width: 1280px;
}


/* ============================================== */
/* RESET / BASE                                    */
/* (scope'owane do naszych elementów lm-*)         */
/* ============================================== */

.lm-section {
  font-family: var(--lm-font);
  color: var(--lm-text-body);
  line-height: 1.6;
  padding: var(--lm-section-py) var(--lm-section-px);
}

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

.lm-container {
  max-width: var(--lm-max-width);
  margin: 0 auto;
}

/* Typografia w sekcjach (scope'owana, żeby nie kolidować z Divi) */
.lm-section h1,
.lm-section h2,
.lm-section h3,
.lm-section h4 {
  font-family: var(--lm-font);
  color: var(--lm-granat);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px;
}

.lm-section h1 {
  font-size: 40px;
  line-height: 1.2;
}

.lm-section h2 {
  font-size: 26px;
}

.lm-section h3 {
  font-size: 18px;
}

.lm-section p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.lm-section p:last-child {
  margin-bottom: 0;
}

.lm-section a {
  color: var(--lm-granat);
  text-decoration: underline;
}

.lm-section a:hover {
  color: var(--lm-pomarancz);
}

.lm-section ul,
.lm-section ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

/* Pomarańczowa kreska akcent nad H2 sekcji */
.lm-accent-line {
  display: inline-block;
  height: 3px;
  width: 40px;
  background: var(--lm-pomarancz);
  margin-bottom: 16px;
}

/* Wspólna klasa wycentrowanego nagłówka sekcji */
.lm-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}


/* ============================================== */
/* HEADER (Custom Header w Theme Builderze)        */
/* ============================================== */

.lm-header {
  background: var(--lm-granat);
  padding: 14px var(--lm-section-px);
  font-family: var(--lm-font);
}

.lm-header-inner {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lm-header-logo {
  color: white;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

.lm-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lm-header-phone {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.lm-header-phone:hover {
  color: var(--lm-pomarancz);
}

.lm-header-phone svg {
  flex-shrink: 0;
}

.lm-header-cta {
  background: var(--lm-pomarancz);
  color: var(--lm-granat);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--lm-radius-md);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
  display: inline-block;
}

.lm-header-cta:hover {
  background: var(--lm-pomarancz-hover);
  color: var(--lm-granat);
}

.lm-header-logo-link {
  text-decoration: none;
}

.lm-header-logo-link:hover .lm-header-logo {
  color: var(--lm-pomarancz);
  transition: color 0.2s ease;
}


/* ============================================== */
/* RESPONSYWNOŚĆ: HEADER                           */
/* ============================================== */

@media (max-width: 768px) {
  .lm-header {
    padding: 12px 16px;
  }

  .lm-header-phone-text {
    display: none;
  }

  .lm-header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .lm-header-right {
    gap: 12px;
  }
}


/* ============================================== */
/* RESPONSYWNOŚĆ: GLOBAL                           */
/* ============================================== */

@media (max-width: 768px) {
  .lm-section {
    padding: 48px 20px;
  }

  .lm-section h1 {
    font-size: 28px;
  }

  .lm-section h2 {
    font-size: 22px;
  }

  .lm-section-header {
    margin-bottom: 32px;
  }
}

/* ====== FOOTER ====== */

.lm-footer {
  background: var(--lm-granat);
  font-family: var(--lm-font);
}

.lm-footer-main {
  padding: 48px var(--lm-section-px) 32px;
}

.lm-footer-inner {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.lm-footer-col {
  color: white;
}

.lm-footer-heading-main {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin: 0 0 12px;
  line-height: 1.4;
}

.lm-footer-heading {
  font-size: 12px;
  font-weight: 500;
  color: var(--lm-pomarancz);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.lm-footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--lm-text-white-70);
  margin: 0;
}

.lm-footer-text-muted {
  color: var(--lm-text-white-70);
}

.lm-footer-link {
  color: var(--lm-text-white-70);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lm-footer-link:hover {
  color: var(--lm-pomarancz);
}

.lm-footer-bottom {
  border-top: 1px solid var(--lm-border-dark);
}

.lm-footer-bottom-inner {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  padding: 16px var(--lm-section-px);
  font-size: 12px;
  color: var(--lm-text-white-50);
  text-align: center;
}

/* ====== FOOTER MOBILE ====== */

@media (max-width: 768px) {
  .lm-footer-main {
    padding: 40px 20px 24px;
  }

  .lm-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lm-footer-bottom-inner {
    padding: 14px 20px;
    font-size: 11px;
  }
}

/* ====== HERO ====== */

.lm-hero {
  background: var(--lm-bg-bialy);
  padding: 80px var(--lm-section-px);
}

.lm-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

/* --- LEWA KOLUMNA: TREŚĆ --- */

.lm-hero-content {
  max-width: 640px;
}

.lm-hero-badge {
  display: inline-block;
  background: var(--lm-bg-szary);
  color: var(--lm-text-muted);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--lm-radius-md);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.lm-hero-title {
  font-size: 40px;
  font-weight: 500;
  color: var(--lm-granat);
  line-height: 1.2;
  margin: 0 0 16px;
}

.lm-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--lm-text-body);
  margin: 0 0 28px;
}

.lm-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.lm-cta-primary {
  display: inline-block;
  background: var(--lm-pomarancz);
  color: var(--lm-granat);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--lm-radius-md);
  text-decoration: none;
  transition: background 0.2s ease;
}

.lm-cta-primary:hover {
  background: var(--lm-pomarancz-hover);
  color: var(--lm-granat);
}

.lm-hero-phone-text {
  font-size: 14px;
  color: var(--lm-text-muted);
}

.lm-hero-phone-link {
  color: var(--lm-granat);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lm-hero-phone-link:hover {
  color: var(--lm-pomarancz);
}

/* --- MIKRO-USP (LISTA Z CHECKMARKAMI) --- */

.lm-hero-usp {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--lm-border-light);
  flex-wrap: wrap;
}

.lm-hero-usp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lm-text-muted);
  white-space: nowrap;
}

.lm-hero-usp li svg {
  color: var(--lm-pomarancz);
  flex-shrink: 0;
}

/* --- PRAWA KOLUMNA: PLACEHOLDER FILMU --- */

.lm-hero-video {
  background: var(--lm-granat);
  border-radius: var(--lm-radius-lg);
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.lm-hero-video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lm-hero-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lm-pomarancz);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lm-granat);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  padding-left: 4px; /* optical alignment dla play icon */
}

.lm-hero-video-play:hover {
  background: var(--lm-pomarancz-hover);
  transform: scale(1.05);
}

.lm-hero-video-label {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--lm-text-white-50);
}

.lm-hero-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* ====== HERO MOBILE ====== */

@media (max-width: 968px) {
  .lm-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .lm-hero-video {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 768px) {
  .lm-hero {
    padding: 48px 20px;
  }
  
  .lm-hero-title {
    font-size: 28px;
  }
  
  .lm-hero-subtitle {
    font-size: 15px;
  }
  
  .lm-hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .lm-cta-primary {
    width: 100%;
    text-align: center;
  }
  
  .lm-hero-usp {
    gap: 14px;
    flex-direction: column;
  }
  
  .lm-hero-usp li {
    white-space: normal;
  }
}

/* ====== DLA KOGO ====== */

.lm-dla-kogo {
  background: var(--lm-bg-bialy);
}

.lm-section-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lm-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.lm-dla-kogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lm-dla-kogo-item {
  text-align: center;
  padding: 8px;
}

.lm-dla-kogo-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lm-pomarancz);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: white;
}

.lm-dla-kogo-item h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--lm-granat);
  margin: 0 0 10px;
}

.lm-dla-kogo-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lm-text-muted);
  margin: 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== DLA KOGO MOBILE ====== */

@media (max-width: 768px) {
  .lm-dla-kogo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .lm-dla-kogo-icon {
    width: 48px;
    height: 48px;
  }
  
  .lm-dla-kogo-item p {
    max-width: 320px;
  }
}

/* ====== RODZAJE SPRAW ====== */

.lm-rodzaje-spraw {
  background: var(--lm-bg-szary);
}

.lm-rodzaje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lm-rodzaje-card {
  background: var(--lm-bg-bialy);
  border-radius: var(--lm-radius-md);
  padding: 24px;
  border: 1px solid var(--lm-border-light);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lm-rodzaje-card:hover {
  border-color: var(--lm-pomarancz);
  transform: translateY(-2px);
}

.lm-rodzaje-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--lm-radius-md);
  background: var(--lm-granat);
  color: var(--lm-pomarancz);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lm-rodzaje-content h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--lm-granat);
  margin: 0 0 6px;
  line-height: 1.3;
}

.lm-rodzaje-content p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--lm-text-muted);
  margin: 0;
}

/* ====== RODZAJE SPRAW MOBILE ====== */

@media (max-width: 968px) {
  .lm-rodzaje-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lm-rodzaje-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .lm-rodzaje-card {
    padding: 20px;
  }
}

/* ====== PROCES WSPÓŁPRACY ====== */

.lm-proces {
  background: var(--lm-granat);
  position: relative;
  /* Trick na pełny full-width niezależnie od Divi */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.lm-proces .lm-container {
  position: relative;
  padding: 0 var(--lm-section-px);
}

/* Nadpisanie globalnych H2 w lm-section dla ciemnego tła */
.lm-proces h2 {
  color: white;
}

.lm-section-header-dark h2 {
  color: white;
}

.lm-proces-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lm-text-white-70);
  max-width: 560px;
  margin: 0 auto;
}

.lm-proces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lm-proces-step {
  position: relative;
  text-align: center;
}

.lm-proces-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--lm-text-white-65);
  margin: 0 auto;
  max-width: 280px;
}

.lm-proces-number {
  font-size: 44px;
  font-weight: 500;
  color: var(--lm-pomarancz);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.lm-proces-title {
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin: 0 0 8px;
  line-height: 1.3;
}

.lm-proces-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--lm-text-white-65);
  margin: 0;
}

/* ====== PROCES MOBILE ====== */

@media (max-width: 968px) {
  .lm-proces-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 600px) {
  .lm-proces-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .lm-proces-step {
    text-align: center;
  }
  
  .lm-proces-desc {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .lm-proces-number {
    font-size: 36px;
  }
}

/* ====== DLACZEGO WARTO ====== */

.lm-dlaczego {
  background: var(--lm-bg-bialy);
}

.lm-dlaczego-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.lm-dlaczego-item {
  text-align: center;
}

.lm-dlaczego-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--lm-radius-md);
  background: var(--lm-granat);
  color: var(--lm-pomarancz);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
}

.lm-dlaczego-item h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--lm-granat);
  margin: 0 0 12px;
  line-height: 1.4;
}

.lm-dlaczego-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lm-text-body);
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 968px) {
  .lm-dlaczego-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .lm-dlaczego-item {
    text-align: center;
  }
  
  .lm-dlaczego-icon {
    margin-left: auto;
    margin-right: auto;
  }
  
  .lm-dlaczego-item p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- WIDGET OPINII GOOGLE (placeholder) --- */

.lm-opinie-google {
  border-top: 1px solid var(--lm-border-light);
  padding-top: 32px;
  margin-top: 16px;
}

.lm-opinie-header {
  margin-bottom: 20px;
}

.lm-opinie-google-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lm-opinie-google-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--lm-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lm-font);
  font-weight: 500;
  font-size: 16px;
  color: #4285F4;
  flex-shrink: 0;
}

.lm-opinie-google-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--lm-granat);
}

.lm-opinie-google-rating {
  font-size: 13px;
  color: var(--lm-pomarancz);
  letter-spacing: 1px;
}

.lm-opinie-google-meta {
  color: var(--lm-text-muted);
  font-size: 12px;
  letter-spacing: normal;
}

.lm-opinie-placeholder {
  background: var(--lm-bg-szary);
  border: 1px dashed var(--lm-border-light);
  border-radius: var(--lm-radius-md);
  padding: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--lm-text-muted);
  font-style: italic;
}

/* ====== DLACZEGO WARTO MOBILE ====== */

@media (max-width: 968px) {
  .lm-dlaczego-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .lm-dlaczego-grid + .lm-opinie-google {
    margin-top: 24px;
  }
}

/* ====== FAQ ====== */

.lm-faq {
  background: var(--lm-bg-szary);
}

.lm-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lm-faq-item {
  background: var(--lm-bg-bialy);
  border: 1px solid var(--lm-border-light);
  border-radius: var(--lm-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.lm-faq-item:hover {
  border-color: rgba(0, 0, 0, 0.16);
}

.lm-faq-item[open] {
  border-color: var(--lm-pomarancz);
}

.lm-faq-question {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lm-granat);
  line-height: 1.4;
  user-select: none;
}

/* Ukrycie domyślnego markera <summary> w różnych przeglądarkach */
.lm-faq-question::-webkit-details-marker {
  display: none;
}
.lm-faq-question::marker {
  display: none;
  content: '';
}

.lm-faq-chevron {
  color: var(--lm-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.lm-faq-item[open] .lm-faq-chevron {
  transform: rotate(180deg);
  color: var(--lm-pomarancz);
}

.lm-faq-answer {
  padding: 0 24px 20px;
}

.lm-faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--lm-text-body);
  margin: 0;
}

/* ====== FAQ MOBILE ====== */

@media (max-width: 768px) {
  .lm-faq-question {
    font-size: 14px;
    padding: 16px 18px;
    gap: 12px;
  }
  
  .lm-faq-answer {
    padding: 0 18px 18px;
  }
  
  .lm-faq-answer p {
    font-size: 13px;
  }
}

/* ====== FORMULARZ ====== */

.lm-formularz {
  background: var(--lm-bg-bialy);
}

.lm-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.lm-formularz .lm-form-footer-note {
  display: block;
  font-size: 12px;
  color: var(--lm-text-muted);
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 16px;
  max-width: 480px;
  line-height: 1.6;
}

/* --- Reset Contact Form 7 default styles --- */

.lm-form-wrapper .wpcf7 {
  margin: 0;
  padding: 0;
}

.lm-form-wrapper .wpcf7-form > p {
  margin: 0;
}

/* --- Single field --- */

.lm-form-field {
  margin-bottom: 16px;
}

.lm-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--lm-granat);
  margin-bottom: 6px;
}

.lm-form-required {
  color: var(--lm-pomarancz);
  margin-left: 2px;
}

/* --- Inputs, textarea, select --- */

.lm-form-wrapper input[type="text"],
.lm-form-wrapper input[type="tel"],
.lm-form-wrapper input[type="email"],
.lm-form-wrapper textarea,
.lm-form-wrapper select {
  width: 100%;
  font-family: var(--lm-font);
  font-size: 14px;
  color: var(--lm-text-body);
  background: var(--lm-bg-bialy);
  border: 1px solid var(--lm-border-light);
  border-radius: var(--lm-radius-md);
  padding: 12px 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.lm-form-wrapper textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.lm-form-wrapper input[type="text"]:focus,
.lm-form-wrapper input[type="tel"]:focus,
.lm-form-wrapper input[type="email"]:focus,
.lm-form-wrapper textarea:focus,
.lm-form-wrapper select:focus {
  outline: none;
  border-color: var(--lm-granat);
  box-shadow: 0 0 0 3px rgba(10, 39, 86, 0.08);
}

.lm-form-wrapper input::placeholder,
.lm-form-wrapper textarea::placeholder {
  color: var(--lm-text-muted);
  opacity: 1;
}

/* --- Dropdown (select) custom chevron --- */

.lm-form-wrapper select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F5E5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* --- Two fields side by side (telefon + email) --- */

.lm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.lm-form-row .lm-form-field {
  margin-bottom: 0;
}

/* --- RODO checkbox --- */

.lm-form-rodo {
  margin: 8px 0 20px;
}

.lm-form-rodo .wpcf7-list-item {
  margin: 0;
}

.lm-form-rodo .wpcf7-list-item-label {
  font-size: 12px;
  color: var(--lm-text-muted);
  line-height: 1.5;
}

.lm-form-rodo input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: top;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--lm-granat);
}

/* --- Submit button --- */

.lm-form-submit {
  margin-top: 8px;
}

/* --- Submit button — nuclear override --- */

html body .lm-formularz input[type="submit"],
html body .lm-formularz input.wpcf7-submit,
html body .lm-formularz .wpcf7-submit,
html body .lm-formularz button[type="submit"] {
  width: 100% !important;
  font-family: var(--lm-font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0A2756 !important;
  background: #F39200 !important;
  background-color: #F39200 !important;
  background-image: none !important;
  border: none !important;
  border-color: #F39200 !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

html body .lm-formularz input[type="submit"]:hover,
html body .lm-formularz input.wpcf7-submit:hover,
html body .lm-formularz .wpcf7-submit:hover,
html body .lm-formularz button[type="submit"]:hover {
  background: #E08600 !important;
  background-color: #E08600 !important;
  color: #0A2756 !important;
}

/* ====== KONTAKT PRE-FOOTER ====== */

.lm-kontakt-pre {
  background: var(--lm-bg-szary);
}

.lm-kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.lm-kontakt-card {
  background: var(--lm-bg-bialy);
  border: 1px solid var(--lm-border-light);
  border-radius: var(--lm-radius-md);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.lm-kontakt-card:hover {
  border-color: var(--lm-pomarancz);
  transform: translateY(-2px);
}

.lm-kontakt-card-static {
  cursor: default;
}

.lm-kontakt-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lm-pomarancz);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.lm-kontakt-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lm-text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.lm-kontakt-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--lm-granat);
  line-height: 1.3;
  word-break: break-word;
}

.lm-kontakt-hint {
  font-size: 12px;
  color: var(--lm-text-muted);
  margin-top: 4px;
}

/* ====== KONTAKT MOBILE ====== */

@media (max-width: 768px) {
  .lm-kontakt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .lm-kontakt-card {
    padding: 24px 20px;
  }
  
  .lm-kontakt-icon {
    width: 48px;
    height: 48px;
  }
  
  .lm-kontakt-value {
    font-size: 15px;
  }
}

/* --- Honeypot field (ukryte przed użytkownikiem, widoczne dla botów) --- */

.lm-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- CF7 walidacja błędów --- */

.lm-form-wrapper .wpcf7-not-valid {
  border-color: #DC2626 !important;
}

.lm-form-wrapper .wpcf7-not-valid-tip {
  color: #DC2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.lm-form-wrapper .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: none;
  border-radius: var(--lm-radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.lm-form-wrapper .wpcf7 form.sent .wpcf7-response-output {
  background: #D1FAE5;
  color: #065F46;
}

.lm-form-wrapper .wpcf7 form.failed .wpcf7-response-output,
.lm-form-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.lm-form-wrapper .wpcf7 form.aborted .wpcf7-response-output {
  background: #FEE2E2;
  color: #991B1B;
}

.lm-form-wrapper .wpcf7 form.spam .wpcf7-response-output {
  background: #FEF3C7;
  color: #92400E;
}

/* --- Loading state (spinner CF7) --- */

.lm-form-wrapper .wpcf7-spinner {
  display: none; /* Ukrywamy default CF7 spinner */
}

.lm-form-wrapper .wpcf7-form.submitting input[type="submit"] {
  opacity: 0.7;
  cursor: wait;
}

/* ====== FORMULARZ MOBILE ====== */

@media (max-width: 600px) {
  .lm-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .lm-form-wrapper input[type="text"],
  .lm-form-wrapper input[type="tel"],
  .lm-form-wrapper input[type="email"],
  .lm-form-wrapper textarea,
  .lm-form-wrapper select {
    font-size: 16px; /* 16px zapobiega zoomowi iOS przy focus */
  }
}

/* ====== THANK-YOU PAGE ====== */

.lm-thanks {
  background: var(--lm-bg-bialy);
  padding: 80px var(--lm-section-px) 80px;
}

.lm-thanks-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lm-thanks-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--lm-pomarancz-jasny);
  color: var(--lm-pomarancz);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.lm-thanks-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--lm-granat);
  line-height: 1.2;
  margin: 0 0 16px;
}

.lm-thanks-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--lm-text-body);
  margin: 0 0 40px;
}

.lm-thanks-info {
  background: var(--lm-bg-szary);
  border-radius: var(--lm-radius-md);
  padding: 28px 32px;
  text-align: left;
  margin-bottom: 32px;
}

.lm-thanks-info h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--lm-granat);
  margin: 0 0 16px;
}

.lm-thanks-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--lm-text-body);
}

.lm-thanks-steps li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.lm-thanks-steps li:last-child {
  margin-bottom: 0;
}

.lm-thanks-urgent {
  background: var(--lm-bg-bialy);
  border: 1px solid var(--lm-border-light);
  border-radius: var(--lm-radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.lm-thanks-urgent p {
  margin: 0;
  font-size: 14px;
  color: var(--lm-text-body);
  line-height: 1.6;
}

.lm-thanks-urgent strong {
  color: var(--lm-granat);
}

.lm-thanks-phone {
  color: var(--lm-granat);
  font-weight: 500;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.lm-thanks-phone:hover {
  color: var(--lm-pomarancz);
}

.lm-thanks-hours {
  color: var(--lm-text-muted);
  font-size: 13px;
  margin-left: 4px;
}

.lm-thanks-back {
  margin-top: 24px;
}

.lm-thanks-back-link {
  color: var(--lm-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lm-thanks-back-link:hover {
  color: var(--lm-pomarancz);
}

/* ====== THANK-YOU MOBILE ====== */

@media (max-width: 768px) {
  .lm-thanks {
    padding: 48px 20px;
  }
  
  .lm-thanks-title {
    font-size: 26px;
  }
  
  .lm-thanks-lead {
    font-size: 15px;
  }
  
  .lm-thanks-info {
    padding: 20px 22px;
  }
}