/* =============================================================================
   PROMOTIONAL BANNER & FLOATING BAR — marketing pages + countdown timer
   Applied: templates/promotional-banner/ | templates/floting-bar-counter-timer.php
            hot-deals-page.php | campaign-dynamic-page.php
   Key selectors: .est-promotional-banner | .countdown-wrapper
                  .floting-bar-design | .cs-sale-text | .cs-coupon-css
                  #copyButton | form#gform_14
   ============================================================================= */

/* ---- Hot deals page style ---- */
.cs-sale-text {
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  color: #ff9201;
  -webkit-text-stroke: 1px var(--White, #fff);
}
.cs-coupon-css {
  color: #0f217d !important;
  font-weight: 700;
  border-radius: 8.431px;
  border: 1.581px dashed var(--Primary-500, #0f217d);
  background: var(--Primary-50, #e7e9f2);
}
.cs-deals-bg {
  background: rgba(255, 255, 255, 0.4);
}
.cs-image-css {
  padding-left: 128px;
  padding-bottom: 128px;
}
@media (min-width: 320px) and (max-width: 425px) {
  .cs-sale-text {
    font-size: 48px;
  }
  .cs-image-css {
    padding-left: 50px;
    padding-bottom: 50px;
  }
}

/* ---- Gravity Form (newsletter/subscription) ---- */
form#gform_14 {
  & input#gform_submit_button_14 {
    display: flex;
    width: 34.5rem;
    height: 3rem;
    justify-content: center;
    align-items: center;
    gap: var(--Spacing-2, 0.25rem);
    border-radius: var(--Spacing-3, 0.5rem);
    background: var(--Secondary-300, #63d6e3);
    color: var(--Primary-500, #0f217d);
    font-family: Lato;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
  }
  & .cs_subscription_email input {
    border-radius: var(--Spacing-3, 0.5rem);
    border: 1px solid var(--White, #fff);
    background: var(--Primary-Smooth, #f6f6fa);
    display: flex;
    width: 100%;
    height: var(--Spacing-8, 3rem);
    padding: var(--Spacing-4, 1rem) var(--Spacing-3, 0.5rem)
      var(--Spacing-4, 1rem) var(--Spacing-4, 1rem);
    align-items: center;
  }
  & .gform_footer.top_label {
    margin: 0;
  }
}

/* ---- Course modal (video preview) ---- */
.cs-course-modal-content__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  & iframe {
    width: 100%;
    max-height: 450px;
  }
}

/* ---- Marketing promotional banner block ---- */
.est-promotional-banner .top-heading,
.est-promotional-banner .heading-three,
.est-promotional-banner .heading-five {
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.8em;
}
.est-promotional-banner .heading-two,
.est-promotional-banner .heading-four,
.est-promotional-banner .heading-six,
.est-promotional-banner .apply-coupon-text {
  font-family: "Poppins", sans-serif;
}
.est-promotional-banner .heading-five {
  font-family: "Fjalla One", sans-serif;
}
.est-promotional-banner .coupon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.est-promotional-banner .coupon-box {
  display: flex;
  align-items: center;
  background-color: #f9a31a;
  border: 1px solid #37506e;
  min-height: 52px;
  min-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media only screen and (max-width: 767px) {
  .est-promotional-banner .coupon-box {
    min-width: 300px;
    margin: 0 auto;
  }
}
.est-promotional-banner .coupon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0px;
  border-right: 1px solid #ffffff;
  width: 15%;
  text-align: center;
}
.est-promotional-banner .coupon-icon img {
  display: block;
  position: relative;
  left: 4px;
}
.est-promotional-banner .coupon-code {
  color: #ffffff;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.5px;
  width: 55%;
  padding: 0 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}
.est-promotional-banner .copy-btn {
  text-transform: capitalize !important;
  background-color: #ffffff !important;
  color: #37506e !important;
  font-weight: 600;
  font-size: 20px;
  border-radius: 8px !important;
  padding: 6px 16px;
  margin-right: 5px;
  cursor: pointer;
  width: 30%;
  transition: 0.3s;
}
.est-promotional-banner .copy-btn:hover {
  background-color: #ff7b00 !important;
}
.est-promotional-banner .copy-btn:active {
  opacity: 0.8;
}
.est-promotional-banner .help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
}
.est-promotional-banner .help-icon:hover {
  background: transparent !important;
}
.est-promotional-banner .help-tooltip {
  position: absolute;
  bottom: 105%;
  left: 70%;
  transform: translateX(-50%) scale(0.9);
  background: #fff;
  color: #021b25;
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
  z-index: 50;
}
.est-promotional-banner .help-tooltip::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.est-promotional-banner .help-icon:hover .help-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}
.est-promotional-banner .help-tooltip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.est-promotional-banner .help-tooltip li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: #253746;
  line-height: 1.4;
}
.est-promotional-banner .help-tooltip li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #f9a31a;
  background: white;
  margin-top: 4px;
}
.est-promotional-banner .help-icon img {
  transition: filter 0.3s ease;
}
.est-promotional-banner .coupon-copy-text {
  display: none;
  color: #ffffffb3;
  font-weight: 500;
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.est-promotional-banner .coupon-copy-text.show {
  display: block;
  opacity: 1;
}
@media only screen and (max-width: 1024px) {
  .est-promotional-banner .coupon-wrapper {
    justify-content: center;
  }
  .est-promotional-banner .coupon-code {
    font-size: 22px;
  }
}

/* ---- Floating bar coupon copy button ---- */
#copyButton {
  padding: 0;
  position: relative;
  top: 10px;
  left: 42px;
}

/* ---- Floating bar countdown timer ---- */
.floting-bar-design .coupon-area {
  max-width: min-content;
}
.countdown-wrapper {
  display: flex;
  gap: 0px;
  align-items: center;
  justify-content: center;
  width: 204px;
}
.countdown-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.count-number {
  width: 34px;
  height: 34px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #5f738b !important;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.count-label {
  width: 100%;
  font-size: 10px;
  text-align: center;
  line-height: 14px;
  font-weight: 400;
  margin-top: 5px;
  color: #ffffff;
  display: block;
  font-family: "Poppins", sans-serif;
}
