/**
 * Pautassi Newsletter Popup Styles
 */

/* Overlay */
.pautassi-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.pautassi-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when popup is active */
body.popup-active {
  overflow: hidden;
}

/* Container */
.pautassi-popup-container {
  max-width: 540px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.pautassi-popup-overlay.active .pautassi-popup-container {
  transform: translateY(0);
}

/* Content */
.pautassi-popup-content {
  width: 100%;
  padding: 30px;
  background: white;
  border-radius: 20px;
  outline: 1px solid #b2b2b2;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Close Button */
.popup-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.popup-close:hover {
  opacity: 0.7;
}

/* Popup Icons */
.popup-icon {
  width: 20px;
  height: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Form Group */
.popup-form-group {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  display: flex;
  margin-bottom: 15px;
}

/* Label Text */
.popup-label-text {
  align-self: stretch;
  color: black;
  font-size: 18px;
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

/* Input Wrapper */
.popup-input-wrapper {
  align-self: stretch;
  height: 45px;
  padding: 10px;
  border-radius: 6px;
  outline: 1px #a0a0a0 solid;
  outline-offset: -1px;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  display: flex;
}

.popup-input-wrapper:focus-within {
  outline-color: #dbab60;
}

/* Input Field */
.popup-input-field {
  color: #6c6c6c;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  line-height: 21px;
  word-wrap: break-word;
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 0;
}

.popup-input-field::placeholder {
  color: #6c6c6c;
}

/* WhatsApp Icon */
.whatsapp-icon-wrapper {
  width: 17.87px;
  height: 17.87px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Checkbox Group */
.popup-checkbox-group {
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  display: flex;
  margin-bottom: 10px;
}

.popup-checkbox-group {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  display: flex;
  flex-direction: row;
}

/* Checkbox */
.popup-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #d7d7d7;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Checkbox Label */
.popup-checkbox-label {
  color: #c0c0c0;
  font-size: 14px;
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}

/* Link Privacy */
.popup-link {
  color: #c0c0c0;
  text-decoration: underline;
}

.popup-link:hover {
  color: #dbab60;
}

/* Submit Wrapper */
.popup-submit-wrapper {
  align-self: stretch;
  height: 40px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #dbab60;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: flex;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Submit Button */
.popup-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 100%;
}

.popup-submit-btn span {
  color: white;
  font-size: 18px;
  font-family: "Questrial", sans-serif;
  font-weight: 400;
}

.popup-submit-wrapper:hover {
  background: #c99a4f;
}

/* Disclaimer */
.popup-disclaimer {
  align-self: stretch;
  text-align: center;
}

.popup-disclaimer p {
  color: #5d5d5d;
  font-size: 14px;
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  line-height: 18.2px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .pautassi-popup-content {
    padding: 20px;
    gap: 15px;
  }

  .popup-label-text {
    font-size: 16px;
  }

  .popup-submit-btn span {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .pautassi-popup-overlay {
    padding: 10px;
  }

  .pautassi-popup-content {
    padding: 15px;
    border-radius: 15px;
    gap: 0px;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .pautassi-popup-content .text-l {
    font-size: 25px;
  }

  .popup-label-text {
    font-size: 14px;
  }

  .popup-submit-btn span {
    font-size: 14px;
  }
}

/* ==============================================
   BOTTONE FISSO TRIGGER NEWSLETTER
   ============================================== */

.pautassi-newsletter-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 110px;
  height: 65px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.pautassi-newsletter-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* Nascondi il bottone quando il popup è attivo */
body.popup-active .pautassi-newsletter-trigger {
  display: none;
}

/* Responsive bottone fisso */
@media (max-width: 768px) {
  .pautassi-newsletter-trigger {
    bottom: 62px;
    right: 30px;
  }
}

@media (max-width: 480px) {
  .pautassi-newsletter-trigger {
    bottom: 62px;
    right: 15px;
  }
}
