/* ===================================
   ADVOCATE MODAL (SLIDE-UP SHEET)
   Reusable Component CSS
   =================================== */

.advocate-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advocate-modal-backdrop.active {
  opacity: 1;
}

.advocate-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white, #ffffff);
  z-index: 9999;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.advocate-modal.active {
  transform: translateY(0);
}

/* Desktop - Center modal */
@media (min-width: 768px) {
  .advocate-modal {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, 100%);
    border-radius: 16px;
    max-width: 500px;
    max-height: 90vh;
    width: 90%;
  }
  
  .advocate-modal.active {
    transform: translate(-50%, 50%);
  }
}

.advocate-modal-header {
  position: sticky;
  top: 0;
  background: var(--white, #ffffff);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--gray-200, #e5e5e5);
  z-index: 10;
}

.advocate-modal-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--gray-600, #525252);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advocate-modal-close:hover {
  color: var(--black, #000000);
}

.advocate-modal-content {
  padding: 24px;
}

.advocate-modal-profile {
  text-align: center;
  margin-bottom: 32px;
}

.advocate-modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid var(--gray-200, #e5e5e5);
}

.advocate-modal-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.advocate-modal-location {
  font-size: 14px;
  color: var(--gray-600, #525252);
  margin-bottom: 8px;
}

.advocate-modal-rate {
  font-size: 16px;
  font-weight: 600;
  color: var(--black, #000000);
}

.advocate-modal-section {
  margin-bottom: 24px;
}

.advocate-modal-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.advocate-modal-note {
  font-size: 14px;
  color: var(--gray-600, #525252);
  margin-bottom: 16px;
}

.advocate-modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.advocate-modal-action-btn {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-100, #f5f5f5);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700, #404040);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.advocate-modal-action-btn:hover {
  background: var(--gray-200, #e5e5e5);
}

.advocate-modal-action-btn.active {
  background: var(--black, #000000);
  color: var(--white, #ffffff);
}

.advocate-modal-action-btn svg {
  width: 20px;
  height: 20px;
}

.advocate-modal-form-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.advocate-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advocate-modal-input,
.advocate-modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300, #d4d4d4);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.advocate-modal-input:focus,
.advocate-modal-textarea:focus {
  outline: none;
  border-color: var(--black, #000000);
}

.advocate-modal-textarea {
  resize: vertical;
  min-height: 100px;
}

.advocate-modal-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--black, #000000);
  color: var(--white, #ffffff);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.advocate-modal-submit:hover:not(:disabled) {
  background: var(--gray-800, #262626);
}

.advocate-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.advocate-modal-submit .spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.advocate-modal-basic-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advocate-modal-basic-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50, #fafafa);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 12px;
  text-decoration: none;
  color: var(--black, #000000);
  transition: all 0.2s;
}

.advocate-modal-basic-btn:hover {
  background: var(--gray-100, #f5f5f5);
  border-color: var(--gray-300, #d4d4d4);
}

.advocate-modal-basic-btn svg {
  width: 24px;
  height: 24px;
  color: var(--gray-600, #525252);
  flex-shrink: 0;
}

.basic-btn-label {
  font-size: 12px;
  color: var(--gray-600, #525252);
  margin-bottom: 2px;
}

.basic-btn-value {
  font-size: 14px;
  font-weight: 500;
}

.advocate-modal-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200, #e5e5e5);
  text-align: center;
}

.advocate-modal-link {
  color: var(--black, #000000);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.advocate-modal-link:hover {
  opacity: 0.7;
}

/* Service Pills */
.advocate-service-type {
  margin-bottom: 12px;
}

.service-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.service-pill-both {
  background: #dbeafe;
  color: #1e40af;
}

.service-pill-remote {
  background: #e0e7ff;
  color: #4338ca;
}
