.prebooking-card-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cathay-richtext {
  color-scheme: light;
  --page-bg: #f4f4f4;
  --surface: #ffffff;
  --surface-subtle: #fafaf9;
  --surface-success: #dff4e5;
  --line: #ececeb;
  --line-strong: #252525;
  --text: #252525;
  --text-soft: #8d8d8d;
  --text-heading: #075c63;
  --text-accent: #fe295a;
  --text-success: #12b76a;
  --shadow-soft:
    0 2px 12px rgba(10, 13, 18, 0.08), 0 1px 2px rgba(10, 13, 18, 0.06);
  --shadow-card:
    0 28px 60px rgba(10, 13, 18, 0.08), 0 8px 20px rgba(10, 13, 18, 0.06);
  --radius-xl: 16px;
  --radius-pill: 999px;
  --transition: 180ms ease;
  font-family: Inter, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

.cathay-richtext,
.cathay-richtext * {
  box-sizing: border-box;
}

.cathay-richtext {
  margin: 0;
  min-height: 100%;
  color: var(--text);
}

.cathay-richtext {
  display: flex;
  justify-content: center;
}

.cathay-richtext input {
  font: inherit;
}

.cathay-richtext a {
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cathay-richtext img {
  display: block;
  max-width: 100%;
}
.cathay-richtext .caption {
  display: block;
  width:358px; 
  word-break: break-word;
}

.cathay-richtext.is-mini-program .hidden-in-mp {
  display: none !important;
}

.cathay-richtext .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cathay-richtext .page-shell {
  width: min(100%, 852px);
  margin: auto;
}

.cathay-richtext .prebooking-card {
  overflow: hidden;
  border-radius: 18px;
}

.cathay-richtext .topbar {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
}

.cathay-richtext .topbar-mobile {
  display: none;
}

.cathay-richtext .ghost-button,
.cathay-richtext .back-button-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #111111;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  background: #ffffff;
  line-height: 1;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.cathay-richtext .ghost-button:hover,
.cathay-richtext .back-button-mobile:hover,
.cathay-richtext .ghost-button:focus-visible,
.cathay-richtext .back-button-mobile:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.cathay-richtext .back-button-mobile {
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.cathay-richtext .back-button-mobile:hover,
.cathay-richtext .back-button-mobile:focus-visible {
  background: rgba(7, 92, 99, 0.08);
  transform: none;
}

.cathay-richtext .topbar-mobile .nav-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  flex: 1;
  margin: 0;
}

.cathay-richtext .topbar-mobile .nav-spacer {
  width: 32px;
  flex: none;
}

.cathay-richtext .hero {
  height: 283px;
  background: var(--surface);
  margin-bottom: 16px;
}

.cathay-richtext .hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cathay-richtext .hero-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  margin: 16px;
}

.cathay-richtext .hero-title {
  margin: 0;
  color: var(--text-heading);
  font-size: 52px;
  line-height: 1.23;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
}

.cathay-richtext .hero-title .line {
  display: block;
}

.cathay-richtext .hero-title-mobile {
  display: none;
}

.cathay-richtext .hero-media {
  position: relative;
  height: 310px;
  overflow: hidden;
}

.cathay-richtext .hero-media img {
  width: 100%;
  height: 100%;
}

.cathay-richtext .hero-media img {
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
}

.cathay-richtext .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 358px) minmax(0, 358px);
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px 16px;
}

.cathay-richtext .form-column,
.cathay-richtext .benefit-column {
  min-width: 0;
}

.cathay-richtext .inline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
}

.cathay-richtext .inline-cta span {
  font-weight: 400;
}

.cathay-richtext .inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-accent);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
  background: transparent;
  border: 0;
  transition: opacity var(--transition);
}

.cathay-richtext .inline-link:hover,
.cathay-richtext .inline-link:focus-visible,
.cathay-richtext .terms-card:hover,
.cathay-richtext .terms-card:focus-visible {
  opacity: 0.82;
  outline: none;
}

.cathay-richtext .prebooking-form {
  display: grid;
  gap: 6px;
}

.cathay-richtext .field-group {
  display: grid;
  gap: 6px;
}

.cathay-richtext .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cathay-richtext .field {
  display: grid;
  gap: 4px;
}

.cathay-richtext .input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.cathay-richtext .field:focus-within .input-shell {
  border-color: rgba(7, 92, 99, 0.65);
  box-shadow: 0 0 0 4px rgba(7, 92, 99, 0.12);
  transform: translateY(-1px);
}

.cathay-richtext .field.has-error .input-shell {
  border-color: rgba(254, 41, 90, 0.75);
  box-shadow: 0 0 0 4px rgba(254, 41, 90, 0.11);
}

.cathay-richtext .field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
  outline: none;
}

.cathay-richtext .field input::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

.cathay-richtext .field-error {
  display: none;
  padding: 0 2px;
  color: var(--text-accent);
  font-size: 11px;
  line-height: 14px;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.cathay-richtext .field.has-error .field-error {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cathay-richtext .caption {
  padding: 10px 16px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

.cathay-richtext .benefit-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 6px 18px rgba(10, 13, 18, 0.04);
}

.cathay-richtext .benefit-list {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 24px;
}

.cathay-richtext .benefit-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cathay-richtext .benefit-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cathay-richtext .benefit-step-content {
  display: grid;
  gap: 2px;
}

.cathay-richtext .benefit-step-title {
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.cathay-richtext .benefit-step-copy {
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.cathay-richtext .terms-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  background: #e2f8e9;
  color: var(--text-success);
  text-decoration: none;
  text-align: left;
  transition: filter var(--transition);
}

.cathay-richtext .terms-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.cathay-richtext .terms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-success);
}

.cathay-richtext .terms-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cathay-richtext .terms-title {
  display: block;
  color: var(--text-success);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
}

.cathay-richtext .terms-copy {
  display: block;
  color: var(--text-success);
  font-size: 12px;
  line-height: 16px;
}

.cathay-richtext .terms-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-success);
}

.cathay-richtext .footer-desktop {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.cathay-richtext .action-block {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.cathay-richtext .action-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.cathay-richtext .pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: min(100%, 264px);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.cathay-richtext .pill-button:hover,
.cathay-richtext .pill-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.cathay-richtext .pill-button.is-loading {
  cursor: wait;
  opacity: 0.82;
  transform: none;
  box-shadow: none;
}

.cathay-richtext .pill-button-primary {
  background: var(--text-heading);
  color: #ffffff;
}

.cathay-richtext .pill-button-primary.is-disabled {
  background: #ddd;
  color: #b4b4b4;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.cathay-richtext .pill-button-secondary {
  background: #ffffff;
  color: var(--text) !important;
  border: 1px solid var(--line);
}

.cathay-richtext .icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.cathay-richtext .icon-small {
  width: 16px;
  height: 16px;
  overflow: hidden;
}

.cathay-richtext .icon-tiny {
  width: 12px;
  height: 12px;
}

.cathay-richtext .benefit-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}

#hero-image-desktop {
  display: none;
}

#hero-image-mobile {
  display: block;
}

@media screen and (min-width: 768px) {
  .page-shell-main {
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden;
  }

  #hero-image-desktop {
    display: block;
  }

  #hero-image-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .cathay-richtext {
    display: block;
    padding: 0;
    background: var(--page-bg);
  }

  .cathay-richtext .prebooking-card {
    border-radius: 0;
  }

  .cathay-richtext .page-shell {
    width: 100%;
    margin: 0 auto;
  }

  .prebooking-card-main {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 112px;
  }

  .cathay-richtext .topbar-desktop {
    display: none;
  }

  .cathay-richtext .topbar-mobile {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
  }

  .cathay-richtext .hero {
    margin-bottom: 16px;
    padding: 0;
    height: auto;
  }

  .cathay-richtext .hero-media {
    order: 1;
    height: auto;
  }

  .cathay-richtext .hero-media img {
    object-position: center top;
    border-radius: 0;
  }

  .cathay-richtext .hero-copy {
    order: 2;
    min-height: 0;
    padding: 8px 16px 0;
  }

  .cathay-richtext .hero-title {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.03em;
  }

  .cathay-richtext .hero-title-desktop {
    display: none;
  }

  .cathay-richtext .hero-title-mobile {
    display: block;
  }

  .cathay-richtext .content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
  }

  .cathay-richtext .inline-cta {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .cathay-richtext .caption {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .cathay-richtext .inline-cta {
    padding-left: 0;
    padding-right: 0;
  }

  .cathay-richtext .benefit-card {
    border-radius: 24px;
  }

  .cathay-richtext .benefit-list {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 24px;
  }

  .cathay-richtext .footer-desktop {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    gap: 8px;
    padding: 16px 12px 32px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 -2px 12px rgba(37, 37, 37, 0.14),
      0 -1px 2px rgba(37, 37, 37, 0.12);
  }

  .cathay-richtext .footer-desktop .action-block {
    gap: 0;
    justify-items: stretch;
  }

  .cathay-richtext .footer-desktop .action-block:first-child {
    order: 2;
  }

  .cathay-richtext .footer-desktop .action-block:last-child {
    order: 1;
  }

  .cathay-richtext .footer-desktop .action-note {
    display: none;
  }

  .cathay-richtext .pill-button {
    width: 100%;
  }

  .cathay-richtext .pill-button-secondary {
    border-color: var(--line-strong);
  }
}
