/* Newsletter Form CSS */

/* Alapstílusok mind a beágyazott formra, mind a popup-ra */
.newsletter-form,
.form-container {
  font-family: "Montserrat", sans-serif;
  color: #403317;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fbfaf4;
  border: 1px solid #d8d6cd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  color: #403317;
}

.form-subtitle {
  color: rgba(64, 51, 23, 0.75);
  font-size: 1rem;
  margin-top: 0;
  text-align: center;
  margin-bottom: 1.5rem;
}

.newsletter-form-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #403317;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 1px solid #d8d6cd;
  background-color: #fff;
  font-size: 1rem;
  color: #403317;
  transition: all 0.2s ease;
  border-radius: 0;
  height: 3rem;
  box-sizing: border-box;
}

.input-wrapper input::placeholder {
  color: rgba(64, 51, 23, 0.4);
}

.input-wrapper input:focus {
  outline: none;
  border-color: rgba(64, 51, 23, 0.5);
  box-shadow: 0 0 0 2px rgba(64, 51, 23, 0.1);
}

.email-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(64, 51, 23, 0.4);
  pointer-events: none;
}

.terms-container {
  margin-top: 0.5rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #d8d6cd;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: #403317;
  border-color: #403317;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(64, 51, 23, 0.1);
}

.checkbox-wrapper label {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(64, 51, 23, 0.9);
}

.checkbox-wrapper a {
  color: #403317;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.2s ease;
}

.checkbox-wrapper a:hover {
  opacity: 0.8;
}

button[id$="newsletter-submit"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #403317;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  height: 3rem;
}

button[id$="newsletter-submit"]:hover {
  background-color: #594826;
}

button[id$="newsletter-submit"]:active {
  transform: translateY(1px);
}

button[id$="newsletter-submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(64, 51, 23, 0.5);
  margin-top: 0.5rem;
}

.status-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  border-radius: 0;
}

.status-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Popup specifikus stílusok */
.newsletter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.form-container {
  position: relative;
  animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #403317;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 4px;
  z-index: 10;
}

.close-button:hover {
  opacity: 1;
}

/* Reszponzív beállítások */
@media (max-width: 640px) {
  .form-container,
  .newsletter-form {
    padding: 1.5rem;
    max-width: 95%;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .form-subtitle {
    font-size: 0.9rem;
  }
  button[id$="newsletter-submit"] {
    padding: 0.75rem 1rem;
  }
  .checkbox-wrapper label {
    font-size: 0.75rem;
  }
}

@media (max-width: 375px) {
  .form-container,
  .newsletter-form {
    padding: 1.25rem 1rem;
  }
  .form-title {
    font-size: 1.25rem;
  }
  .form-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
}
