/**
 * Webinar V3 - Ultra-Short High-Converting Design
 *
 * Wzorowany na sprawdzonych landingach z 40%+ CR
 * - Białe tło, czyste
 * - Czerwony CTA
 * - Timer pod formularzem
 * - Ciemny footer
 */

/* ═══════════════════════════════════════════════════════════════════════════
   FONTS
   ═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3 {
  --wv3-font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Colors */
  --wv3-bg: #FFFFFF;
  --wv3-text: #1a1a1a;
  --wv3-text-secondary: #666666;
  --wv3-text-muted: #888888;

  /* Accent - Czerwony (jak w screenshotach) */
  --wv3-accent: #A63D2F;
  --wv3-accent-hover: #8B3326;

  /* Borders */
  --wv3-border: #e0e0e0;

  /* Footer */
  --wv3-footer-bg: #1a1a1a;
  --wv3-footer-text: #888888;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wv3-bg);
  color: var(--wv3-text);
  font-family: var(--wv3-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wv3-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADLINE
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.wv3-headline__accent {
  display: block;
  color: var(--wv3-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUBHEADLINE
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-subheadline {
  font-size: 1.125rem;
  color: var(--wv3-text);
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.wv3-subheadline strong {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-form-card {
  background: var(--wv3-bg);
  border: 1px solid var(--wv3-border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wv3-form__field {
  width: 100%;
}

.wv3-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--wv3-font);
  font-size: 1rem;
  color: var(--wv3-text);
  background: var(--wv3-bg);
  border: 1px solid var(--wv3-border);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wv3-input::placeholder {
  color: var(--wv3-text-muted);
}

.wv3-input:focus {
  outline: none;
  border-color: var(--wv3-accent);
  box-shadow: 0 0 0 3px rgba(166, 61, 47, 0.15);
}

/* Checkbox */
.wv3-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--wv3-text-secondary);
  cursor: pointer;
  text-align: left;
}

.wv3-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--wv3-accent);
}

.wv3-checkbox__text a {
  color: var(--wv3-text-secondary);
  text-decoration: underline;
}

.wv3-checkbox__text a:hover {
  color: var(--wv3-text);
}

/* Button */
.wv3-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--wv3-font);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  background: var(--wv3-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

.wv3-btn:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMER
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-timer-label {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--wv3-text-secondary);
}

.wv3-countdown {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.wv3-countdown__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: 0.75rem 0.5rem;
  background: var(--wv3-bg);
  border: 2px solid var(--wv3-text);
  border-radius: 4px;
}

.wv3-countdown__number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--wv3-text);
}

.wv3-countdown__label {
  font-size: 0.6875rem;
  color: var(--wv3-text-secondary);
  text-transform: lowercase;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-video {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 600px;
  margin: 2.5rem auto 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.wv3-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wv3-video:hover .wv3-video__thumb {
  transform: scale(1.02);
}

.wv3-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(166, 61, 47, 0.9);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wv3-video__play svg {
  margin-left: 4px;
}

.wv3-video:hover .wv3-video__play {
  background: var(--wv3-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.wv3-video-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--wv3-text-muted);
  margin: 0.75rem 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-footer {
  background: var(--wv3-footer-bg);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.wv3-footer .wv3-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wv3-footer__logo {
  display: flex;
  justify-content: center;
}

.wv3-footer__logo-img {
  height: 28px;
  width: auto;
}

.wv3-footer__divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.wv3-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.wv3-footer__copy {
  font-size: 0.8125rem;
  color: var(--wv3-footer-text);
}

.wv3-footer__links {
  display: flex;
  gap: 1.5rem;
}

.wv3-footer__links a {
  font-size: 0.8125rem;
  color: var(--wv3-footer-text);
  text-decoration: underline;
  transition: color 0.2s;
}

.wv3-footer__links a:hover {
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .wv3-main {
    padding: 2rem 0;
  }

  .wv3-headline {
    font-size: 1.5rem;
  }

  .wv3-subheadline {
    font-size: 1rem;
  }

  .wv3-form-card {
    padding: 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: 100%;
  }

  .wv3-countdown__box {
    min-width: 52px;
    padding: 0.5rem 0.375rem;
  }

  .wv3-countdown__number {
    font-size: 1.5rem;
  }

  .wv3-footer__bottom {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .wv3-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    max-width: 600px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS - Subtle entry
   ═══════════════════════════════════════════════════════════════════════════ */
.wv3-headline,
.wv3-subheadline,
.wv3-form-card {
  animation: wv3-fadeIn 0.5s ease-out both;
}

.wv3-headline { animation-delay: 0s; }
.wv3-subheadline { animation-delay: 0.1s; }
.wv3-form-card { animation-delay: 0.2s; }

@keyframes wv3-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
