/* Email Octopus Forms Styles */

/* Subscribe Form Styles */
.eo-subscribe-form-container {
  margin: 2em 0;
}

.eo-subscribe-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.eo-subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.eo-subscribe-form button[type="submit"],
.eo-button-primary {
  padding: 0.75em 1.5em;
  background-color: #ffd700;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
}

.eo-subscribe-form button[type="submit"]:hover,
.eo-button-primary:hover {
  background-color: #ffe100;
  color: #000;
}

.eo-subscribe-form button.loading,
.eo-button-loading {
  display: none;
  padding: 0.75em 1.5em;
  background-color: #666;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: not-allowed;
  font-size: 1em;
}

.eo-loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: eo-spin 0.6s linear infinite;
  margin-right: 0.5em;
}

@keyframes eo-spin {
  to { transform: rotate(360deg); }
}

.eo-success-message {
  display: none;
  padding: 1em;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin-top: 1em;
}

.eo-success-message h4 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
}

.eo-success-message p {
  margin: 0;
}

/* Contact Form Styles */
.eo-contact-form-container {
  margin: 2em 0;
}

.eo-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.eo-contact-form input,
.eo-contact-form textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
}

.eo-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.eo-contact-form button[type="submit"] {
  padding: 0.75em 1.5em;
  background-color: #ffd700;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  align-self: flex-start;
}

.eo-contact-form button[type="submit"]:hover {
  background-color: #ffe100;
  color: #000;
}

/* Modal Styles */
.eo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.eo-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.eo-modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 2em;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.eo-modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 1em;
  height: 1em;
}

.eo-modal-close:hover {
  color: #000;
}

.eo-modal-body h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.eo-modal-body p {
  margin-bottom: 1.5em;
}

.eo-modal-body .eo-subscribe-form {
  flex-direction: column;
  align-items: stretch;
}

.eo-modal-body .eo-subscribe-form input[type="email"] {
  width: 100%;
  margin-bottom: 0.5em;
}

.eo-modal-body .eo-subscribe-form button[type="submit"] {
  width: 100%;
}

.eo-modal-body .eo-success-message {
  display: none;
  text-align: center;
  padding: 1em 0;
}

.eo-modal-body .eo-success-message h4 {
  color: #ffd700;
  margin-bottom: 0.5em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .eo-subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .eo-subscribe-form input[type="email"] {
    width: 100%;
    margin-bottom: 0.5em;
  }

  .eo-subscribe-form button[type="submit"] {
    width: 100%;
  }

  .eo-modal-content {
    margin: 20% auto;
    padding: 1.5em;
  }
}
