
/*
  Newsletter Form Fixes - Ensures button stays within borders and input flexibility.
  Much of this logic is now integrated into newsletter.css.
  This file can be kept for minor specific overrides if newsletter.css isn't enough.
*/

/*
  The .newsletter-form-container in newsletter.css now uses:
  - display: flex
  - overflow: hidden (on the container with border-radius)
  - border on the container itself
  - no border on input and button directly (or border:none)
  - min-width: 0 on the input to allow shrinking
  - flex-shrink: 0 on the button to prevent it from shrinking (if fixed width desired)
*/

/* Example: If you wanted the button to have a minimum width regardless of text */
/*
.footer-newsletter button[type="submit"] {
    min-width: 100px;
}
*/

/*
  If newsletter.css is properly structured, this file might not be strictly necessary
  for the border issue, but can be used for other fine-tuning.
*/

/* Ensure no double borders if individual elements also had them */
.footer-newsletter .newsletter-form-container input[type="email"],
.footer-newsletter .newsletter-form-container button[type="submit"] {
    /* If newsletter.css puts border on container, these should have border: none; */
    /* This is mostly handled in newsletter.css now */
}

/* If there's a standalone newsletter form outside the footer,
   you might want to style it distinctively. */
.standalone-newsletter-section {
    padding: 40px 0;
    background-color: var(--bg-primary); /* Or a different color */
}

.standalone-newsletter {
    background-color: var(--card-bg); /* Example: card background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 500px; /* Limit width */
    margin: 0 auto; /* Center it */
    text-align: center;
}

.standalone-newsletter h3 {
    color: var(--text-primary); /* Use theme variables */
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.standalone-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.standalone-newsletter .newsletter-form-container {
    /* Uses the same structure as footer newsletter */
    /* border: 1px solid var(--border-color); */ /* Already defined in newsletter.css */
}
[data-theme="dark"] .standalone-newsletter {
    background-color: var(--card-bg);
}
