/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #585a61;
}

.hidden {
  display: none;
}

a {
  color: #44478d;
  text-decoration: none;
}

a:hover {
  color: #5B5FC7;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

.btn {
  background: #44478d;
  display: inline-block;
  padding: 8px 30px;
  border-radius: 20px;
  color: #fff;
  transition: none;
  font-size: 14px;
  font-weight: 400;
  font-family: "Raleway", sans-serif;
  transition: 0.3s;
}

.btn:hover {
  color: #fff;
  background: #5B5FC7;
}

.currencySymbolSmall {
  font-size: 60%;
  margin-right: 6px;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #44478d;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #5B5FC7;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: all 0.5s;
  z-index: 997;
  transition: all 0.5s;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.95);
}

#header.header-transparent {
  background: transparent;
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .logo {
  display: flex;
  align-items: center;
  height: 40px;
}

#header .logo h1 {
  font-size: 18px;
  margin-left: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 10px;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #44478d;
  text-decoration: none;
}

#header .logo img {
  margin: 0;
  height: 40px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  color: #47536e;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #44478d;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: #44478d;
  color: #ffffff !important;
  padding: 12px 25px;
  margin-left: 30px;
  line-height: 1;
  border-radius: 50px;
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  background: #5B5FC7;
  color: #fff;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 600;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #44478d;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #47536e;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(51, 60, 79, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 6px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #47536e;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #44478d;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #44478d;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px 0;
}

#hero::before {
  content: "";
  position: absolute;
  right: -100%;
  top: 20%;
  width: 250%;
  height: 200%;
  z-index: -1;
  background-color: #e8ecf5;
  transform: skewY(135deg);
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 56px;
  color: #515f7d;
  font-family: "Poppins", sans-serif;
}

#hero h2 {
  color: #515f7d;
  margin-bottom: 40px;
  font-size: 20px;
}

#hero h2 b {
  font-weight: 600;
}

#hero .download-btn {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  padding: 8px 24px 10px 46px;
  border-radius: 3px;
  transition: 0.5s;
  color: #fff;
  background: #44478d;
  position: relative;
}

#hero .download-btn:hover {
  color: #ffffff;
  background: #5B5FC7;
}

#hero .download-btn i {
  font-size: 20px;
  position: absolute;
  left: 18px;
  top: 8.5px;
}

#hero .download-btn+.download-btn {
  margin-left: 20px;
}

#hero .hero-img img {
  opacity: 0;
  animation: 1s ease-out 0.3s 1 heroAnimation forwards;
}

@keyframes heroAnimation {
  0% {
    transform: rotateY(0);
    opacity: 0;
  }

  100% {
    transform: rotateY(-25deg);
    opacity: 1;
  }
}

@media (max-width: 991px) {
  #hero {
    text-align: center;
  }

  #hero .download-btn+.download-btn {
    margin: 0 10px;
  }

  #hero .hero-img {
    text-align: center;
  }

  #hero .hero-img img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  #hero .hero-img img {
    width: 100%;
    transform: none;
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 575px) {
  #hero .hero-img img {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background-color: #f2f5fa;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 0;
  color: #44478d;
  font-family: "Poppins", sans-serif;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  margin-top: 75px;
  padding: 15px 0;
  background-color: #f6f8fb;
  min-height: 40px;
}

@media (max-width: 992px) {
  .breadcrumbs {
    margin-top: 60px;
  }
}

.breadcrumbs h2 {
  font-size: 24px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #6c757d;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }

  .breadcrumbs ol {
    display: block;
  }

  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# App Features
--------------------------------------------------------------*/

section.features {
  padding: 60px 0 10px 0;
  /* Overwrite general section */
}

.features .icon-box {
  margin-top: 25px;
}

.features .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0 10px 60px;
}

.features .icon-box i {
  font-size: 48px;
  float: left;
  color: #44478d;
}

.features .icon-box p {
  font-size: 15px;
  color: #979aa1;
  margin-left: 60px;
}

@media (max-width: 991px) {
  .features .image {
    text-align: center;
  }

  .features .image img {
    max-width: 80%;
  }
}

@media (max-width: 667px) {
  .features .image img {
    max-width: 100%;
  }
}

/*--------------------------------------------------------------
# Pricing
--------------------------------------------------------------*/
.pricing .row {
  padding-top: 15px;
}

.pricing .box {
  padding: 40px;
  margin-bottom: 15px;
  box-shadow: 0px 0px 30px rgba(73, 78, 92, 0.15);
  background: #fff;
  text-align: center;
}

.pricing h3 {
  font-weight: 300;
  margin-bottom: 15px;
  font-size: 28px;
}

.pricing h4 {
  font-size: 46px;
  color: #44478d;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 25px;
}

.pricing h4 .pricingPeriod {
  color: #bababa;
  font-size: 18px;
  display: block;
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: #999;
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding-bottom: 12px;
}

.pricing ul i {
  color: #44478d;
  font-size: 18px;
  padding-right: 4px;
}

.pricing ul .na {
  color: #ccc;
}

.pricing ul .na i {
  color: #ccc;
}

.pricing ul .na span {
  text-decoration: line-through;
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Frequently Asked Questions
--------------------------------------------------------------*/
.faq .accordion-list {
  padding: 0 100px;
}

.faq .accordion-list ul {
  padding: 0;
  list-style: none;
}

.faq .accordion-list li+li {
  margin-top: 15px;
}

.faq .accordion-list li {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  position: relative;
}

.faq .accordion-list a {
  display: block;
  position: relative;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  padding: 0 30px;
  outline: none;
  cursor: pointer;
}

.faq .accordion-list .icon-help {
  font-size: 24px;
  position: absolute;
  right: 0;
  left: 20px;
  color: #b1c0df;
}

.faq .accordion-list .icon-show,
.faq .accordion-list .icon-close {
  font-size: 24px;
  position: absolute;
  right: 0;
  top: 0;
}

.faq .accordion-list p {
  margin-bottom: 0;
  padding: 10px 0 0 0;
}

.faq .accordion-list .icon-show {
  display: none;
}

.faq .accordion-list a.collapsed {
  color: #343a40;
}

.faq .accordion-list a.collapsed:hover {
  color: #44478d;
}

.faq .accordion-list a.collapsed .icon-show {
  display: inline-block;
}

.faq .accordion-list a.collapsed .icon-close {
  display: none;
}

@media (max-width: 1200px) {
  .faq .accordion-list {
    padding: 0;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  padding: 15px 20px;
  background: #f1f3f6;
  color: #47536e;
  text-align: center;
  border: 1px solid #fff;
}

.contact .info i {
  font-size: 48px;
  color: #9fb2d8;
  margin-bottom: 15px;
}

.contact .info h4 {
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}

.contact .info p {
  font-size: 15px;
}

.contact .php-email-form {
  width: 100%;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form label {
  font-family: "Poppins", sans-serif;
  margin-bottom: 5px;
  color: #8a8c95;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #44478d;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #fff;
  border: 2px solid #44478d;
  padding: 10px 24px;
  color: #44478d;
  transition: 0.4s;
  border-radius: 50px;
  margin-top: 5px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #44478d;
  color: #fff;
}

@media (max-width: 1024px) {
  .contact .php-email-form {
    padding: 30px 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .contact .php-email-form {
    padding: 15px 0 0 0;
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #fff;
  padding: 0 0 30px 0;
  color: #47536e;
  font-size: 14px;
  background: #eff2f8;
}

#footer .copyright {
  text-align: center;
  float: left;
  color: #47536e;
}

#footer .credits {
  float: right;
  text-align: center;
  font-size: 13px;
  color: #97a3ae;
}

#footer a {
  color: #47536e;
}

#footer .credits a {
  color: #77838e;
}

@media (max-width: 768px) {

  #footer .copyright,
  #footer .credits {
    float: none;
    text-align: center;
    padding: 5px 0;
  }
}


/*--------------------------------------------------------------
# Loading Spinner
--------------------------------------------------------------*/

.spinner {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.spinner:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #44478d;
  border-color: #44478d transparent #44478d transparent;
  animation: spinner 1.2s linear infinite;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Meetly – Booking & Scheduling : rebrand additions
--------------------------------------------------------------*/

/* Logo subtitle */
#header .logo h1 .logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a8db5;
  margin-top: 2px;
}

/* Brand text */
.grad-text {
  color: #0135A2;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #44478d;
  background: #e8ecf5;
  border: 1px solid #d6ddf0;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge i {
  color: #5b5fc8;
  font-size: 16px;
}

/* Hero CTAs */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

#hero .ghost-btn {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  margin-top: 1rem;
  border-radius: 3px;
  color: #44478d;
  background: #fff;
  border: 1px solid #c9cfe6;
  transition: .25s;
}

#hero .ghost-btn:hover {
  background: #f2f5fa;
  border-color: #5b5fc8;
  color: #5b5fc8;
}

#hero .ghost-btn i {
  font-size: 19px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 13px;
  color: #6b6e86;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust i {
  color: #17b8b8;
  font-size: 16px;
}

/* ---------- Hero product explainer animation ---------- */
.hx {
  --hx-blue: #0135A2;
  --hx-ink: #1d2748;
  --hx-muted: #6b7392;
  --hx-line: #e1e6f4;
  --hx-surface: #ffffff;
  --hx-canvas: #f4f6fc;
  --hx-busy: #d23d57;
  --hx-busy-soft: #fde7eb;
  --hx-free: #1f9d5d;
  --hx-free-soft: #e6f6ee;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: hxIntro .7s ease-out .15s forwards;
}

@keyframes hxIntro {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hx-window {
  position: relative;
  width: 100%;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -22px rgba(1, 53, 162, .35), 0 8px 24px rgba(29, 39, 72, .08);
  overflow: hidden;
}

.hx-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--hx-blue);
}

.hx-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  padding: 2px;
}

.hx-app {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

/* 16:9 stage that cross-fades between phases */
.hx-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hx-canvas);
}

.hx-phase {
  position: absolute;
  inset: 0;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}

.hx[data-phase="1"] .hx-setup,
.hx[data-phase="2"] .hx-avail,
.hx[data-phase="3"] .hx-book,
.hx[data-phase="4"] .hx-close {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease, visibility 0s;
}

/* ----- Phase 1: setup ----- */
.hx-eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--hx-blue);
  margin-bottom: 10px;
}

.hx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
  flex: 1;
}

.hx-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(29, 39, 72, .06);
  opacity: 0;
  transform: translateY(10px);
}

.hx[data-phase="1"] .hx-step { animation: hxStepIn .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.hx[data-phase="1"] .hx-step[data-step="1"] { animation-delay: .2s; }
.hx[data-phase="1"] .hx-step[data-step="2"] { animation-delay: 1.5s; }
.hx[data-phase="1"] .hx-step[data-step="3"] { animation-delay: 2.8s; }

@keyframes hxStepIn {
  to { opacity: 1; transform: translateY(0); }
}

.hx-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hx-canvas);
  border: 1.5px solid var(--hx-line);
  color: transparent;
  font-size: 17px;
}

.hx[data-phase="1"] .hx-step .hx-check { animation: hxCheck .4s ease forwards; }
.hx[data-phase="1"] .hx-step[data-step="1"] .hx-check { animation-delay: .8s; }
.hx[data-phase="1"] .hx-step[data-step="2"] .hx-check { animation-delay: 2.1s; }
.hx[data-phase="1"] .hx-step[data-step="3"] .hx-check { animation-delay: 3.4s; }

@keyframes hxCheck {
  0% { transform: scale(.7); }
  60% { transform: scale(1.15); }
  100% {
    transform: scale(1);
    background: var(--hx-free-soft);
    border-color: var(--hx-free);
    color: var(--hx-free);
  }
  to {
    background: var(--hx-free-soft);
    border-color: var(--hx-free);
    color: var(--hx-free);
  }
}

.hx-step-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--hx-ink);
}

/* ----- Phase 2: availability logic ----- */
.hx-formula {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--hx-ink);
  margin-bottom: 14px;
}

.hx-timeline {
  position: relative;
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--hx-line);
  background:
    repeating-linear-gradient(90deg, rgba(1, 53, 162, .07) 0, rgba(1, 53, 162, .07) 1px, transparent 1px, transparent 11.11%),
    var(--hx-surface);
  overflow: hidden;
}

.hx-window-band {
  position: absolute;
  left: 11.11%;
  right: 0;
  top: 16px;
  height: 64px;
  border-radius: 10px;
  border: 1px dashed rgba(1, 53, 162, .4);
  background: rgba(1, 53, 162, .07);
}

.hx-busy {
  position: absolute;
  z-index: 2;
  top: 24px;
  height: 48px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--hx-busy);
  background: var(--hx-busy-soft);
  border: 1px solid rgba(210, 61, 87, .35);
}

.hx-busy-a { left: 22.22%; width: 16.6%; }
.hx-busy-b { left: 55.5%; width: 22.2%; }

/* Moving time indicator */
.hx-now {
  position: absolute;
  z-index: 4;
  top: 8px;
  bottom: 26px;
  width: 2px;
  background: var(--hx-blue);
  box-shadow: 0 0 0 4px rgba(1, 53, 162, .12);
}

.hx-now::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hx-blue);
}

.hx[data-phase="2"] .hx-now { animation: hxSweep 9s cubic-bezier(.5, 0, .25, 1) forwards; }

@keyframes hxSweep {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  78%, 100% { left: 100%; opacity: 1; }
}

.hx-slot {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  transform: translateX(-50%) scale(.6);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--hx-free-soft);
  border: 1px solid var(--hx-free);
  color: var(--hx-free);
  font-size: 10.5px;
  font-weight: 900;
  opacity: 0;
}

.hx-slot-c { left: 11.11%; }
.hx-slot-a { left: 44.4%; }
.hx-slot-b { left: 83.3%; }

.hx[data-phase="2"] .hx-slot { animation: hxSlotPop .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.hx[data-phase="2"] .hx-slot-c { animation-delay: 1.4s; }
.hx[data-phase="2"] .hx-slot-a { animation-delay: 3.6s; }
.hx[data-phase="2"] .hx-slot-b { animation-delay: 6s; }

@keyframes hxSlotPop {
  0% { opacity: 0; transform: translateX(-50%) scale(.6); }
  60% { transform: translateX(-50%) scale(1.12); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

.hx-hours {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  color: #9aa1c0;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.hx-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hx-muted);
}

.hx-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hx-key {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.hx-key-busy { background: var(--hx-busy-soft); border: 1px solid rgba(210, 61, 87, .45); }
.hx-key-free { background: var(--hx-free-soft); border: 1px solid var(--hx-free); }

/* ----- Phase 3: customer booking ----- */
.hx-book { justify-content: flex-start; }

.hx-book-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hx-blue);
  font-size: 12px;
  font-weight: 800;
}

.hx-book-brand img { width: 24px; height: 24px; }

.hx-book-title {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--hx-ink);
  margin-top: 12px;
}

.hx-book-slots {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hx-book-slot {
  text-align: center;
  padding: 12px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--hx-line);
  background: var(--hx-surface);
  color: var(--hx-blue);
  font-size: 13px;
  font-weight: 800;
}

.hx[data-phase="3"] .hx-book-slot[data-slot="1"] { animation: hxSelect 6s ease forwards; }

@keyframes hxSelect {
  0%, 30% { background: var(--hx-surface); color: var(--hx-blue); border-color: var(--hx-line); transform: none; }
  38% { transform: translateY(-3px); }
  45%, 100% {
    background: var(--hx-blue);
    color: #fff;
    border-color: var(--hx-blue);
    box-shadow: 0 10px 22px rgba(1, 53, 162, .28);
    transform: translateY(0);
  }
}

.hx-toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-left: 4px solid var(--hx-free);
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(29, 39, 72, .12);
  opacity: 0;
  transform: translateY(8px);
}

.hx-toast i { color: var(--hx-free); font-size: 20px; }

.hx[data-phase="3"] .hx-toast { animation: hxToast .5s cubic-bezier(.2, .8, .2, 1) 3s forwards; }

@keyframes hxToast {
  0% { opacity: 0; transform: translateY(10px) scale(.97); }
  60% { transform: translateY(0) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- Closing ----- */
.hx-close {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--hx-blue);
}

.hx-close-stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
}

.hx-close-line {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  font-family: "Raleway", sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  color: #fff;
  opacity: 0;
}

.hx-close-brand {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .3px;
  opacity: 0;
}

.hx-close-brand img {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
}

/* Dramatic three-beat reveal: line 1 -> clear -> line 2 -> clear -> Meetly */
.hx[data-phase="4"] .hx-close-line-1 { animation: hxDramaA 8s ease forwards; }
.hx[data-phase="4"] .hx-close-line-2 { animation: hxDramaB 8s ease forwards; }
.hx[data-phase="4"] .hx-close-brand { animation: hxDramaC 8s cubic-bezier(.2, .8, .2, 1) forwards; }

@keyframes hxDramaA {
  0% { opacity: 0; transform: translateY(10px) scale(.98); }
  4% { opacity: 1; transform: translateY(0) scale(1); }
  26% { opacity: 1; transform: translateY(0) scale(1); }
  31% { opacity: 0; transform: translateY(-8px) scale(1.02); }
  100% { opacity: 0; }
}

@keyframes hxDramaB {
  0%, 38% { opacity: 0; transform: translateY(10px) scale(.98); }
  43% { opacity: 1; transform: translateY(0) scale(1); }
  62% { opacity: 1; transform: translateY(0) scale(1); }
  67% { opacity: 0; transform: translateY(-8px) scale(1.02); }
  100% { opacity: 0; }
}

@keyframes hxDramaC {
  0%, 74% { opacity: 0; transform: translateY(12px) scale(.9); }
  82% { opacity: 1; transform: translateY(0) scale(1.06); }
  88%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Static fallback for reduced motion */
.hx.hx-static .hx-phase { transition: none; }
.hx.hx-static .hx-now,
.hx.hx-static .hx-slot,
.hx.hx-static .hx-step,
.hx.hx-static .hx-check,
.hx.hx-static .hx-book-slot,
.hx.hx-static .hx-toast,
.hx.hx-static .hx-close-line,
.hx.hx-static .hx-close-brand {
  animation: none !important;
  opacity: 1;
  transform: none;
}

.hx.hx-static .hx-book-slot[data-slot="1"] {
  background: var(--hx-blue);
  color: #fff;
  border-color: var(--hx-blue);
}

@media (max-width: 575px) {
  .hx-close-line { font-size: 20px; }
  .hx-close-brand { font-size: 24px; }
  .hx-phase { padding: 18px 18px; }
}

/* ---------- How it works ---------- */
.how-it-works .hiw-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.how-it-works .hiw-step {
  flex: 1 1 240px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(43, 46, 102, .08);
  border: 1px solid #ececf6;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: hiwIn .6s ease-out forwards;
}

.how-it-works .hiw-step[data-step="2"] {
  animation-delay: .15s;
}

.how-it-works .hiw-step[data-step="3"] {
  animation-delay: .3s;
}

@keyframes hiwIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.how-it-works .hiw-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17b8b8, #5b5fc8);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(91, 95, 200, .4);
}

.how-it-works .hiw-icon {
  width: 64px;
  height: 64px;
  margin: 6px auto 14px;
  border-radius: 16px;
  background: #eef0fb;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #5b5fc8;
}

.how-it-works .hiw-step h4 {
  font-size: 18px;
  color: #2f3257;
  margin-bottom: 8px;
}

.how-it-works .hiw-step p {
  font-size: 14px;
  color: #6b6e86;
  margin: 0;
}

.how-it-works .hiw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f8a8a;
  background: #e3f7f7;
  padding: 5px 12px;
  border-radius: 999px;
}

.how-it-works .hiw-arrow {
  display: flex;
  align-items: center;
  color: #b9c0dd;
  font-size: 30px;
}

@media (max-width: 991px) {
  .how-it-works .hiw-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Pricing extras ---------- */
.pricing .box {
  position: relative;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}

.pricing .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(43, 46, 102, .14);
}

.pricing .box.featured {
  border: 2px solid #5b5fc8;
  box-shadow: 0 22px 44px rgba(91, 95, 200, .22);
}

.pricing .price-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #17b8b8, #5b5fc8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(91, 95, 200, .4);
}

.pricing .btn {
  width: 100%;
  text-align: center;
}

.pricing .btn.btn-outline {
  background: #fff;
  color: #44478d;
  border: 1.5px solid #c9cfe6;
}

.pricing .btn.btn-outline:hover {
  background: #f2f5fa;
  border-color: #5b5fc8;
  color: #5b5fc8;
}

.pricing h4 .pricingPeriod {
  font-size: 14px;
}

.pricing h4 .pricingPeriodLarge {
  font-size: 26px;
  font-weight: 700;
  color: #2f3257;
}

@media (max-width: 575px) {
  .demo-picker {
    position: static;
    margin-top: 16px;
  }

  .demo-body {
    min-height: auto;
  }
}