:root {
  --paper: #ffffff;
  --ink: #222222;
  --soft-heading: #d8d8d8;
  --taupe: #a6998a;
  --taupe-dark: #776c60;
  --rule: #ece9e5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: var(--paper);
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 4px;
  background: #1f1f1f;
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 8vw, 6rem);
}

.nav-link {
  position: relative;
  border: 0;
  padding: 27px 4px 22px;
  color: #55504b;
  background: transparent;
  text-decoration: none;
  font-size: 1.05rem;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--taupe-dark);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.active::after { transform: scaleX(1); }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 36px, 1120px);
  margin-inline: auto;
  padding: clamp(3.1rem, 8vh, 6.3rem) 0 2.8rem;
  text-align: center;
  zoom: 0.67;
}

h1 {
  margin: 0;
  color: var(--soft-heading);
  font-size: clamp(2.5rem, 7.4vw, 6.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(3.4rem, 8vw, 6.6rem);
}

.pill-button, .submit-button, .file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.8rem;
  color: #fff;
  background: var(--taupe);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.pill-button { font-size: 0.95rem; }

.pill-button:hover, .submit-button:hover, .file-label:hover { background: var(--taupe-dark); transform: translateY(-1px); }

:focus-visible { outline: 3px solid #1c6e91; outline-offset: 4px; }

.practice-logo {
  width: clamp(106px, 13.4vw, 155px);
  aspect-ratio: 1;
  height: auto;
  margin-top: clamp(3.4rem, 8vw, 6.6rem);
  border-radius: 8px;
  object-fit: cover;
}

.doctors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(2.4rem, 5vw, 4.3rem);
}

.doctor { padding: 0.45rem clamp(0.7rem, 3vw, 2.4rem); }

.doctor + .doctor { border-left: 1px solid #dad5ce; }

.doctor h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.38rem, 2.38vw, 1.75rem);
  font-weight: 400;
}

.doctor p {
  margin: 0;
  color: #77716b;
  font-size: clamp(0.81rem, 1.25vw, 0.98rem);
}

.specialty {
  margin: 2.8rem 0 0;
  color: var(--taupe-dark);
  font-size: clamp(1.25rem, 3vw, 1.81rem);
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.secondary-specialty {
  margin-top: 0.65rem;
  text-transform: none;
}

.site-footer {
  padding: 1.7rem 1rem 2rem;
  color: #746e68;
  text-align: center;
  font-size: 0.89rem;
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.3rem;
  font-style: normal;
}

.site-footer a { text-decoration: none; }

.upload-panel {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(35, 32, 29, 0.52);
}

.upload-panel[hidden] { display: none; }

.upload-card {
  position: relative;
  width: min(100%, 520px);
  border-radius: 18px;
  padding: clamp(1.6rem, 5vw, 2.7rem);
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.upload-card h2 { margin: 0 0 0.6rem; font-size: 1.6rem; font-weight: 400; }

.upload-card > p { color: #6c6761; font-size: 0.78rem; }

.close-button {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  padding: 5px 9px;
  background: transparent;
  color: #5b5650;
  font-size: 1.7rem;
  cursor: pointer;
}

#image-files { position: absolute; width: 1px; height: 1px; opacity: 0; }

.file-label { margin: 1rem 0 0.35rem; }

.file-status { min-height: 1.3rem; }

.submit-button { margin-top: 0.25rem; }

.submit-button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }

.upload-card .upload-note { margin: 1.1rem 0 0; font-size: 0.66rem; }

@media (max-width: 700px) {
  .site-header { min-height: 66px; }
  .nav-link { padding-top: 21px; padding-bottom: 19px; }
  .nav-link::after { bottom: 12px; }
  .hero { padding-top: 3.2rem; }
  .doctors { grid-template-columns: 1fr; max-width: 440px; }
  .doctor { padding: 1.15rem 0; }
  .doctor + .doctor { border-top: 1px solid #dad5ce; border-left: 0; }
  .specialty { margin-top: 1.7rem; }
  .site-footer address { flex-direction: column; }
}

@media (max-width: 430px) {
  .actions { width: 100%; }
  .pill-button { width: min(100%, 270px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* File upload page */
.upload-main {
  width: min(100% - 36px, 900px);
  margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 5rem) 0 4rem;
}

.upload-brand {
  display: block;
  width: 92px;
  margin: 0 auto 3rem;
  border-radius: 10px;
}

.upload-brand img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.upload-heading { text-align: center; }

.upload-heading h1 {
  color: var(--soft-heading);
  font-size: clamp(1.68rem, 4.96vw, 4.56rem);
}

.upload-heading > p:last-child:not(.eyebrow) {
  max-width: 620px;
  margin: 1.15rem auto 0;
  color: #716b65;
  font-size: 0.9rem;
}

.upload-heading .eyebrow {
  margin: 3rem 0 0;
  color: var(--taupe-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(2.4rem, 6vw, 4rem) 0 2rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  border: 1px solid #ddd7d0;
  border-radius: 16px;
  padding: 1.25rem;
  color: var(--ink);
  background: #fff;
  font-family: Verdana, Geneva, sans-serif;
  text-align: left;
  box-shadow: 0 8px 28px rgba(72, 63, 53, 0.07);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-link:hover {
  border-color: var(--taupe);
  box-shadow: 0 12px 34px rgba(72, 63, 53, 0.12);
  transform: translateY(-2px);
}

.quick-link strong, .quick-link small { display: block; }

.quick-link strong { margin-bottom: 0.25rem; font-size: 1rem; }

.quick-link small { color: #77716b; font-size: 0.7rem; line-height: 1.45; }

.quick-icon {
  display: inline-grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--taupe);
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.sharefile-button-image {
  flex: 0 0 76px;
  width: 76px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.upload-icon { font-size: 1.9rem; }

.sharefile-section {
  scroll-margin-top: 1.5rem;
  border: 1px solid #e2ddd7;
  border-radius: 18px;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: #faf9f7;
}

.sharefile-section[hidden] { display: none; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-heading h2 { margin: 0 0 0.22rem; font-size: 1.25rem; font-weight: 400; }

.section-heading p { margin: 0; color: #77716b; font-size: 0.72rem; }

.frame-status { margin: 1rem 0 0.5rem; color: #77716b; font-size: 0.68rem; }

.sharefile-frame {
  display: block;
  width: 100%;
  min-height: 610px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.external-upload { margin: 1rem 0 0; color: #77716b; text-align: center; font-size: 0.7rem; }

.external-upload a { color: var(--taupe-dark); font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .quick-links { grid-template-columns: 1fr; }
  .sharefile-frame { min-height: 700px; }
  .section-heading { align-items: flex-start; }
}
