body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #213585;
}

.container {
  width: 960px;
  max-width: 100%;
  margin: 24px auto;
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.title {
  margin: 0;
  font-size: 30px;
  text-decoration: underline;
}

.logo-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 26px;
  font-weight: bold;
  color: #971b65;
}

.address-box,
.info-box {
  border: 1px solid #213585;
  padding: 14px;
  line-height: 1.55;
}

.page-section {
  background: #f9fbff;
  border: 1px solid #d1d5db;
  padding: 18px 20px;
  margin: 22px 0;
  border-radius: 8px;
}

.page-section .section-title {
  margin-top: 0;
}

.legal-section {
  background: #ffffff;
}

.address-box {
  width: 270px;
  font-size: 14px;
}

.info-title {
  margin: 0 0 10px;
  font-weight: bold;
  text-decoration: underline;
}

.info-text {
  margin: 8px 0 10px;
}

.section-title {
  background: #213585;
  color: white;
  padding: 12px 14px;
  font-size: 22px;
  margin-top: 26px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  border: 1px solid #999;
  padding: 10px;
  vertical-align: top;
}

th {
  background: #e9eef4;
  font-weight: 700;
}

.label {
  width: 25%;
  background: #f6f8fb;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: none;
  background: #dbe1f1;
  padding: 10px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  min-height: 38px;
}

a:hover {
  color: #971b65;
}

textarea {
  min-height: 70px;
}
.required-star {
    color: red;
    font-weight: bold;
    margin-left: 3px;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
/* Increase checkbox size */
input[type="checkbox"]{
    width:24px;
    height:24px;
    cursor:pointer;
}
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* Increase checkbox size */
input[type="checkbox"]{
    width: 22px;
    height:22px;
    cursor:pointer;
    margin-right:2px;
}

.radio-cell label{
    margin-right:10px;
   font-size: 14px;
}



.radio-cell label,
.inline-cell label {
  font-weight: 500;
}

.half-width {
  width: 48%;
}

.wide-text {
  width: 100%;
}



.footer-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

button {
  margin: 24px 0 0;
  width: 100%;
  padding: 14px;
  border: none;
  background: #971b65;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #7a1450;
}

/* =============================================
   PAGE HEADER — Large centered logo + name,
   review badge to the right  (matches Image 2)
   ============================================= */
.page-header {
  background: #ffffff;
  /* padding: 28px 40px; */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  /* border-bottom: 1px solid #e5e7eb; */
}

/* Logo stacked above company name, both centered */
.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 10px; */
}

/* Large logo — matches Image 2 size */
.header-logo {
  width: 550px;
  height: 150px;
  object-fit: contain;
  /* max-width: 100%; */
}

/* Large pink company name below logo */
.header-company {
  font-size: 34px;
  font-weight: 700;
  color: #971b65;
  white-space: nowrap;
}

.header-subtitle {
  font-size: 14px;
  color: #213585;
}

/* =============================================
   MAIN NAV
   ============================================= */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 10px 24px 18px;
  /* border-bottom: 1px solid #e5e7eb; */
}

.main-nav a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  /* border-radius: 10px; */
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  background: #0e0c6a;
}

.main-nav a.active {
  background: #0e0c6a;
  color: #ffffff;
}

/* =============================================
   REVIEW BADGE — teal outlined circle (Image 2)
   ============================================= */
.review-score {
  border-radius: 25px;
  padding-top: 4px;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  display: block;
  box-sizing: border-box;
  font-weight: 700;
  background-color: rgb(54, 124, 117);
  font-size: 18px !important;
  line-height: 38px !important;
  margin-right: 10px;
  box-shadow: inset 0 0 0 3px white;
  border: 3px solid;
  margin-top: 8px;
}

.review-badge {
  background: #fbfbfb;
  border: 2px solid #c8cdd5; /* thicker, more visible border */
  border-radius: 50px 20px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  /* gap: 12px; */
  box-shadow: none;
}

.review-label {
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
}

.review-subtitle a {
  border-bottom-style: none !important;
  text-decoration: none !important;
  color: #284b98 !important;
  font-size: 10px;
}
.review-subtitle {
  border-bottom-style: none !important;
  text-decoration: none !important;
  color: #284b98 !important;
  font-size: 10px;
}

/* =============================================
   PAGE FOOTER
   ============================================= */
.page-footer {
  background: #f8f6fb;
  padding: 36px 120px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #e5e7eb;
}

.page-footer h2 {
  margin-top: 0;
  font-size: 18px;
  color: #971b65;
}

.footer-contact p,
.footer-contact a,
.footer-review-widget p,
.footer-review-widget div,
.footer-associations p,
.footer-associations div {
  margin: 6px 0;
  color: #1f2937;
  font-size: 14px;
}

.page-footer a {
  text-decoration: none;
  color: #1f2937;
}

.page-footer a:hover {
  text-decoration: underline;
}

.footer-review-widget {
  background: #ffffff;
  border: 1px solid #7a8bae;
  padding: 20px;
}

.footer-review-score {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgb(54, 124, 117);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.review-widget-title {
  font-weight: 700;
  color: #213585;
  margin-top: 8px;
}

.review-widget-meta {
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}

.review-stars {
  color: #31a24c;
  font-size: 16px;
  margin: 10px 0;
}

.review-widget-text {
  margin: 10px 0 0;
  line-height: 1.6;
}

.footer-associations {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cqc-badge {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.cqc-title {
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
}

.cqc-status {
  font-size: 22px;
  font-weight: 800;
  color: #166d3e;
}

.association-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #1f2937;
}

.footer-note-column {
  border-left: 1px solid #d1d5db;
  padding-left: 16px;
}

.assoc img {
  width: auto;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 12px auto;
}

.cqc-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cqc-logo img {
  width: auto;
  max-width: 200px;
  height: auto;
}

.cqc-box {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.assoc {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.form-error {
  color: #b91c1c;
  font-weight: bold;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.validation-error-list {
  color: #1f2937;
  line-height: 1.6;
  margin: 12px 0 20px 20px;
  padding: 0;
}

/* =============================================
   MOBILE RESPONSIVE — FOOTER
   ============================================= */
@media (max-width: 768px) {
  .page-footer {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }

  .footer-contact,
  .footer-review-widget,
  .footer-associations {
    width: 100%;
  }

  .footer-contact img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .assoc img,
  .cqc-logo img {
    width: auto;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 10px auto;
  }

  .cqc-box {
    width: 100%;
    max-width: 100%;
  }

  .footer-associations {
    align-items: center;
    text-align: center;
  }

  .footer-review-widget {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .page-footer {
    padding: 16px 12px;
    gap: 16px;
  }

  .footer-contact p,
  .footer-contact a,
  .footer-review-widget p,
  .footer-review-widget div,
  .footer-associations p,
  .footer-associations div {
    font-size: 13px;
  }

  .footer-review-score {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .assoc img,
  .cqc-logo img {
    max-width: 80%;
  }
}
/* =============================================
   COPYRIGHT FOOTER
   ============================================= */
.copyright-footer {
  background: #0e0c66;
  color: #ffffff;
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid #1a2a5e;
}

.copyright-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright-content p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.6;
}

.copyright-content a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright-content a:hover {
  color: #b0c4de;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0056b3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  z-index: 99;
  padding: 0;
}

.back-to-top-btn:hover {
  background: #003d82;
  transform: translateY(-3px);
}

.back-to-top-btn.show {
  display: flex;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .back-to-top-btn {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
