:root {
  --polish-ease: cubic-bezier(.2, .72, .26, 1);
  --polish-shadow: 0 10px 24px rgb(40 56 42 / 13%);
}

.site-header { box-shadow: 0 2px 12px rgb(40 56 42 / 5%); }

.button,
.confirmation-return,
.consult-form-card button {
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 220ms var(--polish-ease);
}

.button:active,
.confirmation-return:active,
.consult-form-card button:enabled:active { box-shadow: inset 0 2px 5px rgb(0 0 0 / 15%); }

.button svg,
.text-link svg { flex: none; }

.program-image,
.photo-button,
.consult-form-card { box-shadow: 0 3px 12px rgb(40 56 42 / 9%); }

.review-card { box-shadow: 0 4px 16px rgb(40 56 42 / 8%); }
.review-stars { color: #986414; }

.program-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid #dce4d7;
  border-radius: 50%;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.faq-list summary { transition: color 180ms ease; }
.faq-list summary:hover,
.faq-list summary[aria-expanded="true"] { color: #465e43; }

.faq-list summary svg {
  padding: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e3ebdf;
  color: #364b35;
}

.consult-form-card {
  border: 1px solid #e0e7dc;
  border-top: 3px solid #679267;
  box-shadow: var(--polish-shadow);
}

.consult-form-card input,
.consult-form-card select,
.consult-form-card textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.consult-form-card :is(input, select, textarea):focus {
  border-color: #495749;
  box-shadow: 0 0 0 4px rgb(103 146 103 / 14%);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-pending:not(:focus-within) { opacity: 0; }
  .reveal-enter:not(:focus-within) { animation: caspian-reveal 850ms var(--polish-ease) both; }

  @keyframes caspian-reveal {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }


  .button svg,
  .text-link svg { transition: transform 200ms var(--polish-ease); }

  .program-image img,
  .photo-button img { transition: transform 340ms var(--polish-ease); }

  .consultation-confirmed .confirmation-icon {
    animation: confirmation-settle 340ms var(--polish-ease) both;
  }

  @keyframes confirmation-settle {
    from { transform: scale(.85); opacity: .6; }
    to { transform: scale(1); opacity: 1; }
  }

  @media (hover: hover) and (pointer: fine) {
    .button:hover svg,
    .text-link:hover svg { transform: translateX(3px); }

    .program-image:hover img,
    .photo-button:hover img { transform: scale(1.025); }
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .confirmation-return:hover,
  .consult-form-card button:enabled:hover { box-shadow: var(--polish-shadow); }
}

@media (prefers-reduced-motion: reduce) {
  .button, .confirmation-return, .consult-form-card button,
  .faq-list summary, .consult-form-card :is(input, select, textarea) {
    transition: none;
  }
}
