/* ============================================
   CONTACT MODAL STYLES
   ============================================ */

/* Contact Details Modal */
#contactDetailsModal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#contactDetailsModal .modal-header {
  padding: 1.25rem 1.5rem 0;
}

#contactDetailsModal .modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Property info mini card */
.property-info-mini {
  border-left: 4px solid #d9232a;
}

.property-info-mini h6 {
  font-weight: 600;
  color: #333;
}

/* Contact person card */
.contact-person-card {
  padding: 1.25rem;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
}

/* Phone link styling */
.phone-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: #d9232a;
  text-decoration: underline;
}

/* Email link styling */
.email-link {
  color: #0d6efd;
  text-decoration: none;
}

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

/* Copy button */
.copy-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 4px;
}

.copy-btn:hover {
  background-color: #e9ecef;
}

/* Action buttons */
.contact-actions .btn {
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.contact-actions .btn-success {
  background-color: #25d366;
  border-color: #25d366;
}

.contact-actions .btn-success:hover {
  background-color: #1da851;
  border-color: #1da851;
}

/* Rating section */
.contact-rating {
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
}

/* Badge styling */
#contactTypeBadge {
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
}

#contactVerifiedBadge,
#contactFeaturedBadge {
  font-size: 0.7rem;
  padding: 0.35em 0.7em;
}

/* Lead created message */
#leadCreatedMessage {
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Loading state */
#contactLoading {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Error state */
#contactError {
  border-radius: 8px;
}

/* ============================================
   PROPERTY CARD CONTACT BUTTONS
   ============================================ */

.view-number-btn,
.contact-btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-number-btn {
  border: 1px solid #d9232a;
  color: #d9232a;
  background: transparent;
}

.view-number-btn:hover {
  background: #d9232a;
  color: white;
  border-color: #d9232a;
}

.contact-btn {
  background: #d9232a;
  border-color: #d9232a;
  color: white;
}

.contact-btn:hover {
  background: #b91c22;
  border-color: #b91c22;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 576px) {
  #contactDetailsModal .modal-dialog {
    margin: 0.5rem;
  }

  .contact-person-card {
    padding: 1rem;
  }

  .contact-actions .btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
  }

  #contactPhonePrimary .phone-link {
    font-size: 1.1rem !important;
  }

  .property-info-mini {
    padding: 0.75rem !important;
  }
}

/* ============================================
   PROPERTY DETAIL PAGE CONTACT SECTION
   ============================================ */

.contact-sidebar {
  position: sticky;
  top: 100px;
}

.contact-sidebar .contact-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.contact-sidebar .dealer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-sidebar .dealer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #999;
}

.contact-sidebar .dealer-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-sidebar .dealer-badge {
  font-size: 0.75rem;
  padding: 0.25em 0.6em;
}

.contact-sidebar .contact-actions {
  margin-top: 1.25rem;
}

.contact-sidebar .contact-actions .btn {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.contact-sidebar .contact-actions .btn:last-child {
  margin-bottom: 0;
}

/* Already contacted indicator */
.already-contacted-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
}

.already-contacted-badge i {
  margin-right: 0.5rem;
}
