/* ── MODAL ── shared by all widget variants */

.insurance-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
}

.insurance-modal.is-open {
  display: block;
}

.insurance-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.insurance-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f9f9f9;
  border: none;
  border-radius: 8px;
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media only screen and (max-width: 768px) {
  .insurance-modal__content {
    max-height: 95vh;
    width: 95%;
    max-width: 95%;
  }
}

.insurance-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 3px solid #FFCB05;
  background: #000;
  position: relative;
}

.insurance-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.insurance-modal__shield {
  color: #FFCB05;
  font-size: 28px;
  flex-shrink: 0;
  margin-right: 12px;
}

.insurance-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.insurance-modal__close:hover {
  background: #3a3a3a;
  color: #fff;
}

.insurance-modal__intro {
  padding: 20px 24px;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.insurance-modal__intro p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.insurance-modal__tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  background: #f9f9f9;
  flex-shrink: 0;
  overflow: hidden;
}

.insurance-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px !important;
  border: none !important;
  border-right: 1px solid #d0d0d0 !important;
  background: #f9f9f9;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, sans-serif;
  outline: none !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 -3px 0 0 transparent;
  min-width: 0;
  margin: 0 !important;
  border-radius: 0 !important;
  height: 90px;
}

.insurance-tab:last-child {
  border-right: none !important;
}

.insurance-tab:hover:not(.active) {
  background: #f0f0f0;
  box-shadow: inset 0 -3px 0 0 #FFCB05;
}

.insurance-tab.active {
  background: #FFCB05;
}

.insurance-tab.active::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #000;
  color: #FFCB05;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.tab-name {
  font-size: 14px;
  color: #2c2c2c;
  font-weight: 600;
}

.tab-duration {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.tab-price {
  font-size: 15px;
  color: #000;
  font-weight: 700;
}

.insurance-modal__plan-details {
  overflow-y: auto;
  padding: 24px;
  background: #f9f9f9;
  flex: 1;
}

.plan-detail {
  display: none;
}

.plan-detail.active {
  display: block;
}

.plan-detail h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #2c2c2c;
  font-weight: 600;
}

.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-benefits li {
  font-size: 14px;
  color: #555;
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.5;
}

.plan-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFCB05;
  font-weight: bold;
  font-size: 18px;
}

.insurance-modal__footer {
  padding: 20px 24px;
  border-top: 2px solid #e0e0e0;
  background: #f9f9f9;
}

.insurance-modal__add-button {
  width: 100%;
  padding: 10px 15px;
  background: #ffcb05;
  border: 2px solid #ffcb05;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  font-weight: 700;
  font-family: "Inter-Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s;
}

.insurance-modal__add-button:hover {
  background: #e6b800;
  border: 2px solid #ffcb05;
}
