/* Alpine x-cloak: hide until Alpine initializes */
[x-cloak] {
  display: none !important;
}

.gradient-text {
  background: linear-gradient(90deg, #0090D8 0%, #FF008F 71.69%, #FF000B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-ci {
  background: linear-gradient(135deg, #0090D8 0%, #FF008F 71.69%, #FF000B 100%);
}

/* ── Recommended Packages Slider ── */
#recommendedPackages {
  overflow: visible;
}

.recommended-packages-swiper {
  overflow: visible;
}

.recommended-packages-swiper .swiper-slide {
  width: 260px;
}

@media (min-width: 640px) {
  .recommended-packages-swiper .swiper-slide {
    width: 280px;
  }
}

@media (min-width: 1800px) {
  .recommended-packages-swiper .swiper-slide {
    /* Fit exactly 4 cards: available = (viewport + 1128) / 2 - 16px padding - 3 gaps × 14px */
    width: calc((100vw + 1012px) / 8);
  }
}

.rec-pkg-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.rec-pkg-card:hover {
  transform: translateY(-4px);
}

/* Dot pagination — Figma: active = red pill, inactive = gray dot */
.recommended-packages-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: rgba(48, 60, 70, 0.38);
  opacity: 1;
  transition: width 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.recommended-packages-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: #e00000;
}

/* Hide native scrollbar on swiper */
.recommended-packages-swiper .swiper-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.recommended-packages-swiper .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

/* ── Chat & Shop - Truestore ── */
.truestore-chat-section {
  padding: 0 16px 40px;
}

.truestore-chat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 500px;
  min-height: 92px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #D9D9DE;
  border-radius: 16px;
  background: #FFFFFF;
}

.truestore-chat-content {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.truestore-chat-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
}

.truestore-chat-copy {
  min-width: 0;
  color: #303C46;
}

.truestore-chat-copy h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.truestore-chat-copy p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.3;
}

.truestore-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #E00000;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.truestore-chat-button:hover {
  background: #FF5540;
}

@media (max-width: 479px) {
  .truestore-chat-card {
    gap: 12px;
    padding: 14px;
  }

  .truestore-chat-content {
    gap: 10px;
  }

  .truestore-chat-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 12px;
  }

  .truestore-chat-copy h2 {
    font-size: 15px;
  }

  .truestore-chat-copy p {
    font-size: 12px;
  }

  .truestore-chat-button {
    min-width: 72px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ── Special Packages Slider (gradient bg variant) ── */
#specialPackages {
  overflow: visible;
}

.special-packages-swiper {
  overflow: visible;
}

.special-packages-swiper .swiper-slide {
  width: 260px;
}

@media (min-width: 640px) {
  .special-packages-swiper .swiper-slide {
    width: 280px;
  }
}

@media (min-width: 1800px) {
  .special-packages-swiper .swiper-slide {
    width: calc((100vw + 1012px) / 8);
  }
}

/* Dot pagination */
.special-packages-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: rgba(48, 60, 70, 0.38);
  opacity: 1;
  transition: width 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.special-packages-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: #e00000;
}

/* Hide native scrollbar */
.special-packages-swiper .swiper-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.special-packages-swiper .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

/* ── Sticky Summary Bar ── */
.sticky-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.sticky-summary-card {
  position: relative;
  pointer-events: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  max-width: 1128px;
  margin: 0 auto;
  padding: 24px 60px 0;
}

/* Chevron toggle button */
.sticky-summary-toggle {
  position: absolute;
  top: -24px;
  right: 60px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9fc;
  border: 1px solid #fff;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* Smooth accordion */
.sticky-summary-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.sticky-summary-details.is-open {
  max-height: 500px;
  opacity: 1;
}

/* ── Mobile: full-width, tighter padding ── */
@media (max-width: 1023px) {
  .sticky-summary-card {
    max-width: 100%;
    padding: 24px 16px 0;
    border-radius: 24px 24px 0 0;
  }

  .sticky-summary-toggle {
    right: 16px;
  }
}

/* ══════════════════════════════════════════ */
/* Summary Page — Form Inputs               */
/* ══════════════════════════════════════════ */

.summary-input-wrapper {
  position: relative;
  width: 100%;
}

.summary-input {
  width: 100%;
  height: 56px;
  padding: 16px;
  border: 1px solid #C0C0C0;
  border-radius: 16px;
  font-size: 16px;
  color: #303C46;
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

.summary-input:focus {
  border-color: #303C46;
}

.summary-input-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #303C46;
  pointer-events: none;
  padding: 0 4px;
  background: transparent;
  transition: all 0.2s ease;
}

/* Float label onto the border when focused or has value */
.summary-input:focus+.summary-input-label,
.summary-input:not(:placeholder-shown)+.summary-input-label,
.summary-input-wrapper.always-float .summary-input-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  background: white;
  letter-spacing: 0.048px;
}

/* Error state */
.summary-input-wrapper.is-error .summary-input {
  border-color: #E00000;
}

.summary-input-wrapper.is-error .summary-input-label {
  color: #E00000;
}

[x-cloak] {
  display: none !important;
}

.tolid-helper {
  display: flex;
  align-items: center;
  min-height: 16px;
  margin-top: 4px;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.3;
  color: #303C46;
}

.tolid-info-button {
  width: 15px;
  height: 15px;
  margin-left: 3px;
  padding: 0;
  border: 1px solid #007AD0;
  border-radius: 50%;
  background: #FFFFFF;
  color: #007AD0;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.tolid-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tolid-info-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.tolid-info-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.tolid-info-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.tolid-info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #303C46;
  font-size: 28px;
  line-height: 30px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

/* ══════════════════════════════════════════ */
/* MY Plan — Mobile Responsive (≤639px)      */
/* ══════════════════════════════════════════ */

@media (max-width: 639px) {

  /* ── Custom Radio Buttons (MD3 style, 24px) ── */
  .addon-box input[type="radio"],
  .contract-box input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #303C46;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
  }

  .addon-box input[type="radio"]:checked,
  .contract-box input[type="radio"]:checked {
    border-color: #E00000;
  }

  .addon-box input[type="radio"]:checked::after,
  .contract-box input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E00000;
  }

  /* ── Custom Checkboxes (MD3 style, 24px) ── */
  .addon-box input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #303C46;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
  }

  .addon-box input[type="checkbox"]:checked {
    background: #E00000;
    border-color: #E00000;
  }

  .addon-box input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
  }

  /* ── Step Header: icon + gradient text ── */
  .step-header-circle {
    display: none;
  }

  .step-header-icon {
    display: flex !important;
  }

  /* ── Price Typography (compact) ── */
  .plan-price-value {
    font-size: 18px !important;
    letter-spacing: 0.018px;
  }

  .plan-price-unit {
    font-size: 8px !important;
    letter-spacing: 0.04px;
  }

  /* ── FAQ Card (lighter shadow, bordered) ── */
  .faq-card {
    border: 1px solid #F0F0F3;
    border-radius: 24px;
    box-shadow: 0px 1px 6px 1px rgba(0, 0, 0, 0.08);
  }
}
