/* Modal background */
.modal-backdrop.show { opacity: .55; }

/* Modal size */
.ac-ai .modal-dialog { padding: 10px; }
.ac-ai .modal-lg { max-width: 860px; }

/* Main modal box */
.ac-ai__modal{
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.30);
}

/* Modal header */
.ac-ai__header{
  background: #ffffff;
  border-bottom: 1px solid #e9eef6;
  padding: 16px 18px;
}

/* Header content layout */
.ac-ai__titleWrap{
  display:flex;
  align-items:center;
  gap:12px;
}

/* AI icon box */
.ac-ai__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: #fff3ea;
  border: 1px solid rgba(255,122,24,.25);
  font-size: 20px;
}

/* Modal title */
.ac-ai__title{
  margin: 0;
  font-weight: 900;
  font-size: 18px;
  color: #0f172a;
}

/* Modal subtitle */
.ac-ai__subtitle{
  margin-top: 2px;
  font-size: 13px;
  color: #64748b;
}

/* Close button */
.ac-ai__close{ opacity:.6; }
.ac-ai__close:hover{ opacity:.9; }

/* Modal body */
.ac-ai__body{
  padding: 16px 18px 18px;
}

/* Field label */
.ac-ai__label{
  font-weight: 800;
  font-size: 14px;
  color:#0f172a;
  margin-bottom: 8px;
}

/* Problem textarea */
.ac-ai__textarea{
  border-radius: 14px;
  border: 1px solid #dfe7f3;
  background: #fbfdff;
  padding: 12px 12px;
  min-height: 115px;
  color: #0f172a;
  resize: none;
}

.ac-ai__textarea::placeholder{ color:#94a3b8; }

.ac-ai__textarea:focus{
  background:#fff;
  border-color: rgba(255,122,24,.65);
  box-shadow: 0 0 0 .25rem rgba(255,122,24,.12);
}

/* Small helper text */
.ac-ai__hint{
  margin-top: 8px;
  font-size: 12.5px;
  color: #64748b;
}

/* Analyze button */
.ac-ai__btn{
  margin-top: 12px;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 900;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #ff7a18 0%, #ff9a3d 55%, #ffb55a 100%);
  border: 0;
  color: #ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow: 0 14px 30px rgba(255,122,24,.25);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.ac-ai__btn:hover{
  filter: brightness(.98);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(255,122,24,.30);
}

.ac-ai__btn:active{ transform: translateY(0); }
.ac-ai__btn:disabled{ opacity:.75; cursor:not-allowed; }

/* Result section */
.ac-ai__result{
  margin-top: 14px;
  display:grid;
  gap: 12px;
}

/* Result badges */
.ac-ai__badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

/* Badge style */
.ac-ai__chip{
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1;
  border: 1px solid #e7edf5;
  background: #f6f9fd;
  color: #0f172a;
}

/* Orange badge */
.ac-ai__chip--orange{
  background: #fff3ea;
  border-color: rgba(255,122,24,.25);
}

/* Blue badge */
.ac-ai__chip--blue{
  background: #eaf2ff;
  border-color: rgba(59,130,246,.20);
}

/* Dark badge */
.ac-ai__chip--dark{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* Result cards */
.ac-ai__card{
  border-radius: 16px;
  border: 1px solid #e6edf7;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

/* Card title */
.ac-ai__cardTitle{
  font-weight: 900;
  color:#0f172a;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Technician summary text */
.ac-ai__summary{
  color:#334155;
  line-height: 1.55;
  font-size: 14px;
}

/* Follow-up questions list */
.ac-ai__questions{
  padding-left: 18px;
  margin: 0;
  color:#334155;
}

.ac-ai__questions li{ margin-bottom: 6px; }

/* Mobile style */
@media (max-width: 576px){
  .ac-ai__subtitle{ display:none; }
  .ac-ai__body{ padding: 14px; }
}