/*
 * RAM-U Service — Report Return / Refund Page
 * File: reportfit.css
 *
 * Design direction:
 * Modern Academic / Medical Research
 * Warm Ivory + Deep Navy + Medical Blue
 *
 * The existing document URLs are intentionally unchanged.
 */

:root {
  --rf-navy: #17324d;
  --rf-navy-deep: #10283f;
  --rf-blue: #2f6f9f;
  --rf-blue-soft: #eaf3f8;
  --rf-teal: #3f7f7a;
  --rf-ivory: #f7f6f1;
  --rf-paper: #ffffff;
  --rf-text: #253442;
  --rf-muted: #6c7882;
  --rf-line: #e2e6e8;
  --rf-line-soft: #edf0f1;
  --rf-success-soft: #eef7f3;
  --rf-shadow: 0 14px 40px rgba(23, 50, 77, 0.08);
  --rf-shadow-soft: 0 5px 18px rgba(23, 50, 77, 0.06);
  --rf-radius: 14px;
  --rf-radius-small: 10px;
}

/* ----------------------------------------------------------
   Base
---------------------------------------------------------- */

.reportfit-page {
  background: var(--rf-ivory);
  color: var(--rf-text);
  font-family: "Noto Sans Thai", "IBM Plex Sans Thai", "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.reportfit-page .wrapper {
  background: transparent;
}

.reportfit-page .content-wrapper {
  background: var(--rf-ivory);
}

.reportfit-page a {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

/* ----------------------------------------------------------
   Existing background/banner
---------------------------------------------------------- */

.reportfit-top-banner {
  width: 100%;
  overflow: hidden;
  background: var(--rf-navy);
}

.reportfit-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

/* ----------------------------------------------------------
   Main layout
---------------------------------------------------------- */

.reportfit-content-wrapper {
  min-height: calc(100vh - 180px);
}

.reportfit-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

/* ----------------------------------------------------------
   Hero
---------------------------------------------------------- */

.reportfit-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(23, 50, 77, 0.10);
  border-radius: var(--rf-radius);
  background:
    linear-gradient(135deg, rgba(23, 50, 77, 0.98), rgba(33, 72, 99, 0.95));
  box-shadow: var(--rf-shadow);
}

.reportfit-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -120px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  pointer-events: none;
}

.reportfit-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 38px 42px 35px;
}

.reportfit-eyebrow,
.reportfit-card-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: #8fc1d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.reportfit-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #8fc1d9;
}

.reportfit-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.reportfit-subtitle {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 16px;
  line-height: 1.85;
}

.reportfit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
}

.reportfit-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.reportfit-meta-item i {
  color: #9fc9dc;
}

.reportfit-meta-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}

/* ----------------------------------------------------------
   Main card
---------------------------------------------------------- */

.reportfit-card {
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  background: var(--rf-paper);
  box-shadow: var(--rf-shadow);
}

.reportfit-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 32px 25px;
  border-bottom: 1px solid var(--rf-line);
  background: #fff;
}

.reportfit-section-number {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--rf-blue-soft);
  color: var(--rf-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.reportfit-card-heading .reportfit-card-kicker {
  margin-top: 1px;
  margin-bottom: 5px;
  color: var(--rf-blue);
}

.reportfit-card-heading h2 {
  margin: 0;
  color: var(--rf-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   Steps
---------------------------------------------------------- */

.reportfit-card-body {
  padding: 8px 32px 22px;
}

.reportfit-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 27px 0 30px;
  border-bottom: 1px solid var(--rf-line-soft);
}

.reportfit-step::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 76px;
  bottom: -1px;
  width: 1px;
  background: #dbe4e8;
}

.reportfit-step-last::before {
  display: none;
}

.reportfit-step-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #cbdde6;
  border-radius: 50%;
  background: #f7fbfd;
  color: var(--rf-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.reportfit-step-title {
  margin: 2px 0 7px;
  color: var(--rf-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.reportfit-step-content > p {
  max-width: 860px;
  margin: 0;
  color: var(--rf-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ----------------------------------------------------------
   Document checklist
---------------------------------------------------------- */

.reportfit-documents {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #e1e8ea;
  border-radius: var(--rf-radius-small);
  background: #fafbfa;
}

.reportfit-documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 13px;
}

.reportfit-documents-header .reportfit-card-kicker {
  margin: 0 0 3px;
  color: var(--rf-teal);
}

.reportfit-documents-header h3 {
  margin: 0;
  color: var(--rf-navy);
  font-size: 16px;
  font-weight: 700;
}

.reportfit-document-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rf-success-soft);
  color: var(--rf-teal);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.reportfit-document-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reportfit-doc;
}

.reportfit-document-item {
  counter-increment: reportfit-doc;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 10px 6px;
  border-top: 1px solid #e7ecee;
}

.reportfit-document-item::before {
  content: counter(reportfit-doc, decimal-leading-zero);
  color: #96a2aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
}

.reportfit-document-icon {
  display: none;
}

.reportfit-document-content {
  min-width: 0;
}

.reportfit-document-content strong {
  display: block;
  color: var(--rf-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.reportfit-document-content span {
  display: block;
  margin-top: 2px;
  color: #87929a;
  font-size: 11px;
  line-height: 1.6;
}

.reportfit-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #b8d2df;
  border-radius: 7px;
  background: #ffffff;
  color: var(--rf-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.reportfit-download:hover,
.reportfit-download:focus {
  border-color: var(--rf-blue);
  background: var(--rf-blue-soft);
  color: var(--rf-navy);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(47, 111, 159, 0.12);
}

.reportfit-download:focus-visible {
  outline: 3px solid rgba(47, 111, 159, 0.18);
  outline-offset: 2px;
}

.reportfit-download-secondary {
  margin-top: 14px;
}

/* ----------------------------------------------------------
   Submission notice
---------------------------------------------------------- */

.reportfit-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 32px 30px;
  padding: 19px 20px;
  border: 1px solid #dbe7e3;
  border-radius: var(--rf-radius-small);
  background: #f4f8f6;
}

.reportfit-notice-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #e3f0eb;
  color: var(--rf-teal);
}

.reportfit-notice .reportfit-card-kicker {
  margin: 0 0 4px;
  color: var(--rf-teal);
}

.reportfit-notice p {
  margin: 0;
  color: #53635e;
  font-size: 13px;
  line-height: 1.8;
}

/* ----------------------------------------------------------
   Support footer card
---------------------------------------------------------- */

.reportfit-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--rf-shadow-soft);
}

.reportfit-support .reportfit-card-kicker {
  margin: 0 0 4px;
  color: var(--rf-blue);
}

.reportfit-support h2 {
  margin: 0;
  color: var(--rf-navy);
  font-size: 16px;
  font-weight: 700;
}

.reportfit-support p {
  margin: 4px 0 0;
  color: var(--rf-muted);
  font-size: 12px;
}

.reportfit-support-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d7e2e7;
  border-radius: 12px;
  background: #f6fafb;
  color: var(--rf-blue);
  font-size: 18px;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width: 991px) {
  .reportfit-main {
    width: min(100% - 28px, 900px);
    padding-top: 26px;
  }

  .reportfit-hero-inner {
    padding: 30px 28px;
  }

  .reportfit-card-heading {
    padding: 24px 25px;
  }

  .reportfit-card-body {
    padding: 4px 25px 20px;
  }

  .reportfit-notice {
    margin-right: 25px;
    margin-left: 25px;
  }
}

@media (max-width: 767px) {
  .reportfit-main {
    width: calc(100% - 20px);
    padding: 18px 0 45px;
  }

  .reportfit-banner-image {
    max-height: 120px;
  }

  .reportfit-hero {
    border-radius: 11px;
  }

  .reportfit-hero-inner {
    padding: 25px 21px 24px;
  }

  .reportfit-hero h1 {
    font-size: 25px;
    line-height: 1.45;
  }

  .reportfit-subtitle {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
  }

  .reportfit-meta {
    display: block;
    margin-top: 17px;
    font-size: 10px;
    line-height: 1.8;
  }

  .reportfit-meta-divider {
    display: none;
  }

  .reportfit-meta-item {
    display: flex;
    margin-top: 4px;
  }

  .reportfit-card {
    border-radius: 11px;
  }

  .reportfit-card-heading {
    gap: 12px;
    padding: 20px 18px;
  }

  .reportfit-section-number {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 11px;
  }

  .reportfit-card-heading h2 {
    font-size: 16px;
    line-height: 1.55;
  }

  .reportfit-card-body {
    padding: 0 18px 17px;
  }

  .reportfit-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0 24px;
  }

  .reportfit-step::before {
    left: 19px;
    top: 62px;
  }

  .reportfit-step-marker {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }

  .reportfit-step-title {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .reportfit-step-content > p {
    font-size: 12px;
    line-height: 1.8;
  }

  .reportfit-documents {
    margin-top: 18px;
    padding: 14px;
  }

  .reportfit-documents-header {
    align-items: flex-start;
  }

  .reportfit-document-item {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 2px;
  }

  .reportfit-document-item::before {
    align-self: start;
    padding-top: 3px;
    font-size: 9px;
  }

  .reportfit-document-content strong {
    font-size: 12px;
    line-height: 1.65;
  }

  .reportfit-document-content span {
    font-size: 10px;
  }

  .reportfit-document-download {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .reportfit-document-download .reportfit-download {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .reportfit-download {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .reportfit-notice {
    gap: 11px;
    margin: 0 18px 20px;
    padding: 15px;
  }

  .reportfit-notice-icon {
    width: 34px;
    height: 34px;
  }

  .reportfit-notice p {
    font-size: 11px;
    line-height: 1.75;
  }

  .reportfit-support {
    padding: 19px;
    border-radius: 11px;
  }

  .reportfit-support h2 {
    font-size: 14px;
  }

  .reportfit-support p {
    font-size: 10px;
  }

  .reportfit-support-mark {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .reportfit-eyebrow {
    font-size: 9px;
  }

  .reportfit-hero h1 {
    font-size: 22px;
  }

  .reportfit-documents-header {
    display: block;
  }

  .reportfit-document-count {
    margin-top: 8px;
  }
}

/* ----------------------------------------------------------
   Print
---------------------------------------------------------- */

@media print {
  .reportfit-page {
    background: #ffffff;
  }

  .reportfit-top-banner,
  .main-sidebar,
  .main-header,
  .control-sidebar,
  .reportfit-download {
    display: none !important;
  }

  .reportfit-content-wrapper {
    margin-left: 0 !important;
    min-height: 0;
  }

  .reportfit-main {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .reportfit-hero,
  .reportfit-card,
  .reportfit-support {
    box-shadow: none;
  }

  .reportfit-hero {
    color: #000000;
    background: #ffffff;
    border: 1px solid #cccccc;
  }

  .reportfit-hero h1,
  .reportfit-card-heading h2,
  .reportfit-step-title,
  .reportfit-support h2 {
    color: #000000;
  }

  .reportfit-subtitle,
  .reportfit-meta {
    color: #333333;
  }
}
