.cxl-form-container {
  width: 100%;
}

.cxl-form-card {
  /* background-color: #ffffff; */
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 30px; */
}

/* --- Progress Header --- */
.cxl-progress-header {
  margin-bottom: 30px;
}

.cxl-progress-track {
  width: 100%;
  height: 8px;
  background-color: #d0d7d4;
  border-radius: 4px;
  overflow: hidden;
}

.cxl-progress-bar {
  height: 100%;
  background-color: #0b3b2c;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

/* --- Step Content --- */
.cxl-form {
  position: relative;
}

.cxl-step {
  display: none;
  animation: cxl-fade-in 0.3s forwards;
}

.cxl-step-active {
  display: block;
}

/* --- Step Animation Classes --- */
.cxl-anim-fade {
  animation: cxl-fade-in 0.4s ease forwards;
}
.cxl-anim-slide-left {
  animation: cxl-slide-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.cxl-anim-slide-right {
  animation: cxl-slide-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.cxl-anim-slide-up {
  animation: cxl-slide-up 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.cxl-anim-zoom {
  animation: cxl-zoom-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.cxl-anim-flip {
  animation: cxl-flip-in 0.5s ease-out forwards;
}
.cxl-anim-step-bounce {
  animation: cxl-step-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
}
.cxl-anim-slide-down {
  animation: cxl-slide-down 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.cxl-anim-rotate {
  animation: cxl-rotate-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.cxl-anim-zoom-out {
  animation: cxl-zoom-out 0.4s ease-out forwards;
}
.cxl-anim-swing {
  animation: cxl-swing-in 0.6s ease-out forwards;
}
/* Step Keyframes */
@keyframes cxl-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cxl-slide-left {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes cxl-slide-right {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes cxl-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cxl-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes cxl-flip-in {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(45deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
  }
}
@keyframes cxl-step-bounce {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes cxl-slide-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cxl-rotate-in {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}
@keyframes cxl-zoom-out {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes cxl-swing-in {
  0% {
    opacity: 0;
    transform: rotateX(-70deg);
    transform-origin: top;
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
    transform-origin: top;
  }
}

.cxl-step-title {
  color: #0b3b2c;
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 20px;
}

/* --- Inputs & Interactive Elements --- */
.cxl-input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.cxl-gap-sm {
  gap: 10px;
}

.cxl-visually-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Radio Button Cards */
.cxl-radio-label {
  cursor: pointer;
}

.cxl-radio-button {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  color: #0b3b2c;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Option 1: Lift & Shadow */
.radio-hover-lift:hover .cxl-radio-button {
  transform: translateY(-3px);
}
.radio-hover-lift:active .cxl-radio-button {
  transform: translateY(0);
}

/* Option 2: Scale Pop */
.radio-hover-scale:hover .cxl-radio-button {
  transform: scale(1.03);
}
.radio-hover-scale:active .cxl-radio-button {
  transform: scale(0.98);
}

/* Option 3: Inner Glow/Border */
.radio-hover-glow:hover .cxl-radio-button {
  box-shadow: 0 0 12px rgba(11, 59, 44, 0.15);
}
.radio-hover-glow:active .cxl-radio-button {
  box-shadow: 0 0 5px rgba(11, 59, 44, 0.3) inset;
}

/* Option 4: Press Inset */
.radio-hover-inset:hover .cxl-radio-button {
  transform: scale(0.98);
}
.radio-hover-inset:active .cxl-radio-button {
  transform: scale(0.95);
}

.cxl-radio-label:hover .cxl-radio-button {
  border-color: #0b3b2c;
}

.cxl-visually-hidden:checked + .cxl-radio-button {
  background-color: #0b3b2c;
  color: #ffffff;
  border-color: #0b3b2c;
  transform: none !important;
  box-shadow: none !important;
}

/* Text Inputs, Textareas, Selects */
.cxl-input,
.cxl-textarea,
.cxl-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.3s ease;
}

.cxl-input::placeholder,
.cxl-textarea::placeholder {
  color: #888888;
  font-weight: 300;
}

.cxl-input:focus,
.cxl-textarea:focus,
.cxl-select:focus {
  border-color: #0b3b2c;
}

.iti {
  width: 100%;
  display: block;
}

/* Ensure the dropdown matches your form's style */
.iti__country-list {
  border-radius: 6px;
  border: 1px solid;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Error state for validation */
.cxl-input-error {
  border-color: #e74c3c !important;
  animation: cxl-shake 0.3s;
}

@keyframes cxl-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* --- Navigation Buttons --- */
.cxl-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cxl-btn {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ffffff;
  justify-content: center;
  gap: 8px;
}
/* --- Button Interactive Classes --- */
.cxl-btn,
.cxl-action-btn,
.cxl-close-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth physics */
}

/* Option 1: Lift */
.btn-hover-lift:hover {
  transform: translateY(-3px);
}
.btn-hover-lift:active {
  transform: translateY(0);
}

/* Option 2: Scale */
.btn-hover-scale:hover {
  transform: scale(1.05);
}
.btn-hover-scale:active {
  transform: scale(0.95);
}

/* Option 3: Elastic Squeeze */
.btn-hover-squeeze:hover {
  transform: scaleX(0.95) scaleY(1.05);
}
.btn-hover-squeeze:active {
  transform: scaleX(1.05) scaleY(0.95);
}

/* Option 4: Soft Inner Shadow */
.btn-hover-inner:hover {
  transform: scale(0.98);
}
.btn-hover-inner:active {
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.4);
}

.cxl-btn-prev {
  background-color: #0b3b2c;
  display: none;
}

.cxl-btn-prev:hover {
  background-color: #082b20;
}

.cxl-btn-next,
.cxl-btn-submit {
  background-color: #b48d56;
}

.cxl-btn-next:hover,
.cxl-btn-submit:hover {
  background-color: #9c7847;
}

.cxl-btn-submit {
  display: none;
}

.cxl-step-1-active .cxl-btn-next {
  flex: 100%;
}

/* --- Loader Overlay --- */
#coachx-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 29, 55, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  color: #fff;
  text-align: center;
  padding: 24px;
  font-family: sans-serif;
}

#coachx-loading-overlay.cxl-show-loading {
  display: flex !important;
}

#coachx-loading-overlay .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 520px;
}
#coachx-loading-overlay .spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #6bad98;
  border-radius: 50%;
  animation: cxl-spin 1s linear infinite;
}
#coachx-loading-overlay .text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
#coachx-loading-overlay .sub {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}
@keyframes cxl-spin {
  to {
    transform: rotate(360deg);
  }
}
