:root {
  --ci-gold: #F9C400;
  --ci-gold-1: #fbbf24;
  --ci-gold-2: #f59e0b;
  --ci-gold-3: #d97706;
  --ci-black: #0F0F10;
  --ci-white: #ffffff;
  --ci-border: #d6d7db;
  --ci-muted: #6b6e76;
  --ci-error: #dc2626;
  --ci-success: #16a34a;
  --ci-info: #2563eb;
  --ff-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-heading: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-base: 16px;
  --fs-md: clamp(16px, 2.6vw, 17px);
  --fs-lg: clamp(18px, 2.4vw, 19px);
  --fs-h3: clamp(20px, 3.6vw, 24px);
  --fs-h2: clamp(24px, 4.2vw, 32px);
  --lh: 1.6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --gap-1: 10px;
  --gap-2: 16px;
  --gap-3: 24px;
  --gap-4: 36px;
  --container-max: 1200px;
  --container-pad: 16px;
  --shadow-1: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-2: 0 12px 32px rgba(0,0,0,0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ci-black: #ffffff;
    --ci-white: #1a1a1a;
    --ci-border: #3f3f46;
    --ci-muted: #a1a1aa;
    --ci-error: #ef4444;
    --ci-success: #22c55e;
    --ci-info: #3b82f6;
    --shadow-1: 0 10px 30px rgba(0,0,0,0.2);
    --shadow-2: 0 12px 32px rgba(0,0,0,0.3);
  }

  .front-newsletter {
    background: var(--ci-white);
    color: var(--ci-black);
  }

  .newsletter-formcard {
    background: #2d2d2d;
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-1);
  }

  .newsletter-formcard .wpforms-field-label {
    color: var(--ci-black);
  }

  .newsletter-formcard input,
  .newsletter-formcard select,
  .newsletter-formcard textarea {
    background: #2d2d2d;
    border-color: rgba(255,255,255,0.12);
    color: var(--ci-black);
  }

  .newsletter-formcard input:focus,
  .newsletter-formcard select:focus,
  .newsletter-formcard textarea:focus {
    border-color: var(--ci-gold-2);
    box-shadow: 0 0 0 4px rgba(253,186,18,0.35);
    background: #3a3a3a;
  }

  .newsletter-formcard .wpforms-submit {
    color: var(--ci-black);
  }
}

@media (max-width: 767.98px) {
  :root {
    --space-section-sm: calc(var(--space-4) - 6px);
    --space-section-md: calc(var(--space-5) - 8px);
    --space-section-lg: calc(var(--space-6) - 10px);
  }
}

@media (min-width: 1200px) {
  :root {
    --container-pad: 24px;
  }
}

.front-newsletter {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0;
  background: var(--ci-white);
}

.newsletter-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-3);
  align-items: center;
}

@media (min-width: 960px) {
  .newsletter-wrap {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--gap-3), 4vw, var(--gap-4));
  }
}

.newsletter-copy {
  display: grid;
  gap: var(--gap-2);
}

.newsletter-title {
  margin: 0 0 var(--gap-2) 0;
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ci-black);
}

.newsletter-figure {
  margin: 0;
}

.newsletter-visual {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.newsletter-formcard {
  border: 1px solid var(--ci-border);
  border-radius: var(--radius);
  background: var(--ci-white);
  box-shadow: var(--shadow-1);
  padding: clamp(16px, 3.2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter-formcard .wpforms-form {
  display: grid;
  gap: var(--gap-2);
}

.newsletter-formcard .wpforms-field-label {
  font-weight: 700;
  color: var(--ci-black);
  margin-bottom: 6px;
}

.newsletter-formcard input,
.newsletter-formcard select,
.newsletter-formcard textarea {
  width: 100%;
  border: 1px solid var(--ci-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: var(--fs-md);
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.newsletter-formcard input:focus,
.newsletter-formcard select:focus,
.newsletter-formcard textarea:focus {
  outline: none;
  border-color: var(--ci-gold-2);
  box-shadow: 0 0 0 4px rgba(253,186,18,0.35);
  background: #fffdfa;
}

.newsletter-formcard input:disabled,
.newsletter-formcard select:disabled,
.newsletter-formcard textarea:disabled {
  background: #f4f5f7;
  color: #8b8e96;
  border-color: #e3e5ea;
  cursor: not-allowed;
}

.newsletter-formcard input::placeholder,
.newsletter-formcard select::placeholder,
.newsletter-formcard textarea::placeholder {
  color: #9ca0a8;
  opacity: 1;
}

.newsletter-formcard .wpforms-submit {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-md);
  cursor: pointer;
  background: linear-gradient(90deg, var(--ci-gold-1), var(--ci-gold-2), var(--ci-gold-3));
  color: var(--ci-black);
  border: 1px solid transparent;
  box-shadow: var(--shadow-1);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.newsletter-formcard .wpforms-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.newsletter-formcard .wpforms-submit:active {
  transform: translateY(1px);
}

.newsletter-formcard .wpforms-submit:focus-visible {
  outline: 2px solid var(--ci-gold-2);
  outline-offset: 2px;
}

.newsletter-formcard .wpforms-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}