/* =================================================
   TRIAL PAGE STYLES
   Matches Figma design: PkYO3uYkjNbPokqQQSjsrM node 185-7108
   Colours: dark #203540 | blue #0083CA | yellow #FFC50A
            white #FFFFFF | dark-bg #404040
            green #79B25D | lime #C3CC45 | light-bg #F5FAFA
================================================= */

.trial-page {
  --tp-font: 'Gibson', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tp-dark:    #203540;
  --tp-blue:    #0083CA;
  --tp-yellow:  #FFC50A;
  --tp-white:   #FFFFFF;
  --tp-light-bg:#F5FAFA;
  --tp-border:  rgba(32,53,64,0.26);
  --tp-border-light: #E5E5E5;
  --tp-green:   #79B25D;
  --tp-lime:    #C3CC45;
  --tp-dark-bg: #404040;
  --tp-testimonial-bg-opacity: 1;
  --tp-testimonial-overlay-opacity: 0.2;

  font-family: var(--tp-font);
  color: var(--tp-dark);
  background: var(--tp-white);
  overflow-x: hidden;
}

.trial-page *,
.trial-page *::before,
.trial-page *::after { box-sizing: border-box; }

.trial-page a { text-decoration: none; color: inherit; }

/* Hide legacy site chrome */
.trial-page-wrap #header,
.trial-page-wrap #footer,
.trial-page-wrap .breadcrumb,
.trial-page-wrap #main,
.trial-page-wrap #main-content,
.trial-page-wrap .page-wrap { display: none !important; }

/* =================================================
   SPACER
================================================= */
.tp-spacer        { height: 120px; }
.tp-spacer--large { height: 150px; }

@media (max-width: 768px) {
  .tp-spacer        { height: 60px; }
  .tp-spacer--large { height: 80px; }
}

/* =================================================
   SHARED BUTTON
================================================= */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  border-radius: 8px;
  font-family: var(--tp-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}

.tp-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.tp-btn--primary { background: var(--tp-blue); color: var(--tp-white) !important; }
.tp-btn--secondary { background: var(--tp-yellow); color: var(--tp-dark) !important; }

/* =================================================
   HERO SECTION (split: left content + right form)
================================================= */
.tp-hero {
  position: relative;
  border-radius: 30px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(0deg, #F5FAFA 0%, #F5FAFA 100%), linear-gradient(0deg, var(--Light, #FFF) 0%, var(--Light, #FFF) 100%), var(--Dark, #203540);
  display: flex;
  align-items: stretch;
  min-height: 800px;
}

/* Decorative blobs */
.tp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:  #f5fafa url('/assets/img/homepage/hero-background.webp') center center / cover no-repeat;
}

/* Left column: headline + bullet points */
.tp-hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  max-width: 1100px;
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: auto;
}

.tp-hero__title {
    color: var(--Dark, #203540);
    margin: 0 0 20px;
}

.tp-hero__subtitle {
  color: var(--tp-dark);
  margin: 30px 0 30px 0;
}

.tp-hero__note {
  color: var(--tp-dark);
  margin: 30px 0 30px;
}

/* Benefit bullet list */
.tp-hero__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tp-hero__benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tp-dark);
  font-size: 18px;
}

.tp-hero__benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--tp-blue);
  border-radius: 4.3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-hero__benefit-icon svg { width: 12px; height: 12px; }

/* Right column: form card anchored to right side of hero.
   Figma: 510px card, ~70px from the hero right edge. */
.tp-hero__form-col {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 60px 70px 60px 30px;
}

.tp-form-card {
  background: rgba(255,255,255,0.01);
  border: 0.5px solid #E8E9EB;
  border-radius: 15px;
  box-shadow: 0 50px 15px 0 rgba(0,0,0,0.5);
  backdrop-filter: blur(350px);
  -webkit-backdrop-filter: blur(350px);
  width: 510px;
  flex-shrink: 0;
  padding: 40px 42px;
  background-color: rgba(255,255,255,0.92);
}

.tp-form-card__title {
  color: var(--tp-dark);
  margin: 0 0 24px;
}

/* Form field groups */
.tp-form__row {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.tp-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin-bottom: 8px;
}

.tp-form__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: var(--tp-dark);
}

.tp-form__label--muted {
  color: rgba(32,53,64,0.75);
}

.tp-form__input {
  height: 44px;
  border: 0.5px solid rgba(32,53,64,0.26);
  border-radius: 6px;
  background: var(--tp-white);
  backdrop-filter: blur(350px);
  padding: 0 12px;
  font-family: var(--tp-font);
  font-size: 16px;
  color: var(--tp-dark);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.tp-form__input:focus {
  border-color: var(--tp-blue);
}

.tp-form__input.error {
  border-color: #d9534f;
}

/* Account type toggle pills */
.tp-form__account-type {
  margin-bottom: 8px;
}

.tp-form__account-type-label {
  font-size: 16px;
  line-height: 1.625;
  color: rgba(32,53,64,0.75);
  display: block;
  margin-bottom: 8px;
}

.tp-form__type-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-form__type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tp-form__type-radio {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 0.5px solid rgba(32,53,64,0.26);
  border-radius: 50%;
  background: var(--tp-white);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.tp-form__type-radio:checked {
  border-color: var(--tp-blue);
}

.tp-form__type-radio:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tp-blue);
}

.tp-form__type-text {
  font-size: 16px;
  line-height: 1.625;
  color: var(--tp-dark);
}

/* reCAPTCHA wrapper */
.tp-form__recaptcha {
  margin: 12px 0 8px;
}

/* Terms checkbox */
.tp-form__terms {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 16px;
}

.tp-form__checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 0.5px solid rgba(32,53,64,0.26);
  border-radius: 6px;
  background: var(--tp-white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  margin-top: 0;
  transition: border-color 0.2s;
}

.tp-form__checkbox:checked {
  background: var(--tp-blue);
  border-color: var(--tp-blue);
}

.tp-form__checkbox:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: 2px solid #FFFFFF;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.tp-form__terms-text {
  font-size: 14px;
  line-height: 1.43;
  color: var(--tp-dark);
}

.tp-form__terms-link {
  color: var(--tp-blue);
  text-decoration: underline;
}

/* Validation error messages */
.tp-form__group span.help-inline,
.tp-form__terms span.help-inline {
  color: #d9534f;
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

/* Submit button */
.tp-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 48px;
  border-radius: 8px;
  background: var(--tp-blue);
  color: var(--tp-white);
  font-family: var(--tp-font);
  font-size: 16px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.tp-form__submit:hover { opacity: 0.88; }

.tp-form__submit.disabled,
.tp-form__submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1300px) {
  .tp-hero__content { max-width: 560px; padding: 60px 40px 60px 60px; }
  .tp-hero__form-col { padding: 60px 60px 60px 20px; }
  .tp-hero__title { font-size: 46px; }
}

@media (max-width: 1100px) {
  .tp-hero { min-height: auto; }
  .tp-hero__content { max-width: 420px; padding: 50px 30px 50px 50px; }
  .tp-hero__form-col { padding: 50px 50px 50px 10px; }
  .tp-form-card { width: 440px; }
}

@media (max-width: 900px) {
  .tp-hero { flex-direction: column; width: calc(100% - 32px); margin: 0 auto; border-radius: 20px; }
  .tp-hero__content { max-width: 100%; padding: 50px 30px 30px; }
  .tp-hero__form-col { padding: 0 30px 50px; justify-content: center; }
  .tp-form-card { width: 100%; max-width: 510px; }
}

@media (max-width: 600px) {
  .tp-hero { width: calc(100% - 24px); margin: 0 auto; border-radius: 16px; }
  .tp-hero__content { padding: 40px 20px 24px; }
  .tp-hero__form-col { padding: 0 20px 40px; }
  .tp-form-card { padding: 30px 24px; }
  .tp-form__row { flex-direction: column; gap: 0; }
}

/* =================================================
   WHAT YOU'LL DO SECTION
================================================= */
.tp-what {
  display: flex;
  gap: 125px;
  width: 100%;
  max-width: 1440px;
  padding: 0;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

/* Dashboard screenshot (left side) */
.tp-dashboard {
  flex: 0 0 610px;
  max-width: 610px;
  position: relative;
}

.tp-dashboard__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Right column: what you'll do text */
.tp-what__text {
  flex: 0 0 400px;
  max-width: 400px;
}

.tp-what__title {
  color: var(--tp-dark);
  margin: 0 0 20px;
}

.tp-what__intro {
  color: var(--tp-dark);
  margin: 0 0 30px;
}

.tp-what__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-what__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tp-dark);
  font-size: 18px;
}

.tp-what__item-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--tp-blue);
  border-radius: 4.3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-what__item-icon svg { width: 12px; height: 12px; }

@media (max-width: 1200px) {
  .tp-what { gap: 60px; padding: 0 60px; }
  .tp-dashboard { flex: 0 0 480px; max-width: 480px; }
  .tp-what__text { flex: 1; }
}

@media (max-width: 900px) {
  .tp-what { flex-direction: column-reverse; padding: 0 30px; gap: 40px; }
  .tp-dashboard { flex: none; max-width: 100%; width: 100%; }
  .tp-what__text { flex: none; max-width: 100%; width: 100%; }
}

@media (max-width: 600px) {
  .tp-what { padding: 0 16px; }
}

/* =================================================
   TESTIMONIAL SECTION
================================================= */
.tp-testimonial { padding: 0 100px; }

.tp-testimonial {
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}


.tp-testimonial__card {
  background: var(--tp-light-bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.tp-testimonial__card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f5fafa url('/assets/img/homepage/testimonial-bg.webp') var(--tp-testimonial-bg-position, center center) / var(--tp-testimonial-bg-size, cover) no-repeat;
  opacity: var(--tp-testimonial-bg-opacity, 0.9);
}

.tp-testimonial__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(245, 250, 250, 0.92) 0%, rgba(245, 250, 250, 0.74) 46%, rgba(245, 250, 250, 0.92) 100%);
  opacity: var(--tp-testimonial-overlay-opacity, 0.2);
}

.tp-testimonial__bg-pattern {
  position: absolute;
  width: 130%;
  height: auto;
  top: -40%;
  left: -5%;
  opacity: 0.5;
}

.tp-testimonial__inner {
position: relative;
z-index: 2;
display: flex;
isolation: isolate;
  align-items: center;
  gap: 125px;
  padding: 105px;
  background: rgba(229,229,229,0.3);
  border-radius: 10px;
}

.tp-testimonial__portrait {
  width: 295px;
  height: 295px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #E5E5E5;
}

.tp-testimonial__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tp-testimonial__quote-icon {
    width: 30px;
    height: 30px;
    color: var(--tp-blue);
    transform: rotate(180deg);
}

.tp-testimonial__quote {
  color: var(--tp-dark);
  margin: 0;
  font-weight: 500;
  font-size: 26px;
  border-left: 0;
  padding: 0;
}

.tp-testimonial__author {
  color: var(--tp-dark);
  margin: 0;
  font-weight: 400;
}

.tp-testimonial__role {
  color: var(--tp-dark);
  margin: 0;
  font-weight: 500 !important;
}

@media (max-width: 1100px) {
  .tp-testimonial { padding: 0; }
  .tp-testimonial__inner { gap: 60px; padding: 60px; }
  .tp-testimonial__portrait { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
  .trial-page {
    --tp-testimonial-bg-opacity: 0.34;
    --tp-testimonial-overlay-opacity: 1;
  }
  .tp-testimonial { padding: 0; }
  .tp-testimonial__inner { flex-direction: column; gap: 24px; padding: 30px 24px; }
  .tp-testimonial__portrait { width: 100%; height: 200px; }
}

/* =================================================
   FAQs SECTION
================================================= */
.tp-faqs {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.tp-faqs__title {
  color: var(--tp-dark);
  margin: 0 0 50px;
}

.tp-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.tp-faq {
  border: 1px solid var(--tp-border-light);
  border-radius: 10px;
  overflow: hidden;
}

.tp-faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 30px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.tp-faq__question {
  color: var(--tp-dark);
  flex: 1;
}

.tp-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--tp-dark);
}

.tp-faq__answer {
  padding: 0 30px 25px;
  color: var(--tp-dark);
  margin: 0;
  display: none;
}

.tp-faq--open .tp-faq__answer  { display: block; }
.tp-faq--open .tp-faq__icon--plus { display: none; }
.tp-faq:not(.tp-faq--open) .tp-faq__icon--minus { display: none; }

@media (max-width: 768px) {
  .tp-faqs__title { margin-bottom: 30px; }
  .tp-faq__header { padding: 20px 24px; }
  .tp-faq__answer { padding: 0 24px 20px; }
}

/* =================================================
   TERMS MODAL
================================================= */

body.tp-modal-open {
  overflow: hidden;
}

.tp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.tp-modal.is-open {
  display: flex;
}

.tp-modal__dialog {
  width: min(760px, 100%);
}

.tp-modal__content {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E5E5;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.2);
}

.tp-modal__header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E5E5E5;
}

.tp-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #203540;
}

.tp-modal__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #203540;
  cursor: pointer;
}

.tp-modal__body {
  max-height: 60vh;
  overflow: auto;
  padding: 20px;
}

.tp-modal__footer {
  padding: 14px 20px;
  border-top: 1px solid #E5E5E5;
  display: flex;
  justify-content: flex-end;
}

.tp-modal__btn {
  border: 1px solid #D5D9DD;
  border-radius: 8px;
  background: #fff;
  color: #203540;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
