/* Button wrapper */

{% scope_css %}
  {% if module.styles.alignment.alignment %}
    .button-wrapper {
      text-align: ;
    }
  {% endif %}

  /* Button */

  .button {
    {% if module.styles.background.color.color %}
      background-color: rgba(, );
    {% endif %}
    
    {% if module.styles.corner.radius >= 0 %}
      border-radius: ;
    {% endif %}
    
    
  }

  .button:hover,
  .button:focus {
    {% if module.styles.background.color.color %}
      background-color: rgba(, );
    {% endif %}
  }

  .button:active {
    {% if module.styles.background.color.color %}
      background-color: rgba(, );
    {% endif %}
  }
{% end_scope_css %}

/* Popup Modal Styles */

.popup-modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.popup-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.popup-modal__container {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.popup-modal.is-open .popup-modal__container {
  transform: translateY(0);
}
.popup-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #666;
  transition: color 0.2s;
  z-index: 20;
}
.popup-modal__close:hover {
  color: #000;
}

/* Split Layout Styles */
.popup-modal__container--split {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
  display: flex;
}
.popup-modal__container--split .popup-modal__body {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.popup-modal__container--split .popup-modal__image {
  flex: 1;
  min-height: 300px;
}
.popup-modal__container--split .popup-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup-modal__container--split .popup-modal__content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

@media (max-width: 767px) {
  .popup-modal__container--split .popup-modal__body {
    flex-direction: column;
  }
  .popup-modal__container--split {
      overflow-y: auto;
  }
  .popup-modal__container--split .popup-modal__image {
      min-height: 200px;
      max-height: 300px;
  }
}

.popup-modal__image img {
  display: block;
  max-width: 100%;
  height: auto;
}
.popup-modal__richtext {
  margin-bottom: 1.5rem;
}
.popup-modal__richtext *:last-child {
  margin-bottom: 0;
}

/* Form styles are now imported globally from css/elements/_forms.css */
/* However, we need to override the card style for the popup context to avoid double padding/borders */

.popup-modal__form.form-card {
  padding: 0;
  border: none;
  background: transparent;
}

.popup-modal__form.form-card form {
    margin-bottom: 0;
}

/* 2-Step Form Styles */

.step-indicator-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E2E8F0;
  transition: background-color 0.3s ease;
}

.step-dot.active {
  background-color: #34D399; /* Adjust to match theme if needed */
}

.step-label {
  font-size: 14px;
  color: #64748B;
  display: block;
}

.form-step-header {
  text-align: left;
  margin: 0.5rem 0 1rem;
}

.back-step-btn {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.back-step-btn:hover {
  color: #000;
  text-decoration: underline;
}

.form-step-nav {
  width: 100%;
  margin-top: 1rem;
}

.next-step-btn {
  width: 100%;
}

