/* RFP & Bid Readiness page layout (scoped to .aa-service-rfp). */

.aa-service-rfp .ps-hero {
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

.aa-service-rfp .ps-hero .ps-title {
  scroll-margin-top: calc(var(--public-chrome-expanded-height, var(--aa-chrome-header-height, 150px)) + 16px);
}

@media (max-width: 640px) {
  .aa-service-rfp .ps-main {
    padding-top: clamp(16px, 3vh, 24px);
  }

  .aa-service-rfp .ps-title {
    font-size: clamp(1.55rem, 8.2vw, 1.85rem);
    margin-bottom: 10px;
    line-height: 1.06;
  }

  .aa-service-rfp .ps-hero .ps-lead {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.42;
  }

  .aa-service-rfp .ps-price--hero {
    font-size: 1.35rem;
    margin-top: 8px;
  }

  .aa-service-rfp .ps-hero .ps-cta-row {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .aa-service-rfp .ps-hero .ps-sample-link {
    margin-top: 8px;
    font-size: 0.92rem;
  }
}

.aa-service-rfp .ps-price--hero {
  margin: 16px 0 0;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.aa-service-rfp .ps-cta-row {
  margin: 20px 0 10px;
}

.aa-service-rfp .ps-cta-row .ps-button {
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aa-service-rfp .ps-sample-link {
  margin: 0 0 8px;
}

.aa-service-rfp .ps-step-strip,
.aa-service-rfp .ps-steps {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 28px);
  margin: clamp(20px, 3vh, 32px) 0;
  padding: clamp(16px, 2.5vh, 22px) 0;
  border-top: 1px solid var(--ps-rule);
  border-bottom: 1px solid var(--ps-rule);
  list-style: none;
}

.aa-service-rfp .ps-step-strip__item,
.aa-service-rfp .ps-steps__item {
  display: flex;
  flex: 1 1 8rem;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.aa-service-rfp .ps-step-strip__icon,
.aa-service-rfp .ps-steps__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--ps-accent);
}

.aa-service-rfp .ps-step-strip__label,
.aa-service-rfp .ps-steps__label {
  color: var(--ps-ink);
  font-weight: 650;
}

.aa-service-rfp .ps-sample-block {
  margin-top: clamp(20px, 3vh, 28px);
}

.aa-service-rfp .ps-faq details p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Chrome 131+ ::details-content can leave closed bodies in layout. Hide them. */
.aa-service-rfp details:not([open]) > *:not(summary) {
  display: none;
}

.aa-service-rfp details:not([open])::details-content {
  display: none;
}

.aa-service-rfp .ps-form-details {
  margin: 8px 0 16px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ps-rule);
}

.aa-service-rfp .ps-form-details summary {
  cursor: pointer;
  color: var(--ps-muted);
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.aa-service-rfp .ps-faq {
  margin-top: clamp(24px, 3.5vh, 36px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--ps-rule);
}

.aa-service-rfp .ps-faq details {
  border-bottom: 1px solid var(--ps-rule);
  padding: 12px 0;
}

.aa-service-rfp .ps-faq summary {
  cursor: pointer;
  color: var(--ps-ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.aa-service-rfp .ps-faq summary::-webkit-details-marker {
  display: none;
}

.aa-service-rfp .ps-faq details[open] summary {
  margin-bottom: 8px;
}

.aa-service-rfp .ps-faq .ps-lead {
  margin: 0;
  font-size: 0.98rem;
}

.aa-service-rfp .ps-form-more {
  margin: 8px 0 16px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ps-rule);
}

.aa-service-rfp .ps-form-more summary {
  cursor: pointer;
  color: var(--ps-muted);
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 12px;
}

#request,
#sample,
#sample-output {
  scroll-margin-top: calc(var(--public-chrome-expanded-height, var(--aa-chrome-header-height, 150px)) + 16px);
}

.aa-service-rfp .ps-sample-preview {
  margin-top: clamp(24px, 3.5vh, 36px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--ps-rule);
  max-width: 100%;
  min-width: 0;
}

.aa-service-rfp .ps-sample-preview__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  line-height: 1.25;
}

.aa-service-rfp .ps-sample-preview .ps-example__label {
  margin: 0 0 12px;
}

.aa-service-rfp .ps-sample-preview-cards {
  display: none;
}

.aa-service-rfp .ps-sample-preview-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--ps-rule);
  border-radius: 4px;
}

.aa-service-rfp .ps-sample-preview-card__line {
  margin: 0;
  color: var(--ps-ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.aa-service-rfp .ps-sample-preview-card__meta {
  margin: 6px 0;
  color: var(--ps-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.aa-service-rfp .ps-turnstile-prep {
  margin: 10px 0 0;
  color: var(--ps-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.aa-service-rfp .ps-sample-preview__link {
  margin: 12px 0 0;
  font-size: 0.98rem;
}

.aa-service-rfp .ps-sample-preview__link a {
  color: var(--ps-accent);
  text-underline-offset: 0.2em;
}

.aa-service-rfp .ps-form-post-submit {
  margin: 14px 0 0;
  color: var(--ps-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.aa-service-rfp .ps-content,
.aa-service-rfp .ps-sample-preview,
.aa-service-rfp .ps-sample-block,
.aa-service-rfp .ps-example,
.aa-service-rfp .ps-table {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.aa-service-rfp .ps-table td,
.aa-service-rfp .ps-table th {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aa-service-rfp .ps-sticky-cta {
  display: none;
  position: fixed;
  z-index: 120;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  text-decoration: none;
}

@media (max-width: 640px) {
  .aa-service-rfp .ps-sticky-cta:not([hidden]) {
    display: inline-flex;
  }

  .aa-service-rfp .ps-sample-preview-cards {
    display: block;
  }

  .aa-service-rfp .ps-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .aa-service-rfp .ps-table,
  .aa-service-rfp .ps-table tbody,
  .aa-service-rfp .ps-table tr,
  .aa-service-rfp .ps-table td {
    display: block;
    width: 100%;
  }

  .aa-service-rfp .ps-table tr {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--ps-rule);
    border-radius: 4px;
  }

  .aa-service-rfp .ps-table td {
    border: 0;
    padding: 4px 0;
  }

  .aa-service-rfp .ps-table:not(.ps-table--sample-preview) td::before {
    content: attr(data-label);
    display: block;
    font-weight: 750;
    margin-bottom: 2px;
  }

  .aa-service-rfp .ps-table.ps-table--sample-preview {
    display: none;
  }

  .aa-service-rfp .ps-sample-preview-card > .ps-sample-preview-card__line:first-child {
    font-weight: 750;
  }
}

@media (min-width: 641px) {
  .aa-service-rfp .ps-table tr {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .aa-service-rfp .ps-matrix-toggle-wrap {
    display: none;
  }
}

/* Shared public-services.css stacks the matrix up to 700px; keep table layout on RFP from 641px. */
@media (min-width: 641px) and (max-width: 700px) {
  .aa-service-rfp .ps-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .aa-service-rfp .ps-table {
    display: table;
  }

  .aa-service-rfp .ps-table tbody {
    display: table-row-group;
  }

  .aa-service-rfp .ps-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .aa-service-rfp .ps-table th,
  .aa-service-rfp .ps-table td {
    display: table-cell;
    border-top: 1px solid var(--ps-rule);
    padding: 8px 8px 8px 0;
  }

  .aa-service-rfp .ps-table td::before {
    content: none;
    display: none;
  }
}

.aa-service-rfp .ps-hero-note {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.aa-service-rfp .ps-form-scope {
  margin: 0 0 12px;
  color: var(--ps-ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
}

.aa-service-rfp .ps-form-block {
  margin-top: clamp(24px, 3.5vh, 36px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--ps-rule);
}

.aa-service-rfp .ps-form-block .ph-headline {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.aa-service-rfp .ps-section__title.ph-headline {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[data-theme="stellar"] body.aa-service-rfp .ps-title.ph-headline,
html[data-theme="stellar"] body.aa-service-rfp .ps-section__title.ph-headline,
html[data-theme="stellar"] body.aa-service-rfp .ps-form-block__title.ph-headline {
  color: #eaf6ff;
  text-shadow:
    0 0 9px rgba(124, 206, 255, 0.48),
    0 0 20px rgba(96, 178, 255, 0.28);
  animation: aa-stellar-luminous-pulse-hero 5.4s ease-in-out infinite;
}

html[data-theme="stellar"] body.aa-service-rfp .ps-section__title.ph-headline,
html[data-theme="stellar"] body.aa-service-rfp .ps-form-block__title.ph-headline {
  animation: aa-stellar-luminous-pulse-support 6.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="stellar"] body.aa-service-rfp .ph-headline {
    animation: none !important;
  }
}

.aa-service-rfp .ps-field {
  position: relative;
  margin-bottom: 18px;
}

.aa-service-rfp .ps-field .ps-input,
.aa-service-rfp .ps-field .ps-textarea,
.aa-service-rfp .ps-field select.ps-input {
  padding: 8px 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(191, 220, 246, 0.34);
  border-radius: 0;
  background: transparent;
  color: var(--ps-ink);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

html[data-theme="light"] .aa-service-rfp .ps-field .ps-input,
html[data-theme="light"] .aa-service-rfp .ps-field .ps-textarea,
html[data-theme="light"] .aa-service-rfp .ps-field select.ps-input {
  border-bottom-color: rgba(93, 107, 124, 0.45);
}

.aa-service-rfp .ps-field .ps-input:focus,
.aa-service-rfp .ps-field .ps-textarea:focus,
.aa-service-rfp .ps-field select.ps-input:focus {
  outline: none;
  border-bottom-color: rgba(121, 189, 241, 0.72);
}

.aa-service-rfp .ps-button--submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 2px;
  background: #d7ecff;
  color: #07111c;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: outline 0.2s ease, opacity 0.2s ease;
}

html[data-theme="light"] .aa-service-rfp .ps-button--submit {
  background: #123044;
  color: #f7fbff;
}

html[data-theme="stellar"] .aa-service-rfp .ps-button--submit {
  background: #d7ecff;
  color: #07111c;
}

.aa-service-rfp .ps-button--submit:hover,
.aa-service-rfp .ps-button--submit:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 3px;
}

.aa-service-rfp .ps-button--submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.aa-service-rfp .ps-matrix-toggle-wrap {
  margin: 4px 0 0;
  text-align: center;
}

.aa-service-rfp .ps-matrix-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--ps-rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ps-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.aa-service-rfp .ps-matrix-toggle:hover,
.aa-service-rfp .ps-matrix-toggle:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .aa-service-rfp .ps-table tr {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .aa-service-rfp .ps-table[data-rfp-matrix-collapsed] tr[data-rfp-matrix-row--extra] {
    display: none;
  }

  .aa-service-rfp .ps-button--submit {
    width: 100%;
    max-width: none;
  }
}
