/* ==== POC Section Styles (Aligned with insurerManagementStyles) ==== */

.poc-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-sizing: border-box;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.poc-header {
  margin-bottom: 24px;
}

.poc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.poc-description {
  margin-top: 4px;
  font-size: 14px;
  color: #4b5563;
}

/* Layout for CC/TO sections */
.poc-email-lists {
  display: flex;
  gap: 24px;
}

/* ==== Email List ==== */

.email-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email-list-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 12px;
}

/* Email chips container */
.email-list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 12px;
}

.email-list-empty {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
}

/* Individual chip */
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfdbfe;
  background-color: #eff6ff;
  color: #1e3a8a;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.email-chip:hover {
  background-color: #dbeafe;
}

.email-chip-remove {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  transition: color 0.2s ease;
}

.email-chip-remove:hover {
  color: #dc2626;
}

/* Add email input + button */
.email-add-container {
  display: flex;
  gap: 8px;
}

.email-input {
  flex: 1;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.email-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb33;
}

.email-add-button {
  height: 36px;
  width: 36px;
  background-color: #2563eb;
  border: none;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.email-add-button:hover {
  background-color: #1d4ed8;
}

.email-add-button:active {
  transform: scale(0.96);
}

/* Error message */
.email-error-text {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

/* Input error state */
.input-error {
  border-color: #dc2626 !important;
}

/* ==== RESPONSIVE STYLES ==== */

/* Stack CC/TO sections on medium screens */
@media (max-width: 1024px) {
  .poc-email-lists {
    flex-direction: column;
    gap: 16px;
  }

  .email-list {
    width: 100%;
  }
}

/* Stack input and + button on smaller screens */
@media (max-width: 768px) {
  .email-add-container {
    flex-direction: column;
    align-items: stretch;
  }

  .email-input {
    width: 100%;
  }

  .email-add-button {
    width: 100%;
    height: 36px;
    border-radius: 6px;
  }

  .poc-section {
    padding: 16px;
  }

  .email-input,
  .email-chip {
    font-size: 13px;
  }
}

/* Compact layout for very small phones */
@media (max-width: 480px) {
  .email-chip {
    padding: 4px 8px;
    font-size: 12px;
  }

  .email-input {
    height: 32px;
  }

  .email-add-button {
    height: 32px;
  }

  .poc-section {
    padding: 12px;
  }
}
