:root {
  --pq-primary-dark: #1e3a8a;
  --pq-primary: #3b82f6;
  --pq-primary-soft: #dbeafe;
  --pq-secondary: #f97316;
  --pq-secondary-dark: #ea580c;
  --pq-accent: #10b981;
  --pq-bg: #f5f8ff;
  --pq-surface: #ffffff;
  --pq-surface-alt: #f8fbff;
  --pq-border: #dbe4f2;
  --pq-text: #1f2937;
  --pq-muted: #5b677a;
  --pq-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --pq-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --pq-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.18);
  --pq-hero-image: url("../assets/prequal-hero-premium.webp");
}

body.prequal-body {
  margin: 0;
  color: var(--pq-text);
  background:
    radial-gradient(circle at 10% -10%, rgba(59, 130, 246, 0.16), transparent 38%),
    radial-gradient(circle at 92% 5%, rgba(249, 115, 22, 0.12), transparent 34%),
    var(--pq-bg);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.prequal-body h1,
.prequal-body h2,
.prequal-body h3 {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #0f172a;
}

.prequal-body p {
  margin: 0;
}

.prequal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(249, 115, 22, 0.38);
  box-shadow: var(--pq-shadow-sm);
}

.prequal-container {
  width: min(1200px, 100% - 2.4rem);
  margin: 0 auto;
}

.prequal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.prequal-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.prequal-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.prequal-logo-text strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--pq-primary-dark);
}

.prequal-logo-text span {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.prequal-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.64rem 1.12rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prequal-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(22, 163, 74, 0.36);
}

.prequal-main section {
  padding: 1.6rem 0;
}

.prequal-section-hero {
  padding-top: 1.95rem;
  padding-bottom: 1.15rem;
}

.prequal-section-modalities {
  border-top: 1px solid rgba(30, 58, 138, 0.1);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(236, 245, 255, 0.7) 100%);
}

.prequal-section-flow {
  background: #fff;
}

.prequal-section-process {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.prequal-hero {
  position: relative;
}

.prequal-hero-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(106deg, rgba(17, 25, 40, 0.86) 0%, rgba(16, 31, 60, 0.78) 38%, rgba(16, 31, 60, 0.35) 62%, rgba(16, 31, 60, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 19, 35, 0.2) 0%, rgba(10, 19, 35, 0.42) 100%),
    var(--pq-hero-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 2rem 2rem 1.85rem;
  color: #fff;
  box-shadow: var(--pq-shadow-lg);
  position: relative;
  overflow: hidden;
}

.prequal-hero-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pq-secondary), var(--pq-primary));
}

.prequal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #f9fbff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prequal-hero-card h1 {
  font-size: clamp(1.95rem, 2.95vw, 2.9rem);
  line-height: 1.08;
  margin-bottom: 0.88rem;
  color: #fff;
  text-shadow: 0 3px 14px rgba(7, 15, 29, 0.55);
  max-width: 18ch;
}

.prequal-hero-card p {
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(7, 15, 29, 0.45);
}

.prequal-pills {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.prequal-pill {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.prequal-hero-whatsapp {
  margin-top: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  border-radius: 999px;
  padding: 0.7rem 1.06rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prequal-hero-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(22, 163, 74, 0.34);
}

.prequal-guide {
  margin-top: -0.8rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.prequal-guide-item {
  border: 1px solid var(--pq-border);
  border-top: 3px solid var(--pq-primary);
  background: #fff;
  border-radius: 16px;
  padding: 0.92rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: start;
  box-shadow: var(--pq-shadow-sm);
}

.prequal-guide-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pq-primary), var(--pq-primary-dark));
  font-size: 0.82rem;
}

.prequal-guide-item h2 {
  font-size: 0.95rem;
  margin-bottom: 0.24rem;
}

.prequal-guide-item p {
  font-size: 0.86rem;
  line-height: 1.42;
  color: var(--pq-muted);
}

.prequal-modality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.prequal-modality-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--pq-border);
  background: var(--pq-surface);
  padding: 1.2rem;
  box-shadow: var(--pq-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prequal-modality-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.prequal-modality-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.75), rgba(249, 115, 22, 0.75));
}

.prequal-modality-card-featured::before {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.85), rgba(59, 130, 246, 0.85));
}

.prequal-top-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 0.54rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--pq-secondary), var(--pq-secondary-dark));
  box-shadow: 0 8px 14px rgba(234, 88, 12, 0.22);
}

.prequal-modality-card.is-active {
  border-color: rgba(30, 58, 138, 0.35);
  box-shadow: var(--pq-shadow);
  transform: translateY(-2px);
}

.prequal-modality-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.48rem;
}

.prequal-modality-card p {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--pq-muted);
}

.prequal-modality-meta {
  margin: 0.9rem 0 1.02rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.prequal-badge {
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  font-size: 0.77rem;
  font-weight: 800;
}

.prequal-badge-online {
  color: #18437f;
  background: #e8f1ff;
}

.prequal-badge-count {
  color: #16603c;
  background: #ddf8eb;
}

.prequal-modality-btn {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(30, 58, 138, 0.45);
  background: #fff;
  color: var(--pq-primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.prequal-modality-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.14);
}

.prequal-modality-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pq-primary), var(--pq-primary-dark));
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.3);
}

.prequal-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1rem;
  align-items: flex-start;
}

.prequal-catalog,
.prequal-form-wrap {
  border-radius: 20px;
  border: 1px solid var(--pq-border);
  background: var(--pq-surface);
  box-shadow: var(--pq-shadow-sm);
}

.prequal-catalog {
  position: relative;
  padding: 1.15rem;
}

.prequal-catalog::before,
.prequal-form-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--pq-primary), var(--pq-secondary));
}

.prequal-controls {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.prequal-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prequal-control label {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--pq-muted);
}

.prequal-control input,
.prequal-control select {
  height: 44px;
  border-radius: 11px;
  border: 2px solid var(--pq-border);
  background: #f9fbff;
  color: var(--pq-text);
  padding: 0 0.75rem;
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prequal-control input:focus,
.prequal-control select:focus,
.prequal-field input:focus,
.prequal-field select:focus {
  outline: none;
  border-color: var(--pq-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
  background: #fff;
}

.prequal-count {
  margin-bottom: 0.78rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--pq-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.prequal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.pq-course-card {
  border: 1px solid var(--pq-border);
  border-radius: 16px;
  background: #fff;
  padding: 0.86rem;
  display: grid;
  gap: 0.68rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pq-course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.12);
}

.pq-course-card.is-selected {
  border-color: var(--pq-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15), 0 12px 22px rgba(30, 58, 138, 0.14);
}

.pq-course-head h3 {
  font-size: 1rem;
  line-height: 1.32;
  margin-bottom: 0.24rem;
}

.pq-course-head p {
  color: var(--pq-muted);
  font-size: 0.86rem;
}

.pq-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.pq-tag {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.26rem 0.56rem;
}

.pq-tag-regular {
  background: #e8f1ff;
  color: #1c4c8a;
}

.pq-tag-aproveitamento {
  background: #fff3e4;
  color: #8a4f08;
}

.pq-tag-requirements {
  background: #ffe8e8;
  color: #902323;
}

.pq-tag-clean {
  background: #def7ea;
  color: #17623f;
}

.pq-course-price {
  font-size: 0.84rem;
  color: var(--pq-muted);
}

.pq-course-price strong {
  color: #111827;
}

.pq-course-select {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(30, 58, 138, 0.48);
  background: #fff;
  color: var(--pq-primary-dark);
  font-weight: 800;
  padding: 0.64rem 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pq-course-select:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pq-primary), var(--pq-primary-dark));
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.26);
  transform: translateY(-1px);
}

.pq-empty {
  border-radius: 15px;
  border: 2px dashed var(--pq-border);
  background: var(--pq-surface-alt);
  padding: 1.2rem;
  text-align: center;
}

.pq-empty h3 {
  font-size: 1rem;
  margin-bottom: 0.42rem;
}

.pq-empty p {
  color: var(--pq-muted);
}

.prequal-form-wrap {
  position: sticky;
  top: 96px;
  padding: 1.12rem;
}

.prequal-form-head h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.prequal-form-head p {
  color: var(--pq-muted);
  line-height: 1.5;
}

.prequal-selected {
  margin-top: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--pq-border);
  background: #f7fbff;
  padding: 0.86rem;
  display: grid;
  gap: 0.4rem;
}

.prequal-selected strong {
  font-size: 1rem;
}

.prequal-selected p {
  font-size: 0.87rem;
  color: var(--pq-muted);
}

.prequal-selected-alert {
  margin-top: 0.68rem;
  border-radius: 12px;
  border: 1px solid #ffd6b0;
  background: #fff3e4;
  color: #8a4f08;
  padding: 0.66rem 0.74rem;
  font-size: 0.84rem;
}

.prequal-form {
  margin-top: 0.92rem;
  display: grid;
  gap: 0.68rem;
}

.prequal-field {
  display: grid;
  gap: 0.36rem;
}

.prequal-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pq-muted);
}

.prequal-field input,
.prequal-field select {
  height: 44px;
  border-radius: 11px;
  border: 2px solid var(--pq-border);
  background: #f9fbff;
  color: var(--pq-text);
  padding: 0 0.72rem;
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prequal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.prequal-consent {
  margin-top: 0.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--pq-muted);
}

.prequal-submit {
  border: 0;
  border-radius: 12px;
  padding: 0.84rem 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pq-secondary), var(--pq-secondary-dark));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prequal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.32);
}

.prequal-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.prequal-form-benefits {
  margin: 0.72rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.prequal-form-benefits li {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pq-muted);
}

.prequal-form-benefits i {
  color: #16a34a;
  font-size: 0.84rem;
}

.pq-status {
  margin-top: 0.68rem;
  border-radius: 12px;
  padding: 0.64rem 0.78rem;
  font-size: 0.84rem;
  border: 1px solid transparent;
}

.pq-status-success {
  color: #0d6a43;
  border-color: #9de7c4;
  background: #e9fff3;
}

.pq-status-warning {
  color: #8a5a0a;
  border-color: #f6d8aa;
  background: #fff5e2;
}

.pq-status-error {
  color: #8f2222;
  border-color: #f4baba;
  background: #ffeded;
}

.prequal-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.92rem;
}

.prequal-process-card {
  border-radius: 16px;
  border: 1px solid var(--pq-border);
  background: #fff;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pq-shadow-sm);
}

.prequal-process-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pq-primary), var(--pq-secondary));
}

.prequal-process-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pq-primary), var(--pq-primary-dark));
  font-size: 0.88rem;
  margin-bottom: 0.68rem;
}

.prequal-process-card h3 {
  font-size: 1rem;
  margin-bottom: 0.42rem;
}

.prequal-process-card p {
  font-size: 0.88rem;
  line-height: 1.46;
  color: var(--pq-muted);
}

.prequal-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.82);
}

.prequal-footer-row {
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.prequal-footer-row a {
  color: #fff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .prequal-layout {
    grid-template-columns: 1fr;
  }

  .prequal-form-wrap {
    position: relative;
    top: auto;
  }

  .prequal-guide {
    margin-top: 0.82rem;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .prequal-logo-text span {
    display: none;
  }
}

@media (max-width: 720px) {
  .prequal-container {
    width: min(1200px, 100% - 1.25rem);
  }

  .prequal-main section {
    padding: 1.35rem 0;
  }

  .prequal-section-hero {
    padding-top: 1.45rem;
  }

  .prequal-header-row {
    flex-wrap: wrap;
  }

  .prequal-header-cta {
    width: 100%;
  }

  .prequal-hero-card {
    border-radius: 18px;
    padding: 1.26rem 1.15rem 1.2rem;
    background-position: 66% center;
  }

  .prequal-hero-card h1 {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
    max-width: 22ch;
  }

  .prequal-modality-grid,
  .prequal-grid,
  .prequal-process-grid,
  .prequal-grid-2,
  .prequal-controls {
    grid-template-columns: 1fr;
  }

  .prequal-catalog,
  .prequal-form-wrap,
  .prequal-modality-card,
  .prequal-process-card,
  .prequal-guide-item {
    border-radius: 16px;
  }

  .prequal-footer-row {
    padding: 1rem 0;
  }
}
