/*
 * Finvantage Survey Feature Screens Stylesheet
 * Deep-blue styling for welcome screen, risk result, and thank-you screens.
 */

.tf-screen--feature {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 100px;
  box-sizing: border-box;
  background-color: var(--deep-blue);
  color: var(--white);
}

/* Background Decorative Line Art */
.tf-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.25;
  background: url("/Assets/Arch_White.svg") top right / 150% auto no-repeat;
  z-index: 1;
}

.tf-screen--feature .tf-screen__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
}

/* Headings & Text */
.tf-title {
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.tf-title:focus {
  outline: none;
}

.tf-lede {
  color: var(--light-blue);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.5;
}

.tf-lede-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.tf-screen--feature p {
  color: rgba(255, 255, 255, 0.9);
}

.tf-screen--feature a {
  color: var(--light-blue);
  text-decoration: underline;
}

/* Collapsible "More about this questionnaire" */
details.tf-more {
  margin: 16px 0 24px;
}

details.tf-more summary {
  cursor: pointer;
  color: var(--light-blue);
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

details.tf-more summary::-webkit-details-marker {
  display: none;
}

details.tf-more summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

details.tf-more[open] summary::after {
  content: "−";
}

details.tf-more .tf-more__body {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}

details.tf-more .tf-more__body p {
  margin-bottom: 12px;
  font-size: 0.975rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* Welcome Screen Badges */
.tf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

.tf-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.tf-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.tf-badge-icon {
  display: flex;
  color: var(--light-blue);
}

/* Feature Buttons */
.tf-btn--white {
  background: var(--white);
  color: var(--deep-blue);
}

.tf-btn--white:hover {
  background: var(--light-blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tf-btn--quiet {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.tf-btn--quiet:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* Delivered For Badge on Welcome Screen */
.tf-welcome-delivered {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: right;
}

.tf-welcome-delivered__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 12px;
  opacity: 0.95;
}

.tf-welcome-delivered__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tf-welcome-delivered__logo {
  max-height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Risk Result Screen */
.sv-result__subhead {
  color: var(--light-blue);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: normal;
}

.sv-result__class {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.sv-result__score {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.sv-band {
  position: relative;
  padding-top: 16px;
  margin: 20px 0 44px;
}

.sv-band__track {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sv-band__seg {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.sv-band__seg:first-child {
  border-radius: 6px 0 0 6px;
}

.sv-band__seg:last-child {
  border-radius: 0 6px 6px 0;
}

.sv-band__seg.is-active {
  background: var(--light-blue);
}

.sv-band__seg span {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
}

.sv-band__seg.is-active span {
  color: var(--white);
  font-weight: 700;
}

.sv-band__marker {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  transform: translateX(-7px);
  border: 7px solid transparent;
  border-bottom: 0;
  border-top: 10px solid var(--white);
}

.sv-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.sv-facts div {
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sv-facts dt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.sv-facts dd {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin: 0;
}

.sv-callout {
  padding: 16px 20px;
  border-left: 4px solid var(--light-blue);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.sv-result__disclaimer {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

/* Thank You Screen Code Box */
.sv-codebox {
  display: inline-block;
  margin: 24px 0 28px;
  padding: 20px 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.sv-codebox__label {
  font-size: 14px;
  color: var(--light-blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.sv-codebox__code {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.3em;
  color: var(--white) !important;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sv-codebox__note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.sv-sign {
  margin: 28px 0 32px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--light-blue);
  font-weight: 700;
}

/* Mobile feature overrides */
@media (max-width: 768px) {
  .tf-screen--feature {
    padding: 100px 16px 80px;
    align-items: flex-start;
  }
  .tf-welcome-delivered {
    margin-top: 32px;
    padding-top: 18px;
  }
  .tf-welcome-delivered__logo {
    max-height: 30px;
  }
  .sv-band__seg:not(.is-active) span {
    visibility: hidden;
  }
  .sv-codebox {
    padding: 18px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .sv-codebox__code {
    letter-spacing: 0.18em;
  }
}

@media (max-width: 600px) {
  .tf-screen--feature {
    padding-bottom: 120px !important;
  }
}
