/**
 * Dr. Nicole Prommer - Contact Info Overlay Styles
 * =================================================
 * Reuses modal patterns from contact-form.css
 */

/* Overlay */
.contact-info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.contact-info-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-info-overlay.active .contact-info-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Container */
.contact-info-container {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Header */
.contact-info-header {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, #3d3d3d 0%, #2a2a2a 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.contact-info-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.contact-info-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Logo overlap */
.contact-info-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  height: 36px; /* half the logo height */
  background: #fff;
  z-index: 1;
}

.contact-info-logo {
  position: absolute;
  top: -36px; /* pull up into header */
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
  object-fit: contain;
}

/* Content */
.contact-info-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-top: 8px;
  overscroll-behavior: contain;
}

/* Practice name */
.contact-info-practice {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.contact-info-practice .practice-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
}

.contact-info-practice .doctor-name {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* Contact rows */
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.contact-info-row:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #f8f6f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-detail {
  flex: 1;
  min-width: 0;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.contact-info-value a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: #c9a227;
}

.contact-info-sub {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

/* Copy button */
.contact-info-copy {
  background: none;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  align-self: center;
}

.contact-info-copy:hover {
  border-color: #c9a227;
  color: #c9a227;
}

.contact-info-copy.copied {
  background: #c9a227;
  border-color: #c9a227;
  color: #fff;
}

/* Maps link */
.contact-info-maps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #c9a227;
  text-decoration: none;
  margin-top: 4px;
}

.contact-info-maps:hover {
  color: #a8871e;
  text-decoration: underline;
}

/* Book button */
.contact-info-book {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #c9a227 0%, #a8871e 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201,162,39,0.3);
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.contact-info-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}

/* Prevent body scroll */
body.contact-info-open {
  overflow: hidden;
}

/* Responsive - mobile fullscreen */
@media (max-width: 600px) {
  .contact-info-overlay {
    padding: 0;
  }

  .contact-info-container {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .contact-info-header {
    padding: 18px 20px 16px;
  }

  .contact-info-header h2 {
    font-size: 18px;
  }

  .contact-info-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .contact-info-content {
    padding: 20px;
  }
}
