﻿.back-button-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.back-button-arrow {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 18px;
}

.back-button-text {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.back-button-container:hover .back-button-arrow,
.back-button-container:hover .back-button-text {
    color: #333;
}


/* css for insurance form display step  */

.FormCtn{
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 10px;
}

.FormCtnBorderTransparent {
    border: 2px solid transparent; /* border invisible */
    border-radius: 12px;
    padding: 10px;
}

.divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin: 20px 0;
}

.insurance-card-container {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
  position: relative;
  max-width: 400px;
  margin: 20px auto;
  cursor: pointer;
  transition: all 0.2s ease;
}

.insurance-card-container:hover {
  background: #f0f0f0;
  border-color: var(--color-primary);
}

.delete-button-external {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 10;
}

.delete-button-external:hover {
  background: #ff4444;
  border-color: #ff4444;
}

.delete-button-external .fa {
  font-size: 12px;
  color: #666;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.delete-button-external:hover .fa {
  color: white;
}

.insurance-card-display {
  width: 100%;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.insurance-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Image Modal */
.image-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Close button (X) */
.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.close-modal .fa {
  font-size: 20px;
  color: white;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Modal image */
.modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .modal-image {
    max-width: 95%;
    max-height: 80%;
  }
  
  .close-modal {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }
  
  .close-modal .fa {
    font-size: 18px;
  }

  body {
    overflow-x: hidden;
  }

/* Global fallback: applies to all other select2 containers */
.select2-container {
    max-width: 100vw !important;
    width: 100% !important;
    overflow: hidden !important;
}
  

}

/* Large phones */
@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  /* Scoped: only when inside .FormCtn */
.FormCtn .select2-container {
    max-width: 80vw !important;  /* or whatever clamp you want */
    width: 100% !important;
    overflow: hidden !important;
}

/* Global fallback: applies to all other select2 containers */
.select2-container {
    max-width: 85vw !important;
    width: 100% !important;
    overflow: hidden !important;
}
  
}

