/* Exnet Newsletter – Frontend Form Styles */

.exnet-nl-wrap {
  max-width: 760px;
  margin: 0 auto;
  font-family: inherit;
}

/* Success message */
.exnet-nl-success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 4px;
  color: #2e7d32;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Error message */
.exnet-nl-error {
  background: #fdecea;
  border: 1px solid #f44336;
  border-radius: 4px;
  color: #c62828;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* Two-column row */
.exnet-nl-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .exnet-nl-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Field wrapper */
.exnet-nl-field {
  margin-bottom: 22px;
}

/* Labels */
.exnet-nl-field label,
.exnet-nl-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d6e;
  margin-bottom: 6px;
  line-height: 1.4;
}

.exnet-nl-required {
  color: #e53935;
  margin-left: 2px;
}

.exnet-nl-hint {
  font-weight: 400;
  font-size: 13px;
  color: #555;
}

/* Text inputs */
.exnet-nl-form input[type="text"],
.exnet-nl-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #b2dfdb;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
}

.exnet-nl-form input[type="text"]:focus,
.exnet-nl-form input[type="email"]:focus {
  border-color: #00733c;
  box-shadow: 0 0 0 2px rgba(0, 115, 60, 0.15);
}

/* Select */
.exnet-nl-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #b2dfdb;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
  cursor: pointer;
}

.exnet-nl-form select:focus {
  border-color: #00733c;
  box-shadow: 0 0 0 2px rgba(0, 115, 60, 0.15);
}

/* Multi-select */
.exnet-nl-form select[multiple] {
  padding: 6px 0;
  min-height: 160px;
}

.exnet-nl-form select[multiple] option {
  padding: 6px 14px;
  line-height: 1.5;
  color: #2e7d6e;
}

.exnet-nl-form select[multiple] option:checked,
.exnet-nl-form select[multiple] option:hover {
  background: #e0f2f1;
  color: #004d40;
}

/* Single select arrow */
.exnet-nl-form select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300733c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkbox field */
.exnet-nl-field-checkbox {
  margin-bottom: 24px;
}

.exnet-nl-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400 !important;
  color: #333 !important;
  font-size: 14px;
  line-height: 1.6;
}

.exnet-nl-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #00733c;
  cursor: pointer;
}

.exnet-nl-checkbox-label a {
  color: #00733c;
  text-decoration: underline;
}

.exnet-nl-checkbox-label a:hover {
  color: #004d26;
}

/* Submit button */
.exnet-nl-field-submit {
  margin-top: 10px;
}

.exnet-nl-submit {
  display: inline-block;
  padding: 12px 36px;
  background: #00733c !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.exnet-nl-submit:hover {
  background: #005a2e !important;
  color: #fff !important;
}

.exnet-nl-submit:active {
  transform: scale(0.98);
}

.exnet-nl-submit:disabled {
  background: #a8d5b5 !important;
  cursor: not-allowed;
}

/* hCaptcha wrapper */
.exnet-nl-field .h-captcha,
.exnet-nl-captcha {
  margin-bottom: 16px;
}

/* Field validation state */
.exnet-nl-form input.exnet-nl-invalid,
.exnet-nl-form select.exnet-nl-invalid {
  border-color: #f44336;
}
