/* SalutApp public contact page and reusable contact form. */
.sp-page-hero--contact {
  padding-bottom: 2.5rem;
}

.sp-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.sp-contact-hero__copy {
  max-width: 820px;
}

.sp-contact-hero__copy h1 {
  max-width: 780px;
}

.sp-contact-hero__copy p {
  max-width: 720px;
}

.sp-contact-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.sp-contact-hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(79, 110, 168, 0.18);
  border-radius: 999px;
  background: rgba(245, 248, 255, 0.86);
  color: #4f5f7b;
  font-weight: 700;
  font-size: 0.92rem;
}

.sp-contact-hero__badges i {
  color: #4f6ea8;
}

.sp-contact-hero__panel,
.sp-contact-card {
  border: 1px solid rgba(79, 110, 168, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 54px rgba(31, 42, 68, 0.08);
}

.sp-contact-hero__panel {
  align-self: center;
  border-radius: 30px;
  padding: 1.65rem;
}

.sp-contact-hero__panel > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  background: #eef4ff;
  color: #4f6ea8;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.sp-contact-hero__panel h2,
.sp-contact-card h2 {
  margin: 0 0 0.65rem;
  color: #14213d;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.sp-contact-hero__panel p,
.sp-contact-card p {
  color: #61708d;
  line-height: 1.7;
}

.sp-section--contact-form {
  padding-top: 1rem;
}

.sp-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.sp-contact-card {
  border-radius: 32px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.sp-contact-card--form {
  background:
    radial-gradient(circle at top right, rgba(207, 224, 255, 0.32), transparent 34rem),
    rgba(255, 255, 255, 0.92);
}

.sp-contact-card__header {
  margin-bottom: 1.35rem;
}

.sp-contact-card__header p {
  max-width: 720px;
  margin-bottom: 0;
}

.sp-contact-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 7rem;
}

.sp-contact-steps {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.sp-contact-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.sp-contact-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #4f6ea8;
  font-weight: 850;
}

.sp-contact-steps p {
  margin: 0;
}

.sp-contact-card--privacy > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: #f3fbf8;
  color: #377a67;
  font-size: 1.18rem;
  margin-bottom: 0.85rem;
}

.sp-contact-card--privacy a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  color: #4f6ea8;
  text-decoration: none;
}

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

.sp-contact-form {
  display: block;
}

.sp-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sp-contact-form--compact .sp-contact-form__grid {
  grid-template-columns: 1fr;
}

.sp-contact-field--full {
  grid-column: 1 / -1;
}

.sp-contact-field .form-label {
  color: #24324f;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.sp-contact-optional {
  color: #71809d;
  font-weight: 650;
  font-size: 0.82em;
}

.sp-contact-field .form-control,
.sp-contact-field .form-select {
  border-color: rgba(79, 110, 168, 0.24);
  border-radius: 16px;
  color: #1e2a44;
  padding: 0.78rem 0.95rem;
  background-color: rgba(255, 255, 255, 0.96);
}

.sp-contact-field textarea.form-control {
  min-height: 9rem;
  resize: vertical;
}

.sp-contact-form--compact .sp-contact-field textarea.form-control {
  min-height: 7.5rem;
}

.sp-contact-field .form-control:focus,
.sp-contact-field .form-select:focus,
.sp-contact-consent .form-check-input:focus {
  border-color: #4f6ea8;
  box-shadow: 0 0 0 0.22rem rgba(79, 110, 168, 0.14);
}

.sp-contact-field .form-text,
.sp-contact-form__privacy-note {
  color: #6b7893;
  font-size: 0.9rem;
}

.sp-contact-field__error {
  min-height: 1.15rem;
  margin-top: 0.35rem;
  color: #9f3f4e;
  font-size: 0.88rem;
  font-weight: 750;
}

.sp-contact-field.has-error .form-control,
.sp-contact-field.has-error .form-select,
.sp-contact-field.has-error .form-check-input {
  border-color: #b15b65;
}

.sp-contact-consent {
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(79, 110, 168, 0.14);
  border-radius: 18px;
  background: #f8fbff;
}

.sp-contact-consent .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
}

.sp-contact-consent .form-check-label {
  color: #4f5f7b;
  line-height: 1.55;
}

.sp-contact-consent a {
  color: #4f6ea8;
  font-weight: 800;
}

.sp-contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.sp-contact-form__actions .sp-btn {
  min-width: 11rem;
}

.sp-contact-form__privacy-note {
  max-width: 560px;
  margin: 0;
}

.sp-contact-form__status {
  border-radius: 18px;
  margin-bottom: 1rem;
}

.sp-contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sp-contact-modal-footer {
  border-top: 0;
  padding-top: 0;
}

.sp-contact-page-status {
  border-radius: 18px;
}

@media (max-width: 991.98px) {
  .sp-contact-hero,
  .sp-contact-layout {
    grid-template-columns: 1fr;
  }

  .sp-contact-side {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .sp-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .sp-contact-card {
    border-radius: 24px;
  }

  .sp-contact-form__actions {
    align-items: stretch;
  }

  .sp-contact-form__actions .sp-btn {
    width: 100%;
  }
}

/* Privacy policy modal launched from contact forms.
   The policy is rendered directly inside the Bootstrap modal, avoiding nested
   frames, duplicated navigation, and width/scrollbar conflicts. */
.sp-privacy-modal {
  background: #ffffff;
}

.sp-privacy-modal-dialog {
  max-width: min(1120px, calc(100vw - 2rem));
}

.sp-privacy-modal .modal-header {
  flex: 0 0 auto;
}

.sp-privacy-modal .modal-body {
  background: #ffffff;
}

.sp-privacy-modal__body {
  max-height: min(70vh, 720px);
  padding: 0;
  overflow-y: auto;
}

.sp-privacy-modal__content {
  width: 100%;
  max-width: none;
  padding: clamp(1.15rem, 2.6vw, 2rem);
}

.sp-privacy-modal__lead {
  max-width: 76ch;
  margin: 0 0 1rem;
  color: var(--sp-muted, #61708d);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.sp-privacy-modal__notice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(79, 110, 168, 0.16);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--sp-muted, #61708d);
  font-size: 0.95rem;
}

.sp-privacy-modal__section {
  padding: clamp(1rem, 2vw, 1.35rem);
  margin: 0 0 1rem;
  border: 1px solid rgba(79, 110, 168, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.05);
}

.sp-privacy-modal__section h3 {
  margin: 0 0 0.65rem;
  color: var(--sp-ink, #14213d);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.sp-privacy-modal__section p {
  max-width: 86ch;
  margin: 0 0 0.8rem;
  color: var(--sp-muted, #61708d);
  line-height: 1.68;
}

.sp-privacy-modal__section p:last-child {
  margin-bottom: 0;
}

.sp-privacy-modal__list {
  margin-top: 0.85rem;
}

.sp-privacy-modal .modal-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(79, 110, 168, 0.12);
  padding-top: 1rem;
  background: #ffffff;
}

@media (max-width: 575.98px) {
  .sp-privacy-modal__body {
    max-height: 68vh;
  }

  .sp-privacy-modal__content {
    padding: 1rem;
  }

  .sp-privacy-modal__notice {
    align-items: flex-start;
    border-radius: 18px;
  }
}
