/* === NEWSLETTER FORM === */

/* The Container (Implicit) */
#newsletterForm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === EMAIL INPUT === */
#newsletterForm input[type="email"] {
  width: 100%; /* Clean full width */
  padding: 14px 0;
  
  /* Modern "Underline" Style */
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  
  /* Typography */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Clean Sans for input */
  font-size: 16px;
  color: var(--ink);
  
  outline: none;
  transition: border-color 0.3s ease, padding 0.3s ease;
}

/* Placeholder Styling */
#newsletterForm input[type="email"]::placeholder {
  color: var(--text-3);
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.7;
}

/* === FOCUS EFFECT === */
#newsletterForm input[type="email"]:focus {
  border-bottom-color: var(--ink); /* Sharp Ink line */
  padding-left: 10px; /* Subtle text shift */
}

/* === SUBSCRIBE BUTTON === */
#newsletterForm button {
  width: 100%;
  margin-top: 24px;
  padding: 12px 0;
  
  /* Transparent & Minimal */
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  
  /* Typography */
  color: var(--text-2);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  
  cursor: pointer;
  transition: all 0.2s ease;
}

/* === HOVER BUTTON === */
#newsletterForm button:hover {
  border-color: var(--ink);
  color: var(--ink);
  background-color: var(--bg-1);
  transform: translateY(-1px);
}

#newsletterForm button:active {
  transform: translateY(0);
}

/* === FORM FEEDBACK TEXT === */
.form-feedback {
  display: none; /* Hidden by default */
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Error State (Red) */
.feedback-error {
  color: #d93025;
  display: block;
  opacity: 1;
}

/* === INPUT ERROR STATE === */
/* Turns the underline red and shakes */
.input-error {
  border-bottom-color: #d93025 !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
.modal-content button.is-subscribed {
  border-color: rgba(16, 185, 129, 0.9);
  color: rgba(16, 185, 129, 0.9);
  background-color: transparent;
  cursor: default;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  width: 100%;
  padding: 12px 0;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-content button.is-subscribed::before {
  content: "✓";
  font-size: 1rem;
  font-weight: 600;
}

.modal-content button.is-subscribed:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}
