/* Home page - Zocdoc inspired minimal design */

/* Hero Section */
.hero-landing {
  background: #FFF6E8;
  padding: 3rem 0 6rem;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  color: #191919;
  margin: 0 0 3rem;
  max-width: 480px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero Illustration */
.hero-illustration {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 320px;
  pointer-events: none;
  z-index: 1;
}

.illustration-placeholder {
  width: 100%;
  height: 100%;
  background: url('/images/hands.svg') center top / contain no-repeat;
  position: relative;
  overflow: visible;
}


/* Search Form */
.hero-search {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0.875rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  max-width: 100%;
  width: 100%;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0;
  align-items: stretch;
}

.search-field {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
}

.search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
  display: block;
}

.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: #191919;
  outline: none;
  font-family: inherit;
}

.search-field input::placeholder {
  color: #999;
}

.search-field input:focus {
  outline: none;
}

.search-field:not(:last-of-type) {
  border-right: 1px solid #E8E8E8;
}

/* Find Care Button */
.btn-find-care {
  background: #FFD93D;
  border: none;
  border-radius: 6px;
  padding: 1.25rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background 0.2s ease;
  margin: 0.5rem;
  align-self: center;
}

.btn-find-care:hover {
  background: #FFC93D;
}

.btn-find-care svg {
  width: 18px;
  height: 18px;
}

/* Autocomplete */
.autocomplete-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.autocomplete-panel.d-none {
  display: none;
}

.autocomplete-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
  background: #F5F7FB;
  outline: none;
}

.autocomplete-item-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.autocomplete-item-content {
  display: flex;
  flex-direction: column;
}

.autocomplete-item-text {
  font-weight: 600;
  color: #191919;
}

.autocomplete-item-meta {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.autocomplete-empty {
  padding: 0.75rem 1rem;
  color: #777;
  font-size: 0.875rem;
}

/* Insurance Network Section */
.insurance-network {
  background: #FFFFFF;
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: #191919;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0 0 2.5rem;
}

/* Insurance Grid */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.insurance-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.insurance-card:hover {
  border-color: #CCC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.insurance-logo {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.insurance-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.insurance-link {
  color: #191919;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-left: 0;
}

.insurance-link:hover {
  text-decoration: underline;
}

.insurance-link-wrapper {
  display: flex;
  justify-content: center;
}

/* Add Insurance Button */
.btn-add-insurance {
  background: transparent;
  border: 1.5px solid #191919;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-add-insurance:hover {
  background: #191919;
  color: #FFFFFF;
}

/* Specialties Section */
.specialties {
  background: #FFFFFF;
  padding: 4rem 0;
}

.specialties-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #FFF2C5;
  border: 1px solid rgba(242, 202, 88, 0.7);
  border-radius: 24px;
  padding: 1.75rem;
  text-decoration: none;
  color: #1A1A1A;
  min-height: 220px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.1);
}

.card-illustration {
  width: 96px;
  height: 96px;
  border-radius: 32px;
  background: #FFF9E6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: inset 0 -10px 0 rgba(255, 208, 46, 0.2);
}

.specialty-svg {
  width: 64px;
  height: 64px;
}

.specialty-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-top: auto;
}

@media (max-width: 768px) {
  .specialty-card {
    min-height: 190px;
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-landing {
    padding: 3rem 0 4rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hero-illustration {
    width: 500px;
    height: 250px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .search-field {
    border-right: none !important;
    border-bottom: 1px solid #E8E8E8;
    padding: 1rem 1.25rem;
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .btn-find-care {
    width: calc(100% - 1rem);
    margin: 0.5rem;
  }

  .insurance-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .specialty-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
  }

  .specialties {
    padding: 3.5rem 0 4rem;
  }
}

@media (max-width: 575px) {
  .hero-landing {
    padding: 2rem 0 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-illustration {
    width: 350px;
    height: 200px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
  }

  .search-field {
    padding: 1rem 1rem;
  }

  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .specialty-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .specialty-card {
    padding: 1.25rem 1.5rem;
  }

  .specialty-name {
    font-size: 1rem;
  }

  .specialties {
    padding: 3rem 0;
  }

  .specialties-header {
    margin-bottom: 2rem;
  }

  .card-illustration {
    width: 80px;
    height: 80px;
  }
}
