/*!
Theme Name: Ziad Tailwind
Theme URI: https://ziad.local
Author: Dr Ziad
Description: Custom WordPress theme with Tailwind CSS
Version: 1.0
*/

/*Mailpoet*/
.mailpoet_form_columns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .mailpoet_form_columns {
    flex-direction: row;
  }
}

.mailpoet_form_column {
  width: 100%;
}

.mailpoet_text {
  width: 100%;
  height: 54px;
  padding: 0 1rem;
  color: #616161;
  font-size: 17px;
  font-weight: 400;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
}

.mailpoet_text::placeholder {
  color: #616161;
}

/* Przycisk subskrypcji */
.mailpoet_submit {
  width: 200px;
  height: 54px;
  padding: 0 1rem;
  background-color: #242F6C;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.mailpoet_submit:hover {
  background-color: #1a244f;
}

.mailpoet_message {
  margin-top: 1rem;
  max-width: 500px;
  width: 100%;
  font-size: 0.875rem;
}

.mailpoet_validate_success {
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.mailpoet_validate_error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: none;
}


/* Odst�py mi�dzy polami */
.mailpoet_paragraph {
  margin-bottom: 1rem;
}

/* Header */
.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  /* leave room for underline */
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/*FAQ Answers*/
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease;
}

.faq-answer.open {
  max-height: 400px; /* wystarczające dla długich odpowiedzi */
  opacity: 1;
}


/*Contact*/
.wpcf7-form {
  margin-bottom: 1.5rem;
  /* odpowiada Tailwind space-y-6 */
}

.wpcf7-form label {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
}

.wpcf7-checkbox-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.wpcf7-checkbox-inline label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 17px;
  margin: 0;
}

.wpcf7-policy {
  font-size: 13px;
  gap: 0.5rem;
}

.wpcf7-reason label {
  margin-bottom: 30px;
}



.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  max-width: 600px;
  height: 60px;
  padding: 18px 16px;
  background-color: #F5F5F5;
  font-size: 17px;
  font-weight: 400;
  border: none;
  color: #000;
  margin-top: -20px;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #616161;
}

.wpcf7-form textarea {
  height: 150px;
  resize: vertical;
}



.wpcf7-form .wpcf7-submit {
  background-color: #242F6C;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  padding: 16px 24px;
  width: 83px;
  height: 54px;
  border: none;
  cursor: pointer;
}

/* Footer */


@media (min-width: 1550px) {
  .mbottom {
    margin-bottom: 300px !important;
  }
  .mtop {
    margin-top: 100px !important;
  }
}

@media (min-width: 1550px) {
  .xxl-gradient {
    background: linear-gradient(to right, #ffffff 0%, #ffffff 65%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,0) 85%, rgba(255,255,255,0) 100%);
    display: block;
  }
}

@media (max-width: 1549px) {
  .xxl-gradient {
    display: none;
  }
}




/*Animations*/
.fade-bottom, .fade-right, .fade-left, .fade-down, .fade-up {
    opacity: 0;
}

/* Fade from bottom (wjeżdża w górę) */
.fade-bottom,
.fade-up {
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}
.fade-bottom.animate,
.fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade from top (wjeżdża w dół) */
.fade-down {
    transform: translateY(-20px);
    transition: opacity 2s ease, transform 2s ease;
}
.fade-down.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade from right (wjeżdża z lewej strony) */
.fade-right {
    transform: translateX(20px);
    transition: opacity 2s ease, transform 2s ease;
}
.fade-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Fade from left (wjeżdża z prawej strony) */
.fade-left {
    transform: translateX(-20px);
    transition: opacity 2s ease, transform 2s ease;
}
.fade-left.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Fade-in bez przesunięcia */
.fade-in {
    opacity: 0;
    transition: opacity 2s ease;
}

.fade-in.animate {
    opacity: 1;
}

