/* =============================================
   EKKO NEWSLETTER - MODERN FRONTEND STYLES
   ============================================= */

/* ===== BUILDER-COMPATIBLE STYLES ===== */
.ekko--form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.6rem;
}

.ekko--form__container {
  padding: 0 1.5rem;
}

.ekko--form__fields {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ekko--form__field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ekko--form__field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: white;
}

.ekko--form__field-input:focus {
  outline: none;
  border-color: var(--accent, #4F46E5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ekko--form__field-input:hover {
  border-color: #9CA3AF;
}

.ekko--form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ekko--form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent, #4F46E5);
  cursor: pointer;
  flex-shrink: 0;
}
.ekko--form__checkbox-wrapper .ekko--form__checkbox {
  font-size: 1.2rem;
}

.ekko--form__checkbox-label {
  line-height: 1.6;
  font-size: 1.2rem !important;
  cursor: pointer;
}

.ekko--form__checkbox-label a {
  text-decoration: none;
  font-weight: 600;
}

.ekko--form__checkbox-label a:hover {
  text-decoration: underline;
  color: var(--text-dark-muted);
}

/* Submit button now uses ACSS variables - no custom styling */

/* ===== DEFAULT SUBSCRIPTION FORM ===== */
.ekko-subscribe {
  font-family: inherit;
  position: relative;
  padding-bottom: 60px;
  background: unset;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

/* Let titles inherit from theme */
.ekko-subscribe__title {
  margin: 0 0 1rem 0;
  text-align: center;
  line-height: 1.2;
}

/* Let description inherit from theme */
.ekko-subscribe__description {
  margin: 0 0 1.5rem 0;
  text-align: center;
  line-height: 1.6;
}

.ekko-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ekko--form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ekko--form__group--checkbox {
  margin-top: 0.5rem;
}

.ekko--form__label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ekko--form__label .required {
  color: #EF4444;
  font-weight: 700;
}

.ekko--form__input {
  padding: 0.875rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: white;
}

.ekko--form__input:focus {
  outline: none;
  border-color: var(--accent, #4F46E5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ekko--form__input:hover {
  border-color: #9CA3AF;
}

.ekko--form__input::placeholder {
  color: #9CA3AF;
}

.ekko--form__checkbox-label {
  display: block;
  font-size: 1.2rem;
  line-height: 1.6;
  cursor: pointer;
}

.ekko--form__checkbox {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent, #4F46E5);
  flex-shrink: 0;
}

.ekko--form__checkbox-label a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.ekko--form__checkbox-label a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.ekko--form__checkbox-label .required {
  color: #EF4444;
  font-weight: 700;
}

/* ===== RADIO BUTTONS (Language Selection) ===== */
.ekko--form__radio-group {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ekko--form__radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.ekko--form__radio-label:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.ekko--form__radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent, #4F46E5);
  flex-shrink: 0;
  margin: 0;
}

.ekko--form__radio-label span {
  flex: 1;
}

/* ===== VALIDATION MESSAGE ===== */
.ekko--form__message,
.ekko-subscribe-message {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.3s ease;
  border: 1.5px solid;
}

.ekko--form__message.success,
.ekko-subscribe-message.success {
  background: #ECFDF5;
  color: #065F46;
  border-color: #6EE7B7;
}

.ekko--form__message.error,
.ekko-subscribe-message.error {
  background: #FEF2F2;
  color: #991B1B;
  border-color: #F87171;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SIGNATURE ===== */
.ekko-subscribe__signature {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.ekko-subscribe__signature a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: #9CA3AF;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
}

.ekko-subscribe__signature a::before {
  content: "⚡";
  font-size: 14px;
}

.ekko-subscribe__signature a:hover {
  color: var(--accent, #4F46E5);
  background: #F9FAFB;
  border-color: #E5E7EB;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .ekko-subscribe {
    padding: 1.5rem;
    padding-bottom: 50px;
    margin: 1rem;
    border-radius: 0.5rem;
  }
  
  .ekko--form__submit {
    width: fit-content;
  }
  
  .ekko-subscribe__signature {
    bottom: 0.75rem;
    right: 0.75rem;
  }
}
