* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Zen Maru Gothic", sans-serif;
  background: #f5f5f5;
  padding: 20px 10px;
}

/* Hospital Selector Styles */
.hospital-selector {
  max-width: 900px;
  margin-left: 0;
  background: #fff;
  border-radius: 16px;
  padding-bottom: 30px;
}

.selector-title {
  font-size: 24px;
  font-weight: 700;
  color: #2e5c8a;
  margin-bottom: 8px;
}

.selector-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 35px;
}

.step-container {
  margin-bottom: 30px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #5ba3f5, #3a8be8);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.step-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  width: 100%;
  padding: 18px 50px 18px 20px;
  font-size: 16px;
  border: 2px solid #e8f4ff;
  border-radius: 12px;
  background: #fafcff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-trigger:hover {
  border-color: #5ba3f5;
  background: #f0f7ff;
}

.dropdown-trigger.active {
  border-color: #5ba3f5;
  box-shadow: 0 0 0 4px rgba(91, 163, 245, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-trigger .placeholder {
  color: #888;
  font-family: "zen maru gothic";
}

.dropdown-trigger .selected-text {
  color: #333;
  font-weight: 500;
}

.dropdown-trigger .selected-text .clinic-count-badge {
  background: linear-gradient(135deg, #6edfa6, #4bc88a);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 10px;
  font-weight: 600;
}

.dropdown-arrow {
  color: #5ba3f5;
  font-size: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dropdown-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #5ba3f5;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(91, 163, 245, 0.2);
}

.dropdown-menu.open {
  max-height: 350px;
  opacity: 1;
  overflow-y: auto;
}

.dropdown-search {
  padding: 12px 15px;
  border-bottom: 1px solid #e8f4ff;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.dropdown-search input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e8f4ff;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Noto Serif JP", serif;
  outline: none;
  transition: all 0.3s ease;
}

.dropdown-search input:focus {
  border-color: #5ba3f5;
}

.dropdown-search input::placeholder {
  color: #aaa;
}

.dropdown-options {
  padding: 8px 0;
}

.dropdown-option {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-option:hover {
  background: linear-gradient(90deg, #f0f7ff, #fafcff);
  border-left-color: #5ba3f5;
}

.dropdown-option.selected {
  background: linear-gradient(90deg, #f0fff8, #fafcff);
  border-left-color: #6edfa6;
}

.dropdown-option .prefecture-label {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.dropdown-option .clinic-count-small {
  background: #e8f4ff;
  color: #5ba3f5;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.dropdown-option:hover .clinic-count-small {
  background: #5ba3f5;
  color: #fff;
}

.dropdown-option.selected .clinic-count-small {
  background: #6edfa6;
  color: #fff;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.clinic-cards-container {
  display: grid;
  gap: 15px;
}

.clinic-select-card {
  padding: 20px 25px;
  background: #fafcff;
  border: 2px solid #e8f4ff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.clinic-select-card:hover {
  border-color: #5ba3f5;
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 163, 245, 0.15);
}

.clinic-select-card.selected {
  border-color: #6edfa6;
  background: linear-gradient(135deg, #f0fff8, #e8fff4);
  box-shadow: 0 4px 15px rgba(110, 223, 166, 0.2);
}

.clinic-select-card.selected::after {
  content: "✓";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  background: #6edfa6;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.clinic-select-card h4 {
  color: #3a8be8;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 40px;
}

.clinic-select-card .clinic-location {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.clinic-select-card .clinic-hours {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

.clinic-select-card .clinic-hours-summary {
  display: inline-block;
  background: #e8f4ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #5ba3f5;
  margin-top: 8px;
}

.clinic-select-card .clinic-parking {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

.clinic-select-card .clinic-notes {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  padding: 8px;
  background: #fff8e6;
  border-radius: 4px;
  border-left: 3px solid #ffc107;
}

.selected-confirmation {
  background: linear-gradient(135deg, #fff0f8, #ffe8f2);
  border: 2px solid hotpink;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.confirmation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.confirmation-icon {
  width: 28px;
  height: 28px;
  background: hotpink;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.confirmation-text {
  font-size: 16px;
  font-weight: 700;
  color: #2e5c8a;
}

.selected-clinic-info {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 15px;
}

.selected-clinic-info h4 {
  color: #3a8be8;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.selected-clinic-info p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.selected-clinic-info .clinic-location {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.selected-clinic-info .clinic-hours {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

.selected-clinic-info .clinic-hours-summary {
  display: inline-block;
  background: #e8f4ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #5ba3f5;
  margin-top: 8px;
}

.selected-clinic-info .clinic-parking {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

.selected-clinic-info .clinic-notes {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  padding: 8px;
  background: #fff8e6;
  border-radius: 4px;
  border-left: 3px solid #ffc107;
}

.change-selection-btn {
  background: #5ba3f5;
  border: 2px solid #5ba3f5;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.change-selection-btn:hover {
  background: #5ba3f5;
  color: #fff;
}

@media (max-width: 768px) {
  .hospital-selector {
    border-radius: 12px;
  }

  .selector-title {
    font-size: 20px;
  }

  .selector-subtitle {
    font-size: 13px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .step-text {
    font-size: 16px;
  }

  .prefecture-select {
    padding: 15px 45px 15px 15px;
    font-size: 15px;
  }

  .clinic-select-card {
    padding: 18px 20px;
  }

  .clinic-select-card h4 {
    font-size: 16px;
    padding-right: 35px;
  }

  .clinic-select-card.selected::after {
    width: 24px;
    height: 24px;
    font-size: 12px;
    top: 12px;
    right: 12px;
  }

  .dropdown-trigger {
    padding: 15px 45px 15px 15px;
    font-size: 15px;
  }

  .dropdown-menu.open {
    max-height: 300px;
  }

  .dropdown-option {
    padding: 12px 25px;
  }
}
