/* CareExpert production polish — spacing, contact UX, support widget */

:root {
  --site-header-height: 76px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --touch-min: 44px;
  --layout-max: 1680px;
  --content-max: 1280px;
  --page-gutter: clamp(20px, 3vw, 48px);
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body {
  line-height: 1.6;
  font-size: 16px;
  padding-top: var(--site-header-height);
  overflow-x: clip;
}

body,
button,
input,
select,
textarea {
  font-synthesis-weight: none;
}

p,
li {
  text-wrap: pretty;
}

.content-page,
.page-lead,
.hero-copy > p,
.center-heading p,
.section-heading p,
.form-aside > p,
.profile-main p,
.team-text,
.quote,
.vision p {
  max-width: 72ch;
}

html[dir="rtl"] {
  --serif: "Segoe UI", Tahoma, Arial, sans-serif;
  --sans: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
  font-family: var(--sans) !important;
  letter-spacing: 0;
}

html[dir="rtl"] * {
  letter-spacing: 0 !important;
}

[id] {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

body.nav-menu-open,
body.filters-panel-open {
  overflow: hidden;
}

/* Renewal notice banner (internal scheduler, no email) */
.renewal-notice {
  background: linear-gradient(90deg, #fff8e8 0%, #fff 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.renewal-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  flex-wrap: wrap;
}

.renewal-notice-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

#app:focus,
#app:focus-visible {
  outline: none;
}

main#app,
.view,
.view.active {
  border: none;
  outline: none;
  box-shadow: none;
}

dialog {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Plan badges on caregiver cards */
.care-card-image {
  position: relative;
}

.care-card.plan-starter {
  border: 1.5px solid rgba(45, 92, 79, 0.2);
  box-shadow: 0 6px 20px rgba(45, 92, 79, 0.06);
}

.care-card.plan-builder {
  border: 1.5px solid #2f6b55;
  box-shadow: 0 10px 30px rgba(47, 107, 85, 0.12);
}

.care-card.plan-premium {
  border: 1.5px solid #d4af37;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.16);
}

.care-card.plan-starter:hover {
  border-color: rgba(45, 92, 79, 0.38);
}

.care-card.plan-builder:hover {
  border-color: #245642;
}

.care-card.plan-premium:hover {
  border-color: #b89124;
}

.care-card-image .badge {
  position: absolute;
  top: 12px;
  right: 12px !important;
  left: auto !important;
  z-index: 3;
  width: max-content !important;
  min-width: 76px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(45, 92, 79, 0.2);
  box-shadow: 0 5px 16px rgba(23, 50, 43, 0.12);
}

.care-card-image .badge.badge-neutral {
  background: #fff;
  border-color: rgba(45, 92, 79, 0.24);
  color: var(--ink);
}

.care-card-image .badge.badge-green {
  background: #2f6b55;
  border-color: #2f6b55;
  color: #fff;
}

.care-card-image .badge.badge-gold {
  background: #d4af37;
  border-color: #d4af37;
  color: var(--ink);
}

.profile-plan-badge {
  min-width: 72px;
  text-align: center;
}

.content-page {
  max-width: var(--content-max);
  padding-block: var(--space-6) var(--space-7);
  line-height: 1.75;
  color: #3f5b52;
}

.content-page > p {
  margin: 0 0 var(--space-4);
  font-size: 1.05rem;
}

.page-hero.compact {
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

.page-hero.compact h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0.35em 0 0.5em;
}

.page-hero.compact p {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Support widget — bottom-right, icon + note */
.support-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: none;
}

.support-widget > * {
  pointer-events: auto;
}

.support-widget-note {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 28px rgba(23, 50, 43, 0.14);
  border: 1px solid rgba(45, 92, 79, 0.1);
  white-space: nowrap;
  animation: support-note-in 0.4s ease;
}

.support-widget-btn {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.support-widget-btn:hover {
  transform: translateY(-2px);
  background: var(--whatsapp-dark);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.support-widget-btn .icon svg {
  width: 28px;
  height: 28px;
}

@keyframes support-note-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html[dir="rtl"] .support-widget {
  right: auto;
  left: max(16px, env(safe-area-inset-left));
  flex-direction: row-reverse;
}

@media (max-width: 640px) {
  .support-widget {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
    gap: 0;
  }

  .support-widget-note {
    display: none;
  }

  .support-widget-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .support-widget-btn .icon svg {
    width: 24px;
    height: 24px;
  }

  body:has(.page-form) .support-widget,
  body:has(.packages-page) .support-widget,
  body:has(.payment-page-main) .support-widget {
    display: none;
  }
}

/* Contact page */
.contact-page {
  max-width: 1180px;
}

.contact-support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef9f2 0%, #fff 55%, #f8f5f0 100%);
  border: 1px solid rgba(45, 92, 79, 0.12);
  box-shadow: 0 12px 40px rgba(32, 71, 60, 0.07);
}

.contact-support-banner .kicker {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-support-banner h2 {
  margin: 0 0 var(--space-2);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
}

.contact-support-banner p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  min-height: 100%;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(32, 71, 60, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-channel-card:hover {
  border-color: rgba(45, 92, 79, 0.22);
  box-shadow: 0 10px 28px rgba(32, 71, 60, 0.08);
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--green);
}

.contact-channel-icon.whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: var(--whatsapp-dark);
}

.contact-channel-icon .icon svg {
  width: 22px;
  height: 22px;
}

.contact-channel-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.contact-channel-card p,
.contact-channel-card a {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  word-break: break-word;
}

.contact-channel-card a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.contact-channel-card a:hover {
  text-decoration: underline;
}

.contact-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  margin-top: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-icon-link:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.04);
}

.contact-icon-link .icon svg {
  width: 22px;
  height: 22px;
}

/* Footer social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.footer-social a.social-whatsapp:hover {
  background: var(--whatsapp);
}

.footer-social .icon svg {
  width: 18px;
  height: 18px;
}

/* Contact method dialog */
.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 88px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-method-btn:hover {
  border-color: rgba(45, 92, 79, 0.25);
  background: var(--mint);
}

.contact-method-btn.whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
}

.contact-method-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.16);
}

.contact-method-btn .icon svg {
  width: 24px;
  height: 24px;
}

/* Dialogs & forms — touch-friendly sizing */
dialog {
  max-width: min(480px, calc(100vw - 32px));
  padding: clamp(20px, 4vw, 28px);
  border-radius: var(--radius-lg);
}

.field-grid input,
.field-grid select,
.field-grid textarea,
.dialog input,
.dialog textarea,
.dialog select,
.contact-card input,
.contact-card textarea {
  min-height: var(--touch-min);
  font-size: 16px;
}

.button,
.text-button {
  min-height: var(--touch-min);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.profile-actions .whatsapp-profile {
  min-width: var(--touch-min);
  padding-inline: 14px;
}

.profile-actions .whatsapp-profile.icon-only {
  padding-inline: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-actions .whatsapp-profile .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hide legacy text-only float if present */
a.whatsapp-float:not(.support-widget-btn) {
  display: none;
}

/* Team section spacing on contact/about */
.contact-page .team-section {
  margin-top: 0;
  padding-top: var(--space-6);
}

.contact-page .team-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 960px;
  margin-inline: auto;
}

.team-section > h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

@media (max-width: 900px) {
  .contact-channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-support-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-method-grid {
    grid-template-columns: 1fr;
  }
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.profile-loading {
  padding: var(--space-6) 0;
  color: var(--muted);
}

.view[data-view="profile"] .profile-page {
  padding-block: var(--space-5) var(--space-8);
}

.view[data-view="profile"] .profile-back {
  margin-bottom: var(--space-4);
}

@media (max-width: 620px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }

  .support-widget-note {
    font-size: 12px;
    padding: 8px 12px;
  }

  .support-widget-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .form-layout.shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .form-aside {
    padding: 30px 24px 34px;
    overflow: hidden;
  }

  .form-aside h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
  }

  .form-aside > p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .progress-list {
    gap: 18px;
  }

  .progress-list > div {
    min-width: 34px;
  }

  .registration-preview {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .registration-preview-head h3 {
    grid-row: auto;
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .registration-preview-head p,
  .registration-summary-list dd {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .registration-summary-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 0;
  }

  .consent .check {
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
  }

  .results-top {
    align-items: stretch;
    flex-direction: column;
  }

  .results-sort {
    width: 100%;
    flex-basis: auto;
  }
}

/* Modern native selects — unified across SPA and app pages */
:root {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d5c4f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

select,
.field-grid select,
.filter-panel select,
.results-top select,
.page-form select,
.dialog select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: var(--touch-min, 48px);
  padding: 12px 44px 12px 14px;
  border: 1.5px solid #d7e2de;
  border-radius: 12px;
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

select:hover:not(:disabled) {
  border-color: rgba(45, 92, 79, 0.45);
  background-color: #fcfefd;
}

select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 92, 79, 0.14);
}

select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: #f4f8f6;
}

.hero-search select {
  min-height: auto;
  height: auto;
  padding: 0;
  border: 0;
  font-size: 15px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.field-grid label:has(select),
.page-form label:has(select) {
  position: relative;
}

[dir="rtl"] select {
  padding: 12px 14px 12px 44px;
  background-position: left 14px center;
}

/* Login dialog */
.login-dialog {
  width: min(440px, calc(100vw - 32px));
}

.login-dialog .dialog-lead {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dialog-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.dialog-form label > span:first-child {
  color: var(--ink);
}

.dialog-form input {
  width: 100%;
  min-height: var(--touch-min, 48px);
  padding: 12px 14px;
  border: 1.5px solid #d7e2de;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.dialog-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 92, 79, 0.14);
}

.login-dialog .login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  font-size: 14px;
}

.login-dialog .login-row .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  flex-direction: row;
}

.login-dialog .login-row a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.login-dialog .login-row a:hover {
  text-decoration: underline;
}

.login-dialog .dialog-footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.react-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 50, 43, .36);
  backdrop-filter: blur(10px);
}

.react-dialog-backdrop .dialog {
  width: min(460px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(45, 92, 79, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 50, 43, .22);
}

.dialog-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

/* Custom select (shadcn-style) */
.ui-select {
  position: relative;
  width: 100%;
}

.ui-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ui-select-field select[aria-hidden="true"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: var(--touch-min, 48px);
  padding: 12px 14px;
  border: 1.5px solid #d7e2de;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  text-align: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ui-select-trigger:hover:not(:disabled) {
  border-color: rgba(45, 92, 79, 0.45);
  background: #fcfefd;
}

.ui-select-trigger:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 92, 79, 0.14);
}

.ui-select-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f4f8f6;
}

.ui-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d5c4f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.15s ease;
}

.ui-select.open .ui-select-chevron {
  transform: rotate(180deg);
}

.ui-select .ui-select-list {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #d7e2de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 50, 43, 0.14);
}

.ui-select.open .ui-select-list {
  display: block;
}

.ui-select-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  text-align: start;
  cursor: pointer;
}

.ui-select-option:hover:not(:disabled) {
  background: var(--mint);
}

.ui-select-option.is-selected {
  background: rgba(45, 92, 79, 0.1);
  color: var(--green-2);
  font-weight: 600;
}

.ui-select-option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filter-panel .ui-select,
.hero-search .ui-select,
.hero-search .ui-select-field,
.hero-search .hero-select-field {
  width: 100%;
}

.filter-panel fieldset {
  border: none;
  margin: 0 0 18px;
  padding: 0;
}

.filter-panel legend {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Registration + forms */
.required-mark {
  color: var(--coral);
  text-decoration: none;
  font-weight: 700;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Featured experts — horizontal scroll, full bleed */
.featured-section {
  padding-inline: 0;
  overflow: hidden;
}

.featured-scroll-wrap {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.featured-scroll {
  display: flex;
  align-items: stretch;
  gap: 24px;
  direction: ltr;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px max(20px, calc((100vw - 1180px) / 2)) 16px;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.featured-scroll.is-dragging {
  cursor: grabbing;
}

.featured-scroll img {
  -webkit-user-drag: none;
  user-select: none;
}

.featured-scroll .care-card {
  flex: 0 0 clamp(280px, 29vw, 350px);
  width: clamp(280px, 29vw, 350px);
  scroll-snap-align: start;
}

html[dir="rtl"] .featured-scroll .care-card,
html[dir="rtl"] .featured-scroll .featured-empty {
  direction: rtl;
}

.featured-empty {
  margin: 0;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
}

/* Card photo placeholder when no upload */
.care-card-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--mint) 0%, #dfece7 100%);
  display: block;
}

.care-card-image .care-card-photo,
.care-card-image .care-card-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Searchable language dropdown */
.searchable-select-control {
  position: relative;
}

.searchable-select-trigger {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.searchable-select-panel {
  z-index: 60;
  width: min(360px, var(--radix-popover-trigger-width, 320px));
  min-width: var(--radix-popover-trigger-width, 280px);
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.searchable-select-panel input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.searchable-select-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.searchable-select-options button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
}

.searchable-select-options button.selected,
.searchable-select-options button:hover {
  background: var(--mint);
}

.searchable-select-empty {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Login register link */
.page-card .dialog-footer {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.page-card .dialog-footer .text-button {
  color: var(--green);
  font-weight: 600;
}

/* Header nav alignment */
.main-nav {
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: clamp(16px, 2.5vw, 32px);
  min-width: 0;
  margin-left: auto;
}

@media (min-width: 901px) {
  .main-nav {
    display: flex !important;
  }

  .menu-button,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

.filter-close-mobile,
.mobile-nav-backdrop,
.mobile-filter-backdrop {
  display: none;
}

.main-nav-links,
.main-nav-actions,
.main-nav-auth {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}

.main-nav-links {
  margin-right: 0;
}

.main-nav-actions {
  flex-shrink: 0;
}

.main-nav-auth {
  gap: 12px;
}

.main-nav a,
.main-nav .text-button,
.main-nav .button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Radix select / popover portals */
.ui-select-content {
  z-index: 60;
  overflow: hidden;
  border: 1px solid #d7e2de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 50, 43, 0.14);
}

.ui-select-content .ui-select-list,
.searchable-select-panel .searchable-select-options {
  display: block;
  position: static;
  max-height: 280px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  margin: 0;
  padding: 6px;
  border: 0;
  box-shadow: none;
  list-style: none;
}

.ui-select-option[data-state="checked"],
.ui-select-option.is-selected {
  background: rgba(45, 92, 79, 0.1);
  color: var(--green-2);
  font-weight: 600;
}

.ui-select-option[data-highlighted] {
  background: var(--mint);
  outline: none;
}

.ui-select-field {
  display: block;
}

.searchable-select-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 16px;
}

.searchable-select-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.searchable-select-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mint);
  font-size: 13px;
}

.filter-toggle {
  display: none;
}

.filter-apply-mobile {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --site-header-height: 70px;
  }

  .site-header {
    z-index: 40;
    overflow: visible;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 33;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    margin-left: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
  }

  .menu-button span + span {
    margin-top: 5px;
  }

  .main-nav:not(.open) {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }

  .main-nav.open {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    z-index: 32;
    margin-left: 0;
    padding: 16px var(--page-gutter) 20px;
    background: #fff;
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--site-header-height);
    z-index: 31;
    border: 0;
    padding: 0;
    background: rgba(23, 50, 43, 0.45);
    cursor: pointer;
  }

  .filter-panel {
    display: none;
    position: fixed;
    inset: auto 12px 12px;
    top: 84px;
    z-index: 26;
    max-height: calc(100dvh - 96px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }

  .filter-panel.open {
    display: block;
  }

  .mobile-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--site-header-height, 70px);
    z-index: 25;
    border: 0;
    padding: 0;
    background: rgba(23, 50, 43, 0.45);
    cursor: pointer;
  }

  .filter-title-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .filter-close-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    margin-bottom: 12px;
  }

  .filter-apply-mobile {
    display: inline-flex;
    margin-top: 8px;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  :root {
    --site-header-height: 68px;
  }
}

.ui-select-content .ui-select-list::-webkit-scrollbar,
.searchable-select-options::-webkit-scrollbar {
  width: 10px;
}

.ui-select-content .ui-select-list::-webkit-scrollbar-track,
.searchable-select-options::-webkit-scrollbar-track {
  background: #f3f7f5;
  border-radius: 999px;
}

.ui-select-content .ui-select-list::-webkit-scrollbar-thumb,
.searchable-select-options::-webkit-scrollbar-thumb {
  background: rgba(45, 92, 79, 0.42);
  border: 2px solid #f3f7f5;
  border-radius: 999px;
}

.ui-select-content .ui-select-list,
.searchable-select-options {
  scrollbar-color: rgba(45, 92, 79, 0.42) #f3f7f5;
  scrollbar-width: thin;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  gap: 6px;
}

.pagination-btn,
.pagination-page {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.pagination-page.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Skeleton loaders */
.care-card-skeleton {
  pointer-events: none;
}

.skeleton-block,
.skeleton-line,
.skeleton-chip,
.skeleton-button,
.profile-skeleton-cover,
.profile-skeleton-avatar,
.profile-skeleton-line,
.profile-skeleton-action,
.profile-skeleton-field {
  background: linear-gradient(90deg, #edf3f0 0%, #f7faf9 50%, #edf3f0 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 10px;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
}

.skeleton-line-lg {
  width: 70%;
  height: 18px;
}

.skeleton-line-md {
  width: 55%;
}

.skeleton-line-sm {
  width: 40%;
}

.skeleton-line-xs {
  width: 30%;
}

.skeleton-line-xxs {
  width: 48px;
  height: 9px;
  margin-bottom: 0;
}

.skeleton-chip-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.skeleton-chip {
  width: 72px;
  height: 24px;
  border-radius: 999px;
}

.skeleton-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.skeleton-card-footer .skeleton-line {
  margin-bottom: 7px;
}

.skeleton-button {
  width: 86px;
  height: 18px;
  border-radius: 999px;
}

.care-card-skeleton:nth-child(2) .skeleton-block,
.care-card-skeleton:nth-child(2) .skeleton-line,
.care-card-skeleton:nth-child(2) .skeleton-chip,
.care-card-skeleton:nth-child(2) .skeleton-button {
  animation-delay: 0.12s;
}

.care-card-skeleton:nth-child(3) .skeleton-block,
.care-card-skeleton:nth-child(3) .skeleton-line,
.care-card-skeleton:nth-child(3) .skeleton-chip,
.care-card-skeleton:nth-child(3) .skeleton-button {
  animation-delay: 0.24s;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.results-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.results-top {
  gap: 16px;
}

.results-sort {
  width: min(220px, 100%);
  flex: 0 0 220px;
}

.results-sort > span:first-child {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

@media (max-width: 620px) {
  .results-top {
    align-items: stretch;
    flex-direction: column;
  }

  .results-sort {
    width: 100%;
    flex-basis: auto;
  }
}

.page-loader {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 36vh, 360px);
  color: var(--ink);
}

.page-loader-card {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(32, 71, 60, 0.08);
}

.page-loader-mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.page-loader-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 2px solid rgba(45, 92, 79, 0.14);
  border-top-color: var(--coral);
  animation: loader-spin 0.9s linear infinite;
}

.page-loader-mark img {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.page-loader-copy strong,
.page-loader-copy span {
  display: block;
}

.page-loader-copy strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.1;
}

.page-loader-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-loader-bar {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mint);
}

.page-loader-bar::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--coral));
  animation: loader-bar 1.2s ease-in-out infinite;
}

@keyframes loader-bar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(250%);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Registration review */
.registration-preview {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px 28px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  align-items: start;
}

.registration-preview-head {
  min-width: 0;
}

.registration-preview-head > span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.registration-preview-head h3 {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.registration-preview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.registration-summary-list {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
}

.registration-summary-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(45, 92, 79, 0.1);
}

.registration-summary-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.registration-summary-list dt,
.registration-summary-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.registration-summary-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.registration-summary-list dd {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

html[dir="rtl"] .registration-summary-list > div {
  text-align: right;
}

.consent .check {
  align-items: flex-start;
  line-height: 1.45;
}

.consent .check input,
.consent .check input#terms-check {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  margin-top: 3px;
}

.consent a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Full-width layout */
.shell {
  width: min(calc(100% - var(--page-gutter) * 2), var(--layout-max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--site-header-height);
  width: 100%;
  padding-inline: var(--page-gutter);
  gap: clamp(24px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 92, 79, 0.1);
}

.main-nav {
  gap: clamp(18px, 2vw, 28px);
  margin-left: auto;
}

.main-nav a,
.main-nav .text-button {
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--touch-min);
  font-size: 1.35rem;
  line-height: 1;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none !important;
}

.footer-logo .logo-mark {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.language-switch button {
  font-size: 0.75rem;
  min-width: 38px;
  padding: 7px 8px;
}

.hero {
  width: min(calc(100% - var(--page-gutter) * 2), var(--layout-max));
  margin-inline: auto;
  padding-inline: 0;
  gap: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  min-height: calc(100svh - var(--site-header-height));
  padding-block: clamp(36px, 6vh, 88px);
  position: relative;
}

.hero-copy {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.5vh, 28px);
}

.hero-visual {
  min-height: clamp(520px, 62vh, 700px);
  display: flex;
  align-items: center;
}

.hero-visual .image-frame {
  width: 100%;
  min-height: clamp(520px, 62vh, 700px);
  height: 100%;
}

.hero-search {
  margin-top: clamp(4px, 1vh, 12px);
  align-items: center;
}

/* Keep site.css cell padding/borders; only tune typography inside fields */
.hero-search .hero-select-field,
.hero-search .ui-select-field {
  min-width: 0;
}

.hero-search .hero-select-field > span:first-child,
.hero-search .ui-select-field > span:first-child {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-search .ui-select-trigger {
  min-height: var(--touch-min);
  height: auto;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.hero-search .ui-select-trigger:hover:not(:disabled),
.hero-search .ui-select-trigger:focus-visible {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.hero-search .ui-select-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}

.hero-search .button.hero-search-submit {
  align-self: center;
  flex-shrink: 0;
  min-width: 0;
  width: auto;
  min-height: 42px;
  margin: 4px 6px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.featured-pagination {
  margin-top: 20px;
  padding-bottom: 8px;
}

.hero-visual .image-frame .hero-main-photo,
.hero-visual .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[dir="rtl"] .hero-search .ui-select-trigger {
  padding: 0 0 0 28px;
}

@media (max-width: 620px) {
  .hero-search .button.hero-search-submit {
    width: calc(100% - 12px);
    margin: 6px;
  }
}

.trust-row {
  margin-top: clamp(8px, 1.5vh, 16px);
}

.featured-section.section {
  padding-top: clamp(24px, 3vw, 40px);
}

.hero h1 {
  font-size: clamp(2.85rem, 5.8vw, 4.35rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-copy > p {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 38rem;
}

@media (min-width: 901px) and (max-height: 940px) {
  .hero {
    gap: clamp(32px, 4vw, 56px);
    padding-block: clamp(18px, 2.6vh, 30px);
  }

  .hero-copy {
    gap: clamp(8px, 1.3vh, 12px);
  }

  .hero h1 {
    font-size: clamp(2.45rem, 4.55vw, 3.7rem);
  }

  .hero-copy > p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-visual,
  .hero-visual .image-frame {
    min-height: clamp(420px, 52vh, 520px);
  }
}

.hero-caregiver-cta {
  font-size: 0.9375rem;
  max-width: 100%;
}

.trust-row--text-only {
  margin-top: 4px;
}

.trust-row--text-only > div:last-child {
  margin-left: 0;
}

.section-heading h2,
.center-heading h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
}

.section-heading p,
.center-heading p {
  font-size: 1.0625rem;
}

.eyebrow,
.kicker {
  font-size: 0.8125rem;
}

.page-main-wide {
  width: min(calc(100% - var(--page-gutter) * 2), var(--layout-max));
  max-width: 100%;
}

.page-main-wide .packages-grid {
  width: 100%;
}

.search-page,
.static-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.search-page .page-hero,
.static-page .page-hero {
  width: min(100%, 860px);
  max-width: none;
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding-block: clamp(32px, 5vw, 56px) clamp(18px, 3vw, 28px);
  text-align: left;
}

.search-page .page-hero h1,
.static-page .page-hero h1 {
  max-width: 820px;
}

.search-page .page-lead,
.static-page .page-lead {
  max-width: 760px;
}

.static-page-content {
  width: 100%;
  max-width: 1180px;
  padding-top: clamp(12px, 2vw, 24px);
}

.static-page-content > p {
  max-width: 1040px;
}

.contact-page .static-page-content {
  max-width: 1180px;
}

.page-hero .back-link {
  display: inline-flex;
  margin-bottom: 12px;
}

.page-hero {
  text-align: left;
}

.form-error-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f1c7c2;
  border-radius: 12px;
  background: #fff1ef;
  color: #a23c35;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
}

.login-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Platform social icons */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.social-links a .icon svg {
  width: 20px;
  height: 20px;
}

.social-links-contact a {
  width: 48px;
  height: 48px;
  background: #fff;
  color: var(--green);
  border: 1px solid rgba(45, 92, 79, 0.14);
  box-shadow: 0 8px 24px rgba(32, 71, 60, 0.08);
}

.social-links-contact a.social-whatsapp {
  color: var(--whatsapp-dark);
}

.social-links-contact a:hover {
  transform: translateY(-2px);
}

.social-links-contact a.social-whatsapp:hover {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}

.social-links-header a.social-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp-dark);
}

.social-links-header a.social-whatsapp:hover {
  background: var(--whatsapp);
  color: #fff;
}

.social-links-header a {
  width: 36px;
  height: 36px;
  background: rgba(45, 92, 79, 0.08);
  color: var(--green);
}

.social-links-header a:hover {
  background: var(--mint);
}

.social-links-footer a,
.footer-social a {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand .footer-social {
  margin-top: 16px;
}

.footer-social a.social-whatsapp:hover {
  background: var(--whatsapp);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-copy {
    max-width: 100%;
  }

  .view[data-view="home"] .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: clamp(40px, 6vh, 64px);
  }

  .hero-visual {
    width: min(100%, 600px);
    min-height: auto;
    margin-inline: auto;
    padding-inline: 16px;
  }

  .hero-visual .image-frame {
    min-height: 420px;
    height: 420px;
  }

  .main-nav.open {
    align-items: stretch;
    gap: 0;
  }

  .main-nav-links,
  .main-nav-actions,
  .main-nav-auth {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .main-nav-links {
    margin-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav-links a {
    padding: 12px 0;
  }

  .main-nav-actions {
    padding-top: 12px;
    gap: 12px;
  }

  .main-nav-auth {
    width: 100%;
    gap: 8px;
  }

  .main-nav-auth .button {
    width: 100%;
    justify-content: center;
  }

  .language-switch {
    align-self: flex-start;
  }

  .contact-support-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links-contact {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Footer cleanup */
#site-footer {
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 22rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  line-height: 1.5;
}

.footer-col a:hover {
  color: #fff;
}

.footer-disabled-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.5;
  cursor: not-allowed;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-email {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-email:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero-visual {
    padding-inline: 0;
  }

  .floating-card.verified {
    left: 8px;
    bottom: 24px;
  }

  .floating-card.match {
    right: 8px;
    top: 72px;
    width: min(150px, 44vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Home services grid */
.services-section {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--mint);
  border-block: 1px solid rgba(45, 92, 79, 0.08);
}

.services-heading {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.services-heading .kicker {
  display: inline-block;
  margin-bottom: 10px;
}

.services-heading h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--ink);
}

.services-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 250px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(45, 92, 79, 0.2), rgba(196, 114, 74, 0.16)),
    var(--mint);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: inherit;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  color: #fff;
  text-align: start;
}

.service-overlay h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.service-overlay p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

/* Full-screen blocking loader (packages / checkout) */
.full-screen-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 50, 43, 0.72);
  backdrop-filter: blur(6px);
}

.full-screen-loader-panel {
  width: min(420px, 100%);
  padding: 36px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.full-screen-loader-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
}

.full-screen-loader-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.full-screen-loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(45, 92, 79, 0.14);
  border-top-color: var(--green);
  border-right-color: var(--coral);
  border-radius: 999px;
  animation: loader-spin 0.95s linear infinite;
}

.full-screen-loader-title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
}

.full-screen-loader-message {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
}

.profile-skeleton {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.profile-skeleton-cover {
  height: 170px;
  border-radius: 0;
}

.profile-skeleton-shell {
  padding: 0 40px 40px;
}

.profile-skeleton-intro {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 150px;
  gap: 25px;
  align-items: end;
  margin-bottom: 34px;
}

.profile-skeleton-avatar {
  width: 140px;
  height: 140px;
  margin-top: -65px;
  border: 6px solid #fff;
  border-radius: 22px;
}

.profile-skeleton-line {
  height: 13px;
  margin-bottom: 12px;
}

.profile-skeleton-line-lg {
  width: min(280px, 80%);
  height: 28px;
}

.profile-skeleton-line-md {
  width: min(220px, 66%);
}

.profile-skeleton-line-full {
  width: 100%;
}

.profile-skeleton-action {
  width: 150px;
  height: 44px;
  border-radius: 12px;
}

.profile-skeleton-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
}

.profile-skeleton-main,
.profile-skeleton-side {
  display: grid;
  gap: 12px;
}

.profile-skeleton-field {
  min-height: 52px;
  border-radius: 12px;
}

.profile-skeleton-compact {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.profile-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.profile-skeleton-grid .wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .profile-skeleton-shell {
    padding: 0 18px 28px;
  }

  .profile-skeleton-intro {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 16px;
  }

  .profile-skeleton-avatar {
    width: 90px;
    height: 90px;
  }

  .profile-skeleton-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-skeleton-content,
  .profile-skeleton-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block,
  .skeleton-line,
  .skeleton-chip,
  .skeleton-button,
  .profile-skeleton-cover,
  .profile-skeleton-avatar,
  .profile-skeleton-line,
  .profile-skeleton-action,
  .profile-skeleton-field,
  .page-loader-mark::before,
  .page-loader-bar::before,
  .full-screen-loader-ring {
    animation: none;
  }
}

.payments-notice {
  border-inline-start: 4px solid var(--coral);
  padding-inline-start: 14px;
}

.profile-detail-link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.profile-detail-link:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Reviews */
.reviews-head h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.reviews-head {
  align-items: flex-start;
}

.reviews-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.review-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8d6f00;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.star-rating-stars {
  display: inline-flex;
  gap: 1px;
  letter-spacing: 0;
}

.star-rating .star {
  color: #d8c7a2;
}

.star-rating .star.is-filled {
  color: var(--gold);
}

.star-rating-value {
  color: var(--ink);
  font-size: 12px;
}

.review-rating-field {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.review-rating-field .ui-select-field > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #294940;
  font-size: 12px;
  font-weight: 700;
}

.dialog textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  margin-top: 7px;
  padding: 12px;
  border: 1.5px solid #d7e2de;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.dialog textarea:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 92, 79, 0.14);
}

.review-rating-preview {
  justify-self: start;
  padding-inline: 2px;
}

.reviews-panel-backdrop {
  justify-items: end;
  padding: 18px;
}

.reviews-panel {
  width: min(620px, 100%);
  height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(45, 92, 79, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(23, 50, 43, 0.24);
}

.reviews-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.reviews-panel-head h2 {
  margin: 5px 0 6px;
  font: 700 30px/1.1 var(--serif);
}

.reviews-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.review-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.review-filter-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
}

.review-filter-tabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.reviews-panel-list {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 28px 28px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  scrollbar-color: rgba(45, 92, 79, 0.42) #f3f7f5;
  scrollbar-width: thin;
}

.reviews-panel-list::-webkit-scrollbar {
  width: 10px;
}

.reviews-panel-list::-webkit-scrollbar-track {
  background: #f3f7f5;
  border-radius: 999px;
}

.reviews-panel-list::-webkit-scrollbar-thumb {
  background: rgba(45, 92, 79, 0.42);
  border: 2px solid #f3f7f5;
  border-radius: 999px;
}

.reviews-panel-list .review {
  background: #fff;
  border: 1px solid var(--line);
}

.reviews-panel-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 760px) {
  .reviews-head {
    display: grid;
  }

  .reviews-actions {
    justify-content: stretch;
  }

  .reviews-actions .button {
    flex: 1 1 150px;
  }

  .reviews-panel-backdrop {
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
  }

  .reviews-panel {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .reviews-panel-head {
    padding: 22px 18px 16px;
  }

  .review-filter-tabs {
    padding-inline: 18px;
  }

  .reviews-panel-list {
    padding: 16px 18px 22px;
  }
}

/* Search cards — service backdrop with avatar portrait */
.care-card-image-avatar {
  position: relative;
  overflow: hidden;
}

.care-card-image-avatar .care-card-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.92);
  transform: scale(1.05);
}

.care-card-image-avatar .care-card-photo-avatar {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  margin: 52px auto 0;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px rgba(23, 50, 43, 0.18);
  background: #fff;
}

html[dir="rtl"] .care-card-image .badge {
  right: auto;
  left: 12px;
}

/* Profile cover — service image */
.profile-shell {
  overflow: hidden;
  padding: 0;
}

.profile-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 31vw, 380px);
  padding: clamp(120px, 16vw, 190px) 40px 30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  isolation: isolate;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 50, 43, 0.08) 0%, rgba(23, 50, 43, 0.42) 52%, rgba(23, 50, 43, 0.78) 100%),
    linear-gradient(90deg, rgba(23, 50, 43, 0.62), rgba(23, 50, 43, 0.18));
}

.profile-hero .profile-intro {
  width: 100%;
  margin: 0;
  align-items: end;
}

.profile-hero .profile-name h1,
.profile-hero .profile-name p,
.profile-hero .verified-dot {
  color: #fff;
}

.profile-hero .profile-name p {
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.profile-hero .profile-avatar {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.88);
}

.profile-hero .edit-profile-btn {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.profile-hero .edit-profile-btn:hover {
  color: #f4c7ad;
}

.profile-hero .profile-actions .button.ghost {
  background: rgba(255, 255, 255, 0.9);
}

.profile-content {
  padding: 34px 40px 40px;
}

.profile-shell > .plan-note {
  margin: 22px 40px 0;
}

@media (max-width: 620px) {
  .profile-hero {
    min-height: 500px;
    padding: 110px 24px 28px;
  }

  .profile-hero .profile-intro {
    justify-items: start;
  }

  .profile-content {
    padding: 28px 18px 30px;
  }

  .profile-shell > .plan-note {
    margin: 18px 18px 0;
  }
}

.profile-name .profile-plan-badge {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  line-height: 1.3;
  min-width: 72px;
  text-align: center;
}

.profile-name .profile-plan-badge.plan-starter {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.profile-name .profile-plan-badge.plan-builder {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
}

.profile-name .profile-plan-badge.plan-premium {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
}

.owner-plan-expiry {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mint);
}

.owner-plan-expiry span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-plan-expiry strong {
  color: var(--ink);
  font-size: 15px;
}

.owner-plan-expiry small {
  color: var(--green);
  font-weight: 700;
  text-align: start;
}

.owner-plan-expiry.expired {
  background: #fff7f2;
  border-color: rgba(196, 114, 74, 0.35);
}

.owner-plan-expiry.expired small {
  color: var(--coral);
}

.contact-card-owner .button + .button {
  margin-top: 10px;
}

.renewal-checkout-note strong {
  color: var(--green);
}

.care-card-image-avatar .badge.badge-neutral {
  background: #fff;
  border: 1px solid var(--line);
}

.contact-card-owner p {
  color: var(--muted);
  line-height: 1.6;
}

.page-form .field-grid .phone-field {
  margin-bottom: 16px;
}

.page-form .field-grid .phone-field.wide {
  grid-column: 1 / -1;
}

.page-form .phone-field .phone-field-row {
  width: 100%;
  min-height: 45px;
  align-items: center;
}

.field-grid .phone-field .phone-country-trigger {
  height: 100%;
  min-height: 45px;
}

.field-grid .phone-field .phone-local-input {
  height: 100%;
  min-height: 45px;
  line-height: 1.4;
}


.phone-field-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-height: 54px;
}

.phone-country-trigger {
  flex: 0 0 auto;
  width: auto;
  min-width: 6.5rem;
  min-height: 52px;
  height: auto;
  border: 0;
  border-inline-end: 1px solid var(--line);
  border-radius: 0;
  background: #fafcfb;
  box-shadow: none;
}

.phone-country-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.phone-country-panel {
  width: min(320px, calc(100vw - 32px));
}

.phone-country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-country-name {
  text-align: start;
}

.phone-country-dial {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.phone-local-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  background: transparent;
  box-shadow: none;
}

.dialog .phone-field-row,
.contact-card .phone-field-row,
.field-grid .phone-field-row {
  margin-top: 7px;
}

.dialog .phone-field .phone-local-input,
.contact-card .phone-field .phone-local-input,
.field-grid .phone-field .phone-local-input {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dialog .phone-field .phone-country-trigger,
.contact-card .phone-field .phone-country-trigger,
.field-grid .phone-field .phone-country-trigger {
  border-top: 0;
  border-bottom: 0;
  border-inline-start: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone-local-input:focus {
  outline: none;
}

.phone-field-row:focus-within {
  border-color: rgba(45, 92, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 92, 79, 0.12);
}

html[dir="rtl"] .services-heading,
html[dir="rtl"] .service-overlay {
  text-align: right;
}

html[dir="rtl"] .phone-field-row {
  direction: rtl;
}

html[dir="rtl"] .phone-country-trigger {
  border-inline-end: 0;
  border-inline-start: 1px solid var(--line);
}

html[dir="rtl"] .phone-country-option {
  flex-direction: row-reverse;
}

html[dir="rtl"] .phone-country-name {
  text-align: right;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    height: 220px;
  }
}

@media (max-width: 620px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 210px;
  }
}

/* About page final layout overrides */
.page-hero.compact .back-link,
.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(45, 92, 79, 0.14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 71, 60, 0.06);
  line-height: 1;
}

.page-hero.compact .kicker,
.page-hero .kicker {
  display: block;
}

.form-aside .back-link.light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.page-hero.about-hero {
  width: min(760px, calc(100% - var(--page-gutter) * 2));
  text-align: center;
}

.page-hero.about-hero .back-link,
.page-hero.about-hero p {
  margin-inline: auto;
}

.content-page.about-page {
  max-width: 1180px;
  padding-top: clamp(20px, 3vw, 40px);
}

.content-page.about-page > p {
  max-width: 1040px;
  margin-inline: auto;
}

.content-page.about-page .team-section {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(36px, 4vw, 52px);
}

.content-page.about-page .team-section-simple {
  border-top: 1px solid var(--line);
}

.content-page.about-page .team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
  margin-inline: auto;
}

.team-card-simple {
  min-height: 0;
  padding: 22px;
}

.team-card-simple .team-header {
  margin-bottom: 0;
}

.team-card-simple .team-contact-row {
  margin-top: 18px;
}

.billing-guidance {
  width: min(100%, 520px);
  margin: 12px auto 0;
  text-align: center;
}

.plan-activation-note {
  min-height: 0;
  margin: -8px 0 14px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .content-page.about-page {
    padding-top: var(--space-5);
  }

  .content-page.about-page .team-grid {
    grid-template-columns: 1fr;
  }
}
