/* ===================================
   SECTION 6 — WHO IS PRIVADENT
   Intro and the three values as a vertical list on the left; the adviser card (dark petrol) and the
   site-standard contact form (global/partials/contact) on the right (home/about-privadent.ejs).
   =================================== */

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: start;
}
.home-about__intro {
  margin: 0 0 20px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tp-ink-2);
}
.home-about__intro strong {
  color: var(--tp-ink);
  font-weight: 800;
}
.home-values {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  max-width: 680px;
}
.home-value {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    'ico title'
    'ico text';
  column-gap: 14px;
  row-gap: 3px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r-md);
  background: var(--tp-paper);
  box-shadow: var(--tp-shadow);
}
.home-value__icon {
  grid-area: ico;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tp-mint), #f3faf8);
  color: var(--tp-accent);
  box-shadow: inset 0 0 0 1px rgba(14, 131, 119, 0.16);
}
.home-value__icon svg {
  width: 24px;
  height: 24px;
}
.home-value b {
  grid-area: title;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.home-value > span:not(.home-value__icon) {
  grid-area: text;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tp-ink-2);
}
.home-about__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14.5px;
}
.home-about__aside {
  display: grid;
  gap: 16px;
}

/* --- The adviser card --- */
.home-person {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--tp-r-lg);
  background: var(--tp-stage);
  color: #fff;
}
.home-person__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-person__head img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
}
.home-person__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.home-person__role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.home-person__quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.home-person__phone {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tp-r-sm);
  background: rgba(255, 255, 255, 0.08);
}
.home-person__phone-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-accent-bright);
}
.home-person__phone a {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
}
.home-person__phone-hint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* --- The contact form --- */
.home-form {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r-lg);
  background: var(--tp-paper);
  box-shadow: var(--tp-shadow);
}
.home-page .home-form__title {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--tp-ink);
}
.home-form__sub {
  margin: -4px 0 4px;
  font-size: 13px;
  color: var(--tp-ink-2);
}
/* The site-standard contact partial (global/partials/contact, contact.css) inside the homepage frame,
   restyled as the approved compact variant: the frame above provides border, radius and shadow; the
   label stands above the field (the partial renders it after the input — order:-1 moves it without a
   markup change), every field carries a leading icon chosen by its data-icon attribute, the error is a
   tinted chip under the field whose slot is reserved so nothing moves, the submit is the homepage pill.
   The danger and focus-ring colours exist only here; the token set has none. Homepage-scoped only —
   contact.css stays. */
.home-form {
  --tp-danger: #b4433a;
  --tp-danger-soft: #fbefed;
  --tp-focus-ring: rgba(14, 131, 119, 0.22);
}
.home-page .home-form .contact-form-container {
  max-width: none;
  margin: 0;
}
.home-page .home-form .contact-form-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .home-form .contact-form-main {
  display: block;
  margin: 0;
}
.home-page .home-form .contact-form-content {
  padding: 6px 0 0;
}
.home-page .home-form .contact-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-page .home-form .contact-input-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.home-page .home-form .contact-input-field .contact-label {
  order: -1;
  position: static;
  padding: 0;
  pointer-events: auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tp-ink);
  background: transparent;
  transform: none;
}
.home-page .home-form .contact-input-field-error .contact-label {
  color: var(--tp-danger);
}
.home-page .home-form .contact-input-line {
  display: none;
}
.home-page .home-form .contact-input {
  width: 100%;
  margin: 0;
  padding: 11px 14px 11px 42px;
  border: 1px solid rgba(37, 39, 33, 0.2);
  border-radius: 10px;
  background: var(--tp-paper);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tp-ink);
  outline: none;
  box-shadow: none;
  transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-page .home-form .contact-input::placeholder {
  color: var(--tp-ink-3);
}
.home-page .home-form .contact-textarea {
  min-height: 104px;
  padding-top: 11px;
  resize: vertical;
}
.home-page .home-form .contact-input:hover:not(:focus) {
  border-color: rgba(37, 39, 33, 0.38);
  background: var(--tp-paper);
  box-shadow: none;
}
.home-page .home-form .contact-input:focus,
.home-page .home-form .contact-input-field-focused .contact-input {
  border-color: var(--tp-accent);
  background: var(--tp-paper);
  box-shadow: 0 0 0 3px var(--tp-focus-ring);
  transform: none;
}
.home-page .home-form .contact-input-field-error .contact-input {
  border-color: var(--tp-danger);
  background: var(--tp-paper);
  box-shadow: none;
}

/* Leading icon per field: label line (17px) + gap (6px) + about half the field height. */
.home-page .home-form .contact-input-field::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 37px;
  width: 18px;
  height: 18px;
  background: var(--tp-grey-ink);
  pointer-events: none;
  transition: background-color 0.15s ease;
}
.home-page .home-form .contact-input-field[data-icon='person']::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-page .home-form .contact-input-field[data-icon='mail']::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-page .home-form .contact-input-field[data-icon='message']::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-page .home-form .contact-input-field:focus-within::before,
.home-page .home-form .contact-input-field-focused::before {
  background: var(--tp-accent);
}
.home-page .home-form .contact-input-field-error::before {
  background: var(--tp-danger);
}

/* Error chip: static flow with an icon, slot height reserved so the fields never move. */
.home-page .home-form .contact-error-message {
  position: static;
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: 6px;
  min-height: 24px;
  margin: 0;
  padding: 3px 10px 3px 8px;
  border-radius: 8px;
  background: var(--tp-danger-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tp-danger);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.home-page .home-form .contact-error-message::before {
  content: '';
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2V7zm0 9h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2V7zm0 9h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-page .home-form .contact-input-field-error .contact-error-message {
  visibility: visible;
  opacity: 1;
}

/* Actions and the submit pill. */
.home-page .home-form .contact-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  background: transparent;
  border: 0;
}
.home-page .home-form .contact-loading-spinner {
  display: none;
}
.home-page .home-form .contact-submit-btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--tp-accent);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: none;
  transition: background-color 0.15s ease;
}
.home-page .home-form .contact-submit-btn:hover:not(:disabled) {
  background: var(--tp-accent-hover);
  transform: none;
  box-shadow: none;
}
.home-page .home-form .contact-submit-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tp-paper), 0 0 0 6px var(--tp-focus-ring);
}
.home-page .home-form .contact-submit-btn:disabled {
  background: var(--tp-grey-ink);
}

/* Success and failure states in the homepage look instead of the partial's Bootstrap boxes. */
.home-page .home-form .contact-success-message,
.home-page .home-form .contact-error-state {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 6px 0 0;
  padding: 18px;
  border: 1px solid rgba(14, 131, 119, 0.22);
  border-radius: var(--tp-r-md);
  background: var(--tp-mint);
  color: var(--tp-ink);
  text-align: left;
}
.home-page .home-form .contact-error-state {
  border-color: rgba(180, 67, 58, 0.3);
  background: var(--tp-danger-soft);
}
.home-page .home-form .contact-message-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tp-accent);
  color: #fff;
}
.home-page .home-form .contact-error-state .contact-message-icon {
  background: var(--tp-danger);
}
.home-page .home-form .contact-message-icon .material-icons {
  font-size: 24px;
  color: #fff;
}
.home-page .home-form .contact-message-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tp-ink-2);
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-form .contact-input,
  .home-page .home-form .contact-error-message,
  .home-page .home-form .contact-submit-btn,
  .home-page .home-form .contact-input-field::before {
    transition: none;
  }
}

@media (max-width: 980px) {
  .home-about {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 820px) {
  .home-about {
    grid-template-columns: 1fr;
  }
  .home-values {
    max-width: none;
  }
}
