/**
 * SWPMail Public Styles
 *
 * @package SWPMail
 * @since   1.0.0
 */

/* Subscribe Form */
.swpm-subscribe-form {
  max-width: 480px;
  margin: 20px 0;
  padding: 24px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.swpm-subscribe-form h3 {
  margin: 0 0 16px;
  font-size: 1.2em;
}

.swpm-subscribe-form .swpm-form-group {
  margin-bottom: 12px;
}

.swpm-subscribe-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.swpm-subscribe-form input[type="text"],
.swpm-subscribe-form input[type="email"],
.swpm-subscribe-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.swpm-subscribe-form input[type="text"]:focus,
.swpm-subscribe-form input[type="email"]:focus,
.swpm-subscribe-form select:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 1px #0073aa;
}

/* Honeypot field - hidden from users */
.swpm-hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* GDPR checkbox */
.swpm-gdpr-group {
  margin-bottom: 12px;
}

.swpm-gdpr-group label {
  display: inline;
  font-weight: normal;
  font-size: 13px;
}

.swpm-gdpr-group input[type="checkbox"] {
  margin-right: 6px;
}

/* Submit button */
.swpm-btn--subscribe {
  display: inline-block;
  padding: 10px 24px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.swpm-btn--subscribe:hover {
  background: #005a87;
}

.swpm-btn--subscribe:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Messages */
.swpm-message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.swpm-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.swpm-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Minimal style variant */
.swpm-subscribe-form--minimal {
  background: transparent;
  border: none;
  padding: 0;
}

.swpm-subscribe-form--minimal input[type="email"] {
  border-radius: 4px 0 0 4px;
  border-right: none;
  display: inline-block;
  width: calc(100% - 120px);
}

.swpm-subscribe-form--minimal .swpm-btn--subscribe {
  border-radius: 0 4px 4px 0;
  vertical-align: top;
}
