.doccheck-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  animation: slideIn 0.3s ease-in-out;
  /* Remove fixed max-width/max-height to let it size to content */
  width: auto;
  height: auto;
  display: inline-block;
}

.doccheck-header {
  padding: 15px 20px 10px 20px; /* Reduced padding */
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.doccheck-header h3 {
  margin: 0 0 8px 0; /* Reduced margin */
  color: #333;
  font-size: 1.2em; /* Slightly smaller */
}

.doccheck-header p {
  margin: 0;
  color: #666;
  font-size: 0.85em; /* Slightly smaller */
}

.doccheck-iframe-container {
  padding: 0; /* Remove padding to fit iframe exactly */
  display: flex;
  justify-content: center;
  align-items: center;
}

#dc_login_iframe {
  border: none;
  border-radius: 0 0 12px 12px; /* Only round bottom corners */
  display: block;
  /* Let iframe determine the size */
}

/* Make the modal overlay center the content properly */
.doccheck-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
  padding: 20px; /* Add some padding for mobile */
  box-sizing: border-box;
}