/* Global styles */
html {
  scroll-behavior: smooth;
}

/* Styles for ConvertKit Newsletter Form */
.convertkit-form .formkit-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
  align-items: stretch;
  max-width: 100%;
}

@media (min-width: 640px) {
  .convertkit-form .formkit-fields {
    flex-direction: row;
  }
}

.convertkit-form .formkit-input {
  width: 100%;
  padding: 0.75rem 1rem; /* 12px 16px */
  font-size: 1rem;
  line-height: 1.5rem;
  border-width: 1px;
  border-style: solid;
  border-color: #d1d5db; /* gray-300 */
  border-radius: 0.5rem; /* 8px */
  background-color: #ffffff;
  color: #1f2937; /* gray-800 */
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.dark .convertkit-form .formkit-input {
  border-color: #475569; /* slate-600 */
  background-color: #1e293b; /* slate-800 */
  color: #cbd5e1; /* slate-300 */
}

.convertkit-form .formkit-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #E60023; /* pinterest color */
  box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.5);
}

.convertkit-form .formkit-submit {
  padding: 0.75rem 1.5rem; /* 12px 24px */
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem; /* 8px */
  background-color: #E60023; /* pinterest color */
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.convertkit-form .formkit-submit:hover {
  background-color: #BD081C; /* pinterest-dark */
}

/* Style for the disclaimer text (e.g., "We won't send you spam") */
.convertkit-form .formkit-guarantee p {
  color: #4b5563; /* Tailwind gray-600 */
  font-size: 0.875rem; /* 14px */
  margin-top: 0.75rem; /* 12px */
  line-height: 1.25rem;
}

.dark .convertkit-form .formkit-guarantee p {
  color: #94a3b8; /* Tailwind slate-400 */
}

/* Style for the "Built with Kit" branding to ensure it's visible in dark mode */
.dark .kit-branding a {
  color: #94a3b8 !important; /* Use !important to override potential inline styles from the script */
}

.dark .kit-branding a svg {
  fill: #94a3b8 !important;
}