.nsw-mailchimp {
  font-family: "Public Sans", Arial, sans-serif; /* NSW DS recommended */
  color: #1b1f24;
  max-width: 640px;
}
#mc_embed_signup{
    max-width:720px;
}

/* Form spacing */
.nsw-mailchimp .mc-field-group {
  margin-bottom: 1rem;
}

/* Label styling */
.nsw-mailchimp label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1b1f24;
}

/* Required text */
.nsw-mailchimp .indicates-required {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: #222;
}

/* Required indicator */
.nsw-mailchimp .asterisk {
  color: #d80d0d;
  margin-left: 0.25rem;
  font-weight: bold;
}

/* Input fields */
.nsw-mailchimp input[type="text"],
.nsw-mailchimp input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #9ea7b8;
  border-radius: 4px;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input focus (NSW DS strongly visible focus) */
.nsw-mailchimp input[type="text"]:focus,
.nsw-mailchimp input[type="email"]:focus {
  outline: none;
  border-color: #002664;
  box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.25);
}

/* Validation message containers */
.nsw-mailchimp .response {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Error state (visible & accessible) */
.nsw-mailchimp #mce-error-response {
  background-color: #fde8ec;
  border: 1px solid #d80d0d;
  color: #1b1f24;
}

/* Success state (visible & accessible) */
.nsw-mailchimp #mce-success-response {
  background-color: #e6f4ea;
  border: 1px solid #2e8540;
  color: #1b1f24;
}

/* Submit button (follows NSW DS primary button pattern) */
.nsw-mailchimp .button,
.nsw-mailchimp #mc-embedded-subscribe {
  display: inline-block;
  background-color: #002664; /* primary dark blue */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease;
}

/* Hover state */
.nsw-mailchimp .button:hover,
.nsw-mailchimp #mc-embedded-subscribe:hover {
  background-color: #001f4d;
}

/* Focus state (accessibility) */
.nsw-mailchimp .button:focus,
.nsw-mailchimp #mc-embedded-subscribe:focus {
  outline: 3px solid rgba(0, 84, 166, 0.4);
}

/* Responsive tweaks (mobile friendly) */
@media (max-width: 480px) {
  .nsw-mailchimp input[type="text"],
  .nsw-mailchimp input[type="email"] {
    font-size: 1rem;
  }
}