/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
  --sps-background: #ffffff;
  --sps-foreground: hsl(198, 17%, 15%);

  --sps-card: #ffffff;
  --sps-card-foreground: hsl(198, 17%, 15%);

  --sps-primary: hsl(195, 100%, 45%);
  --sps-primary-foreground: #ffffff;
  --sps-primary-dark: hsl(195, 100%, 35%);

  --sps-secondary: hsl(195, 100%, 55%);
  --sps-secondary-foreground: #ffffff;
  --sps-secondary-dark: hsl(195, 100%, 40%);

  --sps-muted: hsl(210, 40%, 96%);
  --sps-muted-foreground: hsl(215, 16%, 47%);

  --sps-accent: hsl(142, 76%, 36%);
  --sps-accent-foreground: #ffffff;

  --sps-border: hsl(214, 32%, 91%);
  --sps-input: hsl(214, 32%, 91%);
  --sps-ring: hsl(195, 100%, 45%);

  --sps-radius: 0.75rem;

  --sps-shadow-card: 0 4px 6px -1px hsla(198, 17%, 15%, 0.1),
    0 2px 4px -2px hsla(198, 17%, 15%, 0.1);
  --sps-shadow-elevated: 0 10px 15px -3px hsla(198, 17%, 15%, 0.1),
    0 4px 6px -4px hsla(198, 17%, 15%, 0.1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
#sps-calculator-app {
  /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important; */
  line-height: 1.5 !important;
  color: var(--sps-foreground) !important;
  background-color: var(--sps-background) !important;
}

#sps-calculator-app *,
#sps-calculator-app *::before,
#sps-calculator-app *::after {
  box-sizing: border-box !important;
}

#sps-calculator-app h1,
#sps-calculator-app h2,
#sps-calculator-app h3,
#sps-calculator-app h4,
#sps-calculator-app p {
  margin: 0 !important;
}

#sps-calculator-app h2 {
  margin-bottom: 10px !important;
}

/* ============================================
   Header
   ============================================ */
.sps-header {
  background-color: var(--sps-primary) !important;
  padding: 1.5rem 1rem !important;
}

.sps-header-inner {
  max-width: 80rem !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  max-width: 1110px !important;
}

/* @media (max-width: 600px) {
    .sps-header-inner {
       flex-direction: column !important;
       align-items: start !important;
    }
} */

.sps-logo {
  height: 3rem !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

.sps-header-text h1 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  .sps-header-text h1 {
    font-size: 1.875rem !important;
  }
}

.sps-header-text p {
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 0.25rem !important;
  text-align: center !important;
}

/* ============================================
   Main Container
   ============================================ */
.sps-calculator-container {
  max-width: 72rem !important;
  margin: 0 auto !important;
  padding: 3rem 1rem !important;
}

.sps-calculator-grid {
  display: grid !important;
  gap: 2rem !important;
}

@media (min-width: 1024px) {
  .sps-calculator-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ============================================
   Section Headers
   ============================================ */
.sps-section-header {
  margin-bottom: 1.5rem !important;
}

.sps-section-header h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--sps-foreground) !important;
  margin-bottom: 0.5rem !important;
}

.sps-section-header p {
  color: var(--sps-muted-foreground) !important;
}

.sps-results-intro {
  font-size: 16px !important;
}

.sps-highlight {
  font-weight: 600 !important;
  color: var(--sps-primary) !important;
}

/* ============================================
   Pre-filled Notice
   ============================================ */
.sps-prefilled-notice {
  background-color: hsla(195, 100%, 45%, 0.1) !important;
  border: 1px solid hsla(195, 100%, 45%, 0.2) !important;
  border-radius: var(--sps-radius) !important;
  padding: 1rem !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

.sps-prefilled-notice .icon-zap {
  width: 1.25rem !important;
  height: 1.25rem !important;
  color: var(--sps-primary) !important;
  flex-shrink: 0 !important;
  margin-top: 0.125rem !important;
}

.sps-prefilled-notice p {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--sps-foreground) !important;
}

/* ============================================
   Input Card
   ============================================ */
.sps-input-card {
  background: linear-gradient(
    180deg,
    var(--sps-card) 0%,
    var(--sps-muted) 100%
  ) !important;
  border-radius: var(--sps-radius) !important;
  padding: 1.5rem !important;
  box-shadow: var(--sps-shadow-card) !important;
  border: 1px solid var(--sps-border) !important;
}

.sps-input-field {
  margin-bottom: 1.5rem !important;
}

.sps-input-field:last-child {
  margin-bottom: 0 !important;
}

.sps-input-field label {
  display: block !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
  margin-bottom: 0.25rem !important;
}

.sps-field-description {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
  margin-bottom: 0.5rem !important;
}

/* Input Wrapper */
.sps-input-wrapper {
  position: relative !important;
}

.sps-currency-symbol {
  position: absolute !important;
  left: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--sps-muted-foreground) !important;
}

.sps-input-wrapper input {
  padding-left: 1.75rem !important;
}

/* Form Controls */
.sps-input-field input[type="number"],
.sps-input-field input[type="text"],
.sps-input-field select {
  width: 100% !important;
  padding: 0.625rem 0.75rem !important;
  font-size: 0.875rem !important;
  border: 1px solid var(--sps-border) !important;
  border-radius: calc(var(--sps-radius) - 2px) !important;
  background-color: var(--sps-background) !important;
  color: var(--sps-foreground) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

#annualRevenue {
  padding-left: 20px !important;
}

.sps-input-field input:focus,
.sps-input-field select:focus {
  outline: none !important;
  border-color: var(--sps-ring) !important;
  box-shadow: 0 0 0 2px hsla(195, 100%, 45%, 0.2) !important;
}

.sps-formatted-value {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
  margin-top: 0.25rem !important;
}

/* Slider */
.sps-input-field input[type="range"] {
  width: 100% !important;
  height: 0.5rem !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: var(--sps-muted) !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  margin: 1rem 0 !important;
}

.sps-input-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  background: var(--sps-primary) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  border: 2px solid var(--sps-background) !important;
  box-shadow: var(--sps-shadow-card) !important;
}

.sps-input-field input[type="range"]::-moz-range-thumb {
  width: 1.25rem !important;
  height: 1.25rem !important;
  background: var(--sps-primary) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  border: 2px solid var(--sps-background) !important;
  box-shadow: var(--sps-shadow-card) !important;
}

.sps-slider-labels {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
  margin-bottom: 0.5rem !important;
}

.sps-otif-hint {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
}

/* Maturity Options */
.sps-prefill-note {
  font-size: 0.75rem !important;
  color: var(--sps-primary) !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
}

.sps-maturity-options {
  display: grid !important;
  gap: 0.75rem !important;
}

.sps-maturity-btn {
  text-align: left !important;
  padding: 1rem !important;
  border-radius: var(--sps-radius) !important;
  border: 2px solid var(--sps-border) !important;
  background-color: var(--sps-background) !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.sps-maturity-btn:hover {
  border-color: hsla(195, 100%, 45%, 0.5) !important;
}

.sps-maturity-btn.active {
  border-color: var(--sps-primary) !important;
  background-color: hsla(195, 100%, 45%, 0.05) !important;
  box-shadow: var(--sps-shadow-card) !important;
}

.sps-maturity-label {
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
  margin-bottom: 0.25rem !important;
}

.sps-maturity-desc {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
}

.sps-health-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  font-size: 0.75rem !important;
  color: var(--sps-primary) !important;
  text-decoration: none !important;
  margin-top: 0.75rem !important;
}

.sps-health-link:hover {
  text-decoration: underline !important;
}

.sps-health-link .icon-external {
  width: 0.75rem !important;
  height: 0.75rem !important;
}

/* ============================================
   Result Cards
   ============================================ */
.sps-result-card,
.sps-form-container {
  background: linear-gradient(
    180deg,
    var(--sps-card) 0%,
    hsla(210, 40%, 96%, 0.1) 100%
  ) !important;
  border-radius: var(--sps-radius) !important;
  padding: 1.5rem !important;
  box-shadow: var(--sps-shadow-elevated) !important;
  border: 1px solid var(--sps-border) !important;
  margin-bottom: 1.5rem !important;
  transition: transform 0.3s !important;
}

.sps-result-card:hover {
  transform: scale(1.02) !important;
}

.sps-gradient-card {
  background: linear-gradient(
    135deg,
    var(--sps-primary-dark) 0%,
    var(--sps-secondary-dark) 100%
  ) !important;
  color: var(--sps-primary-foreground) !important;
  border: none !important;
}

.sps-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.sps-icon-wrapper {
  padding: 0.5rem !important;
  border-radius: calc(var(--sps-radius) - 2px) !important;
  background-color: hsla(195, 100%, 45%, 0.1) !important;
}

.sps-icon-wrapper svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  color: var(--sps-primary) !important;
}

.sps-icon-light {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.sps-icon-light svg {
  color: #ffffff !important;
}

.sps-card-header h3 {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
}

.sps-gradient-card .sps-card-header h3 {
  color: #ffffff !important;
}

/* ============================================
   Metrics
   ============================================ */
.sps-metrics-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
}

.sps-metric {
  margin-bottom: 0.75rem !important;
}

.sps-metric-label {
  font-size: 0.875rem !important;
  color: var(--sps-muted-foreground) !important;
}

.sps-metric-highlight .sps-metric-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.sps-metric-value {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--sps-foreground) !important;
}

.sps-metric-highlight .sps-metric-value {
  color: #ffffff !important;
}

.sps-metric-subtext {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
  margin-top: 0.25rem !important;
}

.sps-metric-highlight .sps-metric-subtext {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Performance Lift Box */
.sps-performance-lift {
  padding: 0.75rem !important;
  background-color: hsla(195, 100%, 45%, 0.05) !important;
  border-radius: calc(var(--sps-radius) - 2px) !important;
  border-top: 1px solid var(--sps-border) !important;
  margin-top: 0.75rem !important;
}

.sps-lift-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 0.25rem !important;
}

.sps-lift-header .icon-zap {
  width: 1rem !important;
  height: 1rem !important;
  color: var(--sps-primary) !important;
}

.sps-lift-header p {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
}

.sps-lift-value {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--sps-primary) !important;
  margin-bottom: 0.25rem !important;
}

.sps-lift-desc {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
}

/* ============================================
   Breakdown Grid
   ============================================ */
.sps-breakdown-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
  .sps-breakdown-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

.sps-breakdown-card {
  background: linear-gradient(
    180deg,
    var(--sps-card) 0%,
    hsla(210, 40%, 96%, 0.1) 100%
  ) !important;
  border-radius: var(--sps-radius) !important;
  padding: 1.5rem !important;
  border: 1px solid var(--sps-border) !important;
}

.sps-breakdown-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

.sps-breakdown-header h4 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
}

.sps-breakdown-value {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--sps-foreground) !important;
  margin-bottom: 0.5rem !important;
}

.sps-breakdown-desc {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
  line-height: 1.5 !important;
}

/* ============================================
   Peer Comparison Info
   ============================================ */
.sps-peer-info {
  padding-top: 0.75rem !important;
  border-top: 1px solid var(--sps-border) !important;
}

.sps-peer-info p {
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
  margin-bottom: 0.5rem !important;
}

.sps-peer-info .sps-insight {
  color: hsla(195, 100%, 40%, 0.8) !important;
  font-weight: 500 !important;
  margin-top: 0.5rem !important;
}

/* ============================================
   CTA Section
   ============================================ */
.sps-cta-section {
  background: linear-gradient(
    135deg,
    hsla(195, 100%, 45%, 0.1) 0%,
    hsla(195, 100%, 55%, 0.1) 100%
  ) !important;
  border-radius: var(--sps-radius) !important;
  padding: 1.5rem !important;
  border: 1px solid hsla(195, 100%, 45%, 0.2) !important;
  margin-bottom: 1.5rem !important;
}

.sps-cta-section h3 {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
  margin-bottom: 0.5rem !important;
}

.sps-cta-section p {
  font-size: 0.875rem !important;
  color: var(--sps-muted-foreground) !important;
  margin-bottom: 1rem !important;
}

.sps-cta-note {
  font-size: 0.75rem !important;
  color: hsla(215, 16%, 47%, 0.8) !important;
}

.sps-cta-btn,
#submit_button {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--sps-primary-foreground) !important;
  background-color: var(--sps-primary) !important;
  border: none !important;
  border-radius: calc(var(--sps-radius) - 2px) !important;
  cursor: pointer !important;
  transition: background-color 0.15s, transform 0.15s !important;
}

.sps-cta-btn:hover,
#submit_button:hover {
  background-color: var(--sps-primary-dark) !important;
}

.sps-cta-btn:hover svg {
  transform: translateX(4px) !important;
}

.sps-cta-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.sps-cta-btn svg {
  width: 1rem !important;
  height: 1rem !important;
  transition: transform 0.15s !important;
}

/* ============================================
   Assumptions Section
   ============================================ */
.sps-assumptions {
  margin-bottom: 1.5rem !important;
}

.sps-assumptions-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
  color: var(--sps-muted-foreground) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: color 0.15s !important;
}

.sps-assumptions-toggle:hover {
  color: var(--sps-foreground) !important;
}

.sps-assumptions-toggle svg {
  width: 1rem !important;
  height: 1rem !important;
  transition: transform 0.2s !important;
}

.sps-assumptions-content {
  margin-top: 1rem !important;
  padding: 1rem !important;
  background-color: hsla(210, 40%, 96%, 0.5) !important;
  border-radius: var(--sps-radius) !important;
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
}

.sps-assumptions-content p {
  margin-bottom: 0.5rem !important;
}

.sps-assumptions-content strong {
  color: var(--sps-foreground) !important;
}

.sps-assumptions-content ul {
  margin: 0 !important;
  padding-left: 1.25rem !important;
}

.sps-assumptions-content li {
  margin-bottom: 0.25rem !important;
}

/* ============================================
   Footer Disclosure
   ============================================ */
.sps-disclosure {
  max-width: 56rem !important;
  margin: 30px auto 0 auto !important;
  padding: 1.5rem !important;
  background-color: hsla(210, 40%, 96%, 0.3) !important;
  border: 1px solid var(--sps-border) !important;
  border-radius: var(--sps-radius) !important;
  font-size: 0.75rem !important;
  color: var(--sps-muted-foreground) !important;
}

.sps-disclosure p {
  margin-bottom: 0.5rem !important;
}

@media (max-width: 640px) {
  .sps-disclosure {
    margin: 15px auto 0 auto !important;
    padding: 10px !important;
  }
  .sps-disclosure p {
    font-size: 16px !important;
  }
}

.sps-disclosure p:last-child {
  margin-bottom: 0 !important;
}

.sps-disclosure strong {
  color: var(--sps-foreground) !important;
}

/* ============================================
   SVG Icons (inline)
   ============================================ */
.icon-zap {
  width: 1rem !important;
  height: 1rem !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.sps-input-section,
.sps-results-section {
  display: flex !important;
  flex-direction: column !important;
}

#sps-calculator-app #formattedRevenue {
  margin-top: 5px !important;
}

#sps-calculator-app .sps-field-description {
  padding-bottom: 10px !important;
  font-size: 13px !important;
}

#sps-calculator-app #otifPercentage {
  background-color: #00ace6 !important;
}

#sps-calculator-app .sps-maturity-label,
#sps-calculator-app .sps-maturity-desc,
.sps-cta-btn,
#toggleAssumptions {
  text-transform: none !important;
}

.sps-breakdown-header h4 {
  font-size: 16px !important;
}

.sps-slider-labels span,
#otifHint,
.sps-maturity-desc,
.sps-health-link,
.sps-metric-label,
.sps-breakdown-desc,
.sps-prefilled-notice p,
.sps-metric-label,
.sps-lift-header,
.sps-lift-desc,
#benchmark,
.sps-peer-info p,
.sps-lift-header p {
  font-size: 14px !important;
}

.sps-breakdown-value {
  padding-bottom: 5px !important;
}

.sps-metric-label,
.sps-metric-value,
#performanceLift {
  padding-bottom: 0 !important;
}

.sps-cta-btn {
  margin-top: 15px !important;
  font-weight: 600 !important;
}

#sps-calculator-app .sps-cta-section h3 {
  margin-bottom: 15px !important;
}

.sps-peer-info .sps-insight {
  font-weight: 600 !important;
}

.sps-metric-subtext {
  font-size: 13px !important;
}

#assumptionsContent p {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
  margin-bottom: 10px !important;
}

#assumptionsContent ul {
  list-style: disc !important;
}

#assumptionsContent ul li {
  font-size: 13px !important;
}

#sps-calculator-app .sps-header-text h1 {
  margin-bottom: 15px !important;
  font-size: 32px !important;
}

#sps-calculator-app .sps-header-text p {
  font-size: 18px !important;
  font-weight: 500 !important;
}

.sps-metric-label {
  font-weight: 600 !important;
}

#prefilled-notice p {
  position: relative !important;
  top: 2px !important;
}

.sps-disclosure p:first-child {
  font-weight: 600 !important;
  color: var(--sps-foreground) !important;
}

.sps-disclosure p:last-child {
  font-size: 16px !important;
}

.logged-in #monarch-header {
  top: 0 !important;
}

#page-container {
  margin-top: 0 !important;
}

@media only screen and (max-width: 783px) {
  .logged-in #monarch-header {
    top: 0 !important;
  }
}

@media screen and (max-width: 640px) {
  p {
    font-size: 16px !important;
  }
}

.sps-custom-select {
  position: relative !important;
  width: 100% !important;
}

.sps-select-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0.625rem 0.75rem !important;
  font-size: 0.875rem !important;
  font-family: inherit !important;
  border: 1px solid var(--sps-border) !important;
  border-radius: calc(var(--sps-radius) - 2px) !important;
  background-color: var(--sps-background) !important;
  color: var(--sps-foreground) !important;
  cursor: pointer !important;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s !important;
  text-align: left !important;
}

.sps-select-trigger:hover {
  background-color: var(--sps-muted) !important;
}

.sps-select-trigger:focus {
  outline: none !important;
  border-color: var(--sps-ring) !important;
  box-shadow: 0 0 0 2px hsla(195, 100%, 45%, 0.2) !important;
}

.sps-custom-select.open .sps-select-trigger {
  border-color: var(--sps-ring) !important;
  box-shadow: 0 0 0 2px hsla(195, 100%, 45%, 0.2) !important;
}

.sps-select-value {
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-transform: none !important;
}

.sps-select-chevron {
  width: 1rem !important;
  height: 1rem !important;
  color: var(--sps-muted-foreground) !important;
  flex-shrink: 0 !important;
  margin-left: 0.5rem !important;
  transition: transform 0.2s ease !important;
}

.sps-custom-select.open .sps-select-chevron {
  transform: rotate(180deg) !important;
}

.sps-select-content {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  background-color: var(--sps-background) !important;
  border: 1px solid var(--sps-border) !important;
  border-radius: calc(var(--sps-radius) - 2px) !important;
  box-shadow: 0 10px 38px -10px rgba(22, 23, 24, 0.35),
    0 10px 20px -15px rgba(22, 23, 24, 0.2) !important;
  padding: 0.25rem !important;
  display: none !important;
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.96) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.sps-select-content.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  display: block !important;
}

/* Dropdown Items */
.sps-select-item {
  display: flex !important;
  align-items: center !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  color: var(--sps-foreground) !important;
  border-radius: calc(var(--sps-radius) - 4px) !important;
  cursor: pointer !important;
  transition: background-color 0.1s !important;
  position: relative !important;
  padding-left: 26px !important;
}

.sps-select-item:hover,
.sps-select-item.focused {
  background-color: var(--sps-muted) !important;
}

.sps-select-item.selected {
  font-weight: 500 !important;
}

.sps-select-item.selected::before {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  width: 1rem !important;
  height: 1rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.sps-cta-email-btn {
  margin-top: 0 !important;
}

.sps-cta-email-btn:disabled {
  background-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

.sps-cta-email-btn:disabled:hover {
  background-color: #ccc !important;
}

.sps-pdf-status {
  display: none !important;
}

.sps-cta-btn {
  border-radius: 2px !important;
}

.sps-form-popup #form-container,
.sps-form-popup #booking-form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 30px 30px 30px !important;
  background-color: white !important;
  position: relative;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--sps-radius);
}

@media (max-width: 768px) {
    .sps-form-popup #form-container,
    .sps-form-popup #booking-form-container {
        max-height: calc(100vh - 20px);
        padding: 15px 20px 20px 20px !important;
        margin: 0;
    }
}

@media (max-width: 500px) {
    .sps-form-popup #form-container,
    .sps-form-popup #booking-form-container {
        padding: 15px 15px 20px 15px !important;
        max-height: calc(100vh - 20px);
    }
}


.sps-form-popup .exit-form-popup {
  position: absolute;
  top: -13px;
  right: -13px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  background-color: white;
  border: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  padding: 5px;
  z-index: 10;
}

@media (max-width: 768px) {
    .sps-form-popup .exit-form-popup {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 500px) {
    .sps-form-popup .exit-form-popup {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
}


.wFormContainer .wFormHeader {
  display: none !important;
}

.wFormContainer .label {
  font-size: 14px !important;
}

@media (max-width: 500px) {
    .wFormContainer .label {
        font-size: 12px !important;
      }
}


.wFormContainer .errMsg span {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.wFormContainer label {
  font-size: 14px !important;
}

#tfa_20-L span,
#tfa_21-L {
  font-size: 12px !important;
}

@media (max-width: 500px) {
    #tfa_20-L span,
    #tfa_21-L {
      font-size: 10px !important;
    }
}

#tfa_21 {
  margin: 0 3px 10px 0 !important;
  position: relative;
  top: 2px;
}

.wFormContainer .actions {
  display: flex !important;
  margin-right: 15px !important;

  
}

@media (max-width: 500px) {
    .wFormContainer .actions {
        margin-right: 5px !important;
    }
}


#submit_button {
  border-radius: 2px !important;
  font-weight: 600 !important;

}

@media (max-width: 500px) {
    #submit_button {
        font-size: 15px !important;
    }
}


.wFormContainer input {
    border-radius: 2px !important;
}

.sps-form-popup {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    &.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .sps-form-popup {
        align-items: flex-start;
        padding: 10px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* ============================================
   Custom Form Styles (FormAssembly Match)
   ============================================ */
.sps-custom-form {
    width: 100%;
    padding: 10px 0px 0px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Success Message */
.sps-success-message {
    width: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    text-align: center;
    gap: 4px;
}

.sps-success-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.sps-success-text {
    font-size: 18px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 0;
}

.sps-success-download {
    margin-top: 20px;
}

.sps-success-download a {
    display: inline-block;
    padding: 10px 28px;
    background: #00a9e0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}

.sps-success-download a:hover {
    background: #0095ca;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .sps-success-message {
        padding: 30px 25px;
        min-height: auto;
        max-height: calc(100vh - 40px);
    }
    
    .sps-success-title {
        font-size: 20px;
    }
    
    .sps-success-text {
        font-size: 17px;
    }
}

@media (max-width: 500px) {
    .sps-success-message {
        padding: 25px 20px;
        min-height: auto;
        max-height: calc(100vh - 20px);
    }
    
    .sps-success-title {
        font-size: 18px;
    }
    
    .sps-success-text {
        font-size: 16px;
    }
    
    .sps-success-download a {
        padding: 9px 24px;
        font-size: 15px;
    }
}

/* Two-column layout for form rows */
.sps-custom-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 18px;
}

.sps-custom-form .form-group {
    margin-bottom: 0;
    position: relative;
    padding-bottom: 10px;
}

.sps-custom-form label {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #5a5a5a;
    margin-bottom: 6px;
}

.sps-custom-form .required {
    color: #d9534f;
    font-weight: 400;
}

.sps-custom-form input,
.sps-custom-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.42857143;
    transition: border-color 0.15s ease;
    background: white;
    color: #333;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

/* Error state */
.sps-custom-form .form-group.has-error input,
.sps-custom-form .form-consent.has-error {
    border-color: #e74c3c;
}

.sps-custom-form .error-message {
    display: none;
    position: absolute;
    left: 0;
    bottom: -8px;
    color: #e74c3c;
    font-size: 12px;
}

.sps-custom-form .form-group.has-error .error-message,
.sps-custom-form .form-consent.has-error .error-message {
    display: block;
}

.sps-custom-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 35px;
}

.sps-custom-form input:focus,
.sps-custom-form select:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.sps-custom-form input:hover,
.sps-custom-form select:hover {
    border-color: #999;
}

/* Consent section */
.sps-custom-form .form-consent {
    margin-top: 0px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.sps-custom-form .consent-header {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 18px;
    font-weight: 400;
}

.sps-custom-form .consent-header strong {
    font-weight: 600;
    color: #333;
}

.sps-custom-form .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-weight: 400;
    margin-top: 10px;
}

.sps-custom-form .consent-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 3px 0 0 0;
    padding: 0;
    border: 1px solid #aaa;
    border-radius: 2px;
    background: white;
}

.sps-custom-form .consent-checkbox span {
    line-height: 1.6;
}

.sps-custom-form .form-consent .error-message {
    position: absolute;
    left: 0;
    bottom: 0;
}

/* Submit button */
.sps-submit-btn {
    width: 100%;
    padding: 10px 20px;
    background: #00a9e0;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sps-submit-btn:hover {
    background: #0095ca;
}

.sps-submit-btn:active {
    background: #0082b3;
}

.sps-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.sps-submit-btn.loading {
    pointer-events: none;
}

.sps-btn-loader {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

.sps-spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.sps-spinner-path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Mobile: Stack to single column */
@media (max-width: 768px) {
    .sps-custom-form {
        padding: 10px 0;
        max-width: 100%;
    }
    
    .sps-custom-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .sps-custom-form .form-group {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .sps-custom-form label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .sps-custom-form input,
    .sps-custom-form select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }
    
    .sps-custom-form .form-consent {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .sps-custom-form .consent-header {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .sps-custom-form .consent-checkbox {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .sps-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
        margin-top: 10px;
    }
}

@media (max-width: 500px) {
    .sps-custom-form {
        padding: 5px 0;
    }
    
    .sps-custom-form .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .sps-custom-form .form-group {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    
    .sps-custom-form label {
        font-size: 13px;
    }
    
    .sps-custom-form input,
    .sps-custom-form select {
        padding: 9px 10px;
    }
    
    .sps-custom-form .consent-header {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .sps-submit-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
}