/* Branch Selection Modals */
.srm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.srm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.srm-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.srm-modal-overlay.active .srm-modal {
  transform: scale(1) translateY(0);
}

.srm-modal-header {
  padding: 24px 24px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.srm-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  text-align: center;
}

.srm-modal-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
  text-align: center;
}

.srm-modal-body {
  padding: 0 24px 24px;
}

.srm-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.srm-modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

/* City Selection */
.srm-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.srm-city-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.srm-city-item:hover {
  border-color: #007cba;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 186, 0.1);
}

.srm-city-item.selected {
  border-color: #007cba;
  background: #e6f3ff;
}

.srm-city-icon {
  font-size: 24px;
  margin-right: 12px;
  color: #007cba;
}

.srm-city-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* Branch Selection */
.srm-branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.srm-branch-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.srm-branch-item:hover {
  border-color: #007cba;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 186, 0.1);
}

.srm-branch-item.selected {
  border-color: #007cba;
  background: #e6f3ff;
}

.srm-branch-info {
  flex: 1;
}

.srm-branch-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.srm-branch-details {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.srm-branch-address {
  display: block;
}

.srm-branch-hours {
  display: block;
  margin-top: 2px;
}

.srm-branch-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 16px;
  flex-shrink: 0;
}

/* Modal Actions */
.srm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.srm-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.srm-btn-primary {
  background: #007cba;
  color: white;
}

.srm-btn-primary:hover {
  background: #005a87;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 186, 0.3);
}

.srm-btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.srm-btn-secondary:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.srm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading State */
.srm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.srm-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007cba;
  border-radius: 50%;
  animation: srm-spin 1s linear infinite;
}

@keyframes srm-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Back Button */
.srm-modal-back {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.srm-modal-back:hover {
  background: #f5f5f5;
  color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .srm-modal {
    width: 95%;
    max-height: 90vh;
  }

  .srm-modal-header {
    padding: 20px 20px 0;
  }

  .srm-modal-body {
    padding: 0 20px 20px;
  }

  .srm-city-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .srm-branch-item {
    flex-direction: column;
    text-align: center;
  }

  .srm-branch-image {
    margin-left: 0;
    margin-top: 12px;
  }

  .srm-modal-actions {
    flex-direction: column;
  }

  .srm-btn {
    width: 100%;
  }
}

/* Animation for modal transitions */
.srm-modal-enter {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

.srm-modal-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: all 0.3s ease;
}

.srm-modal-exit {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.srm-modal-exit-active {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}
