/* Custom Styles for Finora AI */

/* 0. Floating Button styles */
#floatingButton {
  position: fixed;
  left: 0px;
  bottom: 0px;
  display: none;
  width: 100%;
  cursor: pointer;
}

.floatingButton {
  --tw-text-opacity: 1;
  font-family: "Encode Sans Expanded", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  background-color: rgb(0 110 250 / var(--tw-bg-opacity));
  position: relative;
  z-index: auto;
  display: block;
  width: 100%;
  padding: 5px;
  margin: 0 auto;
  transition: 0.3s;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;
}

.floatingButton:hover {
  --tw-brightness: brightness(1.05);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert)
    var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

/* 1. Shimmer Button Animations */
.shimmer-btn {
  background: linear-gradient(115deg, rgb(0, 110, 250) 0%, rgb(0, 110, 250) 42%, rgba(255, 255, 255, 0.45) 50%, rgb(0, 110, 250) 58%, rgb(0, 110, 250) 100%) !important;
  background-size: 250% 100% !important;
  background-position: 175% 0;
  animation: buttonShimmer 2.5s infinite ease-in-out, ctaPulse 2s infinite ease-in-out !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes buttonShimmer {
  0% {
    background-position: 175% 0;
  }
  70% {
    background-position: -75% 0;
  }
  100% {
    background-position: -75% 0;
  }
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 110, 250, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 110, 250, 0.6), 0 0 15px rgba(0, 110, 250, 0.4);
  }
}

.shimmer-btn:hover {
  animation: none !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(0, 110, 250, 0.65), 0 0 20px rgba(0, 110, 250, 0.45) !important;
}

.shimmer-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* 2. Premium Gold Text Shimmer */
.shimmer-text-gold {
  background: linear-gradient(110deg, #006EFA 20%, #ffffff 50%, #006EFA 80%) !important;
  background-size: 200% auto !important;
  background-position: 175% 0;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: textShimmer 3s infinite linear, goldTextPulse 2s infinite ease-in-out !important;
  display: inline-block;
}

@keyframes textShimmer {
  0% {
    background-position: 175% 0;
  }
  100% {
    background-position: -75% 0;
  }
}

@keyframes goldTextPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(0, 110, 250, 0.2));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(0, 110, 250, 0.5));
  }
}

/* 3. Fixed Header Layout */
.fixed-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  background-color: rgba(6, 10, 23, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Apply padding-top directly inside the dark header container so the white body background never leaks */
.header-new {
  padding-top: 75px !important;
  background-color: #060a17 !important;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 110, 250, 0.18) 0%, transparent 45%), 
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.15) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px !important;
  position: relative;
}

@media (min-width: 1024px) {
  .header-new {
    padding-top: 90px !important;
  }
}

/* 4. Modal Popup Form Layout styles */
.modal-container .rf-form {
  max-width: 100% !important;
  width: 100% !important;
}

.modal-container .iti {
  width: 100% !important;
}

.modal-container .rf-form-group {
  width: 100% !important;
  margin-bottom: 16px !important;
}

.modal-container .rf-form-input {
  width: 100% !important;
  height: 48px !important;
  font-weight: bold !important;
}

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 100 !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
}

.modal-overlay.flex {
  display: flex !important;
}

.modal-close-btn {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 32px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  z-index: 10 !important;
  transition: color 0.2s ease !important;
}

.modal-close-btn:hover {
  color: #ffffff !important;
}

.modal-container {
  position: relative !important;
  width: 95% !important;
  max-width: 450px !important;
  background-color: #1a1c24 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 30px 24px !important;
  color: #ffffff !important;
}

/* .modal-container overridden below */
.modal-container-old {
  position: relative !important;
  width: 90% !important;
  max-width: 490px !important;
  background-color: #1a1c24 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Entrance Fade Up Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeup {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}



/* 6. Premium Calculator Custom Styles (Unpurged) */
.custom-calc-card {
  border-radius: 16px !important;
  background-color: #111827 !important; /* Slate 900 */
  color: #ffffff !important;
  border: 1px solid #1f2937 !important; /* Slate 800 */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.custom-calc-glow-1 {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 110, 250, 0.12) 0%, transparent 70%) !important;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(40px);
}

.custom-calc-glow-2 {
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%) !important;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(40px);
}

.custom-calc-input {
  width: 100% !important;
  height: 48px !important;
  border: 1px solid #374151 !important; /* Slate 700 */
  background-color: rgba(3, 7, 18, 0.6) !important; /* Slate 950 / 60% */
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
}

.custom-calc-input:focus {
  border-color: #006EFA !important;
  box-shadow: 0 0 0 2px rgba(0, 110, 250, 0.2) !important;
  outline: none !important;
}

.custom-calc-result-box {
  width: 100% !important;
  border-radius: 16px !important;
  background-color: rgba(3, 7, 18, 0.4) !important; /* Slate 950 / 40% */
  border: 1px solid #1f2937 !important; /* Slate 800 */
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 7. Remove visual noise background images with diagonal lines */
.header-lines {
  background: none !important;
  background-image: none !important;
}

.header-lines::before,
.header-lines::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}

/* 8. Slider Custom Styles */
.custom-calc-card {
  padding: 30px !important;
}

@media (min-width: 640px) {
  .custom-calc-card {
    padding: 48px !important;
  }
}

input[type=range]#calc-slider {
  -webkit-appearance: none;
  background: #030712 !important; /* Slate 950 */
  border-radius: 999px;
  width: 100%;
  height: 8px !important;
  outline: none;
}

input[type=range]#calc-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: #030712;
  border-radius: 999px;
}

input[type=range]#calc-slider::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #006EFA !important;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(0, 110, 250, 0.6);
  transition: transform 0.1s ease;
}

input[type=range]#calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 9. Premium Steps Card Styles */
.custom-step-card {
  padding: 32px 24px !important;
  border-radius: 20px !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.custom-step-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 110, 250, 0.3) !important;
}

.custom-step-number {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #006EFA 0%, #004bb3 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  margin-bottom: 18px !important;
  box-shadow: 0 4px 10px rgba(0, 110, 250, 0.3) !important;
}

/* 10. Premium Custom Urgency Bar */
.custom-urgency-bar {
  background-color: #090d0c !important; /* Deep dark matches main theme */
  color: #ffffff !important;
  border-bottom: 2px solid #006EFA !important; /* Solid gold accent bottom border */
  box-shadow: 0 4px 20px rgba(0, 110, 250, 0.25) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #00ccff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ccff;
  animation: blinkDot 1s infinite alternate;
  flex-shrink: 0;
}

@keyframes blinkDot {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px #00ccff; }
}

.spots-count-badge {
  background-color: #006EFA !important; /* Golden background */
  color: #090d0c !important; /* Dark text for highest contrast */
  padding: 1px 8px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  display: inline-block !important;
  box-shadow: 0 0 10px rgba(0, 110, 250, 0.5) !important;
  margin: 0 4px !important;
}

.urgency-gold-text {
  color: #006EFA !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #006EFA !important;
  text-shadow: 0 0 5px rgba(0, 110, 250, 0.3) !important;
}

/* 11. Pulse Animation for Dynamic Numbers */
@keyframes numberPulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.3); text-shadow: 0 0 15px rgba(0, 110, 250, 0.7); }
  100% { transform: scale(1); filter: brightness(1); }
}
.pulse-animation {
  display: inline-block;
  animation: numberPulse 0.8s ease-out;
}

/* 12. Premium Live Traffic Status Card */
.live-traffic-card {
  background: radial-gradient(circle at 10% 20%, #121a16 0%, #090d0c 100%) !important;
  border: 1px solid rgba(0, 110, 250, 0.15) !important;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5), 
    0 0 15px rgba(0, 110, 250, 0.03) !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border-radius: 16px !important;
}

.live-traffic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.015), transparent);
  transform: translateX(-100%);
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.live-badge {
  background-color: rgba(0, 204, 255, 0.08) !important;
  border: 1px solid rgba(0, 204, 255, 0.25) !important;
  color: #00ccff !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  text-transform: uppercase;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.1);
  font-family: inherit;
}

.reg-count-pill {
  background: rgba(0, 110, 250, 0.12) !important;
  border: 1px solid rgba(0, 110, 250, 0.25) !important;
  padding: 1px 8px !important;
  border-radius: 6px !important;
  color: #006EFA !important;
  font-weight: 900 !important;
  display: inline-block !important;
  box-shadow: 0 0 10px rgba(0, 110, 250, 0.1) !important;
}

/* 13. Status Badge and Dot (Green/Online theme) */
.status-badge {
  background-color: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #10b981 !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  text-transform: uppercase;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
  font-family: inherit;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: blinkStatusDot 1s infinite alternate;
  flex-shrink: 0;
}

@keyframes blinkStatusDot {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px #10b981; }
}



/* Make country selector non-clickable and hide the dropdown arrow */
.iti__country-container {
  pointer-events: none !important;
  cursor: default !important;
  right: auto !important;
  left: 0 !important;
  border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
  padding-right: 8px !important;
  display: flex !important;
  align-items: center !important;
}
.iti__selected-country {
  cursor: default !important;
  background: none !important;
  padding-right: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}
.iti__selected-dial-code {
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: #0f172a !important;
}
.iti__arrow {
  display: none !important;
}
.rf-form input.iti__tel-input,
.js-rf-form input.iti__tel-input {
  padding-left: 90px !important;
  padding-right: 14px !important;
}

/* PC/Desktop layout adjustments for phones mockup */
@media (min-width: 1024px) {
  /* Increase spacing above the phones-bg section to prevent overlap of text */
  .phones-bg {
    margin-top: 80px !important;
  }
  
  /* Restrict phone mockup size and position */
  .custom-phones-image {
    width: 240px !important;
    height: auto !important;
    max-height: 380px !important;
    bottom: 50% !important;
    transform: translate(-50%, 50%) !important;
  }
}

/* Reset any horizontal translations on exchange integration row */
.custom-exchange-row {
  transform: none !important;
}

/* Bottom banner image layout and cropping adjustments */
@media (min-width: 1024px) {
  .custom-bottom-img-container {
    width: 384px !important;
    min-height: 454px !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .custom-bottom-img-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right center !important;
  }
}

@media (max-width: 1023px) {
  .custom-bottom-img-container {
    width: 100% !important;
    padding-top: 56.25% !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .custom-bottom-img-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}


