/* ==========================================================================
   Layout & Structure
   ========================================================================== */
.service-template {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 !important;
  align-items: flex-start;
}

.service-template .service-main-content {
  flex: 0 1 calc(70% - 20px);
  padding: 0 20px 20px 20px;
}

.service-template #SidebarForm {
  flex: 0 1 30%;
}

/* ==========================================================================
   Typography & Content
   ========================================================================== */
.service-template .service-main-content h1 {
  font-size: 2rem;
  font-weight: bold;
}

.service-template .service-main-content .service-content {
  font-size: 1.25rem;
}

.service-template .service-main-content .service-content h1 {
  display: none !important;
}

/* ==========================================================================
   Featured Image
   ========================================================================== */
.service-template .service-featured-image {
  height: 250px;
  max-height: 250px;
  width: 100%;
  object-fit: cover;
  padding-bottom: 20px;
}
.service-template .service-featured-image.assisted-living-img {
  object-position: 50% 15%;
}
.service-template .service-featured-image.memory-care-img {
  object-position: 50% 55%;
}
.service-template .service-featured-image.independent-living-img {
  object-position: 50% 55%;
}
.service-template .service-featured-image.nursing-homes-img {
  object-position: 50% 22%;
}
.service-template .service-featured-image.in-home-care-img {
  object-position: 50% 55%;
}
.service-template .service-featured-image.respite-care-img {
  object-position: 50% 35%;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */
.service-template .service-button {
  display: inline-block;
  background: var(--cp-orange);
  padding: 12px 50px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
  text-align: center;
  margin: 20px 0;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), 0 4px 4px rgba(0, 0, 0, 0.14);
  transition: all 0.1s;
  text-transform: uppercase;
}

.service-template .service-button i {
  margin-left: 10px;
}

.service-template .service-button:hover {
  transform: translateY(2px);
  box-shadow: none;
}

/* ==========================================================================
Reviews Section
========================================================================== */

.service-reviews {
  background: #f0f0f0;
  padding: 50px 0;
}

.service-reviews-inner {
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.service-reviews-heading {
  text-align: center;
  margin-bottom: 20px;
}

.service-reviews-heading .stars {
  font-size: 35px;
  color: #ffb13f;
  margin-bottom: 5px;
}

.service-reviews-heading h2 {
  font-size: 2.25rem;
  margin-bottom: 0px;
  font-weight: 100;
}

.service-reviews-heading .powered-by {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 30px;
}

.service-reviews-heading .powered-by img,
.service-reviews-heading .powered-by svg {
  width: 220px;
  height: 30px;
}

.service-reviews-inner .reviews-inner {
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-reviews .review {
  font-size: 1rem;
  flex: 0 1 30%;
}

.service-reviews .review .rating {
  text-transform: uppercase;
  font-size: 1.15rem;
  border-bottom: #f4b333 solid 2px;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.service-reviews .review .question {
  font-weight: bold;
  margin-bottom: 10px;
}

.service-reviews .review .review-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.service-reviews .review-button {
  text-align: center;
  margin-top: 30px;
}
.service-reviews .review-button a {
  background: var(--cp-orange);
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), 0 4px 4px rgba(0, 0, 0, 0.14);
  transition: all 0.1s;
  text-transform: uppercase;
  color: #fff;
}
.service-reviews .review-button:hover {
  transform: translateY(2px);
  box-shadow: none !important;
}
.service-reviews .review-button a:hover {
  transform: translateY(2px);
  box-shadow: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .service-template {
    flex-direction: column;
  }

  .service-template .service-main-content,
  .service-template #SidebarForm {
    flex: 1 1 100%;
    padding-right: 0;
  }

  .service-reviews .review {
    flex: 1 1 100%;
  }
}
/* Responsive Error Positioning */
@media (max-width: 1200px) {
  .legal-consent-container .hs-error-msgs label {
    margin-left: 72px;
  }
}

@media (max-width: 400px) {
  .legal-consent-container .hs-error-msgs label {
    margin-left: 43px;
  }

  .form-columns-2 .hs-input,
  .form-columns-3 .hs-input {
    width: 100%;
  }
}
@media (max-width: 800px) {
  input[type="checkbox"],
  input[type="radio"] {
    width: 5% !important;
  }
}

/* ==========================================================================
   ==========================================================================
   Connect Form Styling
   ==========================================================================
   ========================================================================== */

/* ==========================================================================
   service Sidebar Styling
   ========================================================================== */
#SidebarForm {
  background: var(--cp-purple);
  position: relative;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), 0 4px 4px rgba(0, 0, 0, 0.14);
}

#SidebarForm #ConnectForm {
  position: relative;
  padding: 20px;
  padding-top: 0;
}

/* ==========================================================================
   Headers & Labels
   ========================================================================== */
#SidebarForm #ConnectFormHeader h2.first,
#SidebarForm #ConnectFormHeader h2.second,
#SidebarForm #ConnectFormHeader h3 {
  color: #fff;
  text-align: center;
  line-height: 1;
}

#SidebarForm #ConnectFormHeader h2.first {
  font-size: 1.5rem;
  margin: 20px 20px 0;
}

#SidebarForm #ConnectFormHeader h2.second {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 10px 5px;
}

#SidebarForm #ConnectFormHeader h3 {
  font-size: 1.5rem;
  font-weight: 200;
  font-style: italic;
  margin: 0 5px 10px;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
#SidebarForm #ConnectForm #CustomSubmit {
  background: var(--cp-orange);
  color: #fff !important;
  width: 100% !important;
  padding: 10px !important;
  margin-top: 25px;
  border-radius: 10px !important;
  border: none;
  font-family: "Lato", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  text-transform: uppercase;
  text-shadow: 0 0 1px #000, 0 0 2px #000 !important;
  align-self: start;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), 0 4px 4px rgba(0, 0, 0, 0.14);
  transition: all 0.1s;
}

#SidebarForm #ConnectForm #CustomSubmit:hover {
  transform: translateY(2px);
  box-shadow: none;
}

#SidebarForm #ConnectForm .hs-button {
  display: none !important;
}

/* ==========================================================================
   Success Message
   ========================================================================== */
#SidebarForm #ConnectForm .submitted-message,
#SidebarForm #ConnectForm .submitted-message p:first-child {
  color: #fff;
  text-align: center;
  margin-top: 20px;
  font-weight: 200;
  font-size: 1.35rem;
  line-height: 1.15;
  padding: 0;
}
#SidebarForm #ConnectForm .submitted-message :not(p:first-child) {
  display: none;
}

/* ==========================================================================
   Field & Input Styling
   ========================================================================== */
#SidebarForm #ConnectForm .hs-form input .hs-input,
#SidebarForm #ConnectForm .hs-form-field input,
#SidebarForm #ConnectForm .hbspt-form .hs-form textarea {
  color: #000 !important;
  border: solid 1px var(--cp-gray) !important;
  border-radius: 0 !important;
  padding: 12px 10px !important;
  font-size: 15px !important;
  font-family: "Lato", sans-serif !important;
}

#SidebarForm #ConnectForm .hs-form .hs_zip .input input {
  width: 100% !important;
}

#SidebarForm #ConnectForm .hs-form-field input::placeholder,
#SidebarForm #ConnectForm .hbspt-form .hs-form textarea::placeholder {
  color: #000 !important;
}

#SidebarForm #ConnectForm .hs-form-field select {
  padding: 12px;
  font-size: 15px !important;
  font-family: Lato !important;
}

#SidebarForm #ConnectForm .hs-form fieldset {
  max-width: none !important;
  margin: 0 !important;
}

#SidebarForm #ConnectForm .hs-form fieldset select,
#SidebarForm #ConnectForm .hs-form fieldset textarea {
  width: 100% !important;
  box-sizing: border-box;
}

/* ==========================================================================
   Phone & Callout Section
   ========================================================================== */
#SidebarForm #ConnectForm .ConnectFormCallout,
#SidebarForm #ConnectForm .ConnectPhone {
  margin: 20px;
  color: #fff !important;
}

#SidebarForm #ConnectForm .ConnectPhone .phone a {
  color: #fff;
  font-size: 1.75rem;
}

#SidebarForm #ConnectForm .ConnectPhone .phone a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Error & Consent
   ========================================================================== */
#SidebarForm #ConnectForm .hs-form-field .hs-error-msgs,
#SidebarForm #ConnectForm .legal-consent-container .hs-error-msgs,
#SidebarForm #ConnectForm .hs_error_rollup {
  color: #fff !important;
  margin-bottom: 0;
}

#SidebarForm #ConnectForm .hs-form-field .hs-error-msgs li,
#SidebarForm #ConnectForm .legal-consent-container .hs-error-msgs li {
  margin-left: -10px !important;
}

#SidebarForm #ConnectForm .hs-form-field .hs-error-msgs label,
#SidebarForm #ConnectForm .legal-consent-container .hs-error-msgs label {
  display: flex;
  margin-bottom: 0;
}

#SidebarForm #ConnectForm .legal-consent-container .hs-error-msgs label {
  margin-left: 87px;
  margin-top: -20px;
  color: var(--cp-orange);
}

/* ==========================================================================
   Checkboxes & Radios
   ========================================================================== */
#SidebarForm #ConnectForm .hs-form-booleancheckbox,
#SidebarForm #ConnectForm .hs-form-checkbox label {
  width: 100%;
}

#SidebarForm #ConnectForm .hs-cp_sms_consent_checkbox ul {
  padding-left: 0;
  padding-top: 20px;
}

#SidebarForm #ConnectForm .hs-form-booleancheckbox label {
  padding: 5px 10px 0;
  color: #fff;
}

#SidebarForm #ConnectForm .hs-form-booleancheckbox input {
  margin: 0 5px 0 0;
}

#SidebarForm #ConnectForm .hs-form-booleancheckbox-display p {
  width: 90%;
}

#SidebarForm #ConnectForm .asterisk {
  margin: -10px 10px 20px 10px;
  color: #fff !important;
  font-size: 0.8rem;
}

#SidebarForm #ConnectForm .hs-cp_sms_consent_checkbox ul,
#SidebarForm #ConnectForm .inputs-list ul,
#SidebarForm #ConnectForm .hs-form-booleancheckbox ul {
  list-style: none;
  /* margin: 20px -30px; */
}

#SidebarForm #ConnectForm .hs-richtext,
#SidebarForm #ConnectForm .hs-dependent-field {
  color: white;
  word-break: break-word;
  padding: 0 20px;
}

#SidebarForm #ConnectForm input[type="checkbox"],
#SidebarForm #ConnectForm input[type="radio"] {
  width: 5% !important;
}

/* ==========================================================================
   Overlay & Spinner
   ========================================================================== */
#SidebarForm .form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 5px;
}

#SidebarForm .spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
