/* ============================================
   PUBLIC ASSESSMENT — STRUCTURE LAYER
   Fixed, consistent layout that branding cannot override.
   ============================================ */

/* --- Wrapper: receives branding background only --- */
.public-page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

/* Overlay for background-image readability */
.public-page-wrapper--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 0;
}

/* Container: fixed max-width, centered */
.public-page-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

/* Content: full width inside container */
.public-page-content {
  width: 100%;
}

/* --- Logo --- */
.public-page-logo {
  text-align: center;
  padding-bottom: 12px;
}

.public-page-logo img {
  width: 500px;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================
   CARDS — Shared base for assessment + report
   ============================================ */

.assessment-card,
.report-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   ASSESSMENT FORM
   ============================================ */

.assessment-card .assessment-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

.assessment-card__answers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.assessment-card__answers .form-control,
.assessment-card__answers textarea.form-control {
  max-width: 500px;
  width: 100%;
  text-align: left;
}

.assessment-card__answers .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  text-align: left;
  gap: 10px;
}

.assessment-card__answers .form-check-input {
  margin-top: 0;
  margin-right: 0;
  flex-shrink: 0;
}

.assessment-card__answers .form-check-label {
  cursor: pointer;
  padding-left: 2px;
}

.assessment-card__answers small {
  text-align: center;
}

/* Submit card */
.assessment-submit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* ============================================
   REPORT / THANK-YOU PAGE
   ============================================ */

/* Report header card with gradient */
.report-header-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.report-header-card__inner {
  padding: 40px 24px;
  text-align: center;
}

.report-header-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.report-header-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.report-header-card__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

/* Section results heading card */
.report-section-heading {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.report-section-heading h5 {
  font-weight: 700;
  margin-bottom: 0;
}

/* Individual report answer card */
.report-card__question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.report-card__question-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
}

.report-card__score {
  text-align: right;
  margin-left: 16px;
  flex-shrink: 0;
}

.report-card__score-value {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
}

.report-card__score-label {
  font-size: 0.65rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-card__band {
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.report-card__band-label {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.report-card__band-detail {
  margin-bottom: 6px;
}

.report-card__band-detail-label {
  font-size: 0.7rem;
  color: #6c757d;
}

.report-card__band-detail-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.report-card__band-explanation {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 4px 0 0;
}

/* --- Overall Summary Card (visually distinct) --- */
.report-summary-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 0;
  margin-top: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.report-summary-card__header {
  padding: 20px 24px;
  text-align: center;
}

.report-summary-card__header h5 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}

.report-summary-card__body {
  background: #ffffff;
  padding: 28px 24px;
}

.report-summary-card__score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.report-summary-card__score-circle span {
  font-weight: 700;
  color: #fff;
  font-size: 1.75rem;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.public-page-flash {
  margin-bottom: 16px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
  .public-page-wrapper {
    padding: 20px 12px;
  }

  .public-page-logo img {
    width: 350px;
    height: 90px;
  }

  .assessment-card,
  .report-card {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  .report-header-card__inner {
    padding: 28px 16px;
  }

  .report-summary-card__body {
    padding: 20px 16px;
  }

  .report-card__question-header {
    flex-direction: column;
  }

  .report-card__score {
    text-align: left;
    margin-left: 0;
    margin-top: 8px;
  }
}

@media (max-width: 575.98px) {
  .public-page-wrapper {
    padding: 16px 8px;
  }

  .public-page-logo img {
    width: 260px;
    height: 70px;
  }

  .assessment-card .assessment-card__title {
    font-size: 1rem;
  }

  .report-header-card__title {
    font-size: 1.25rem;
  }
}
