/* =============================
   TELUS PWN Solution Form Styling (v2 - matches mockup)
   ============================= */

.pwn-solution-form {
  font-family: "Open Sans", Arial, sans-serif;
  color: #333;
  background-color: #fafafa;
  padding: 1rem 1.25rem 2rem;
}

/* Card container */
.pwn-solution-form .card {
  border-radius: 10px;
  border: 1px solid #e0ddee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 1.5rem;
  background-color: #fff;
}

/* Header */
.pwn-solution-form .card-header {
  background-color: #f6f4fa; /* soft lavender */
  border-bottom: 1px solid #ddd;
  color: #4B286D;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1.25rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Inner headings */
.pwn-solution-form h6 {
  color: #4B286D;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Form labels */
.pwn-solution-form .form-label {
  font-weight: 500;
  color: #444;
  margin-bottom: 0.25rem;
}

/* Input fields */
.pwn-solution-form .form-control {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
}

.pwn-solution-form .form-control:focus {
  border-color: #4B286D;
  box-shadow: 0 0 0 0.15rem rgba(75, 40, 109, 0.25);
}

/* Checkbox + Radio alignment */
.pwn-solution-form .form-check-inline {
  margin-right: 1rem;
  margin-bottom: 0.25rem;
}

/* Toolbar buttons (Export / Save / Submit) */
.pwn-solution-form .toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.pwn-solution-form .btn {
  border-radius: 6px;
  font-weight: 500;
  min-width: 120px;
}

.pwn-solution-form .btn-success,
.pwn-solution-form .btn-primary {
  background-color: #4B286D;
  border-color: #4B286D;
  color: #fff;
}

.pwn-solution-form .btn-success:hover,
.pwn-solution-form .btn-primary:hover {
  background-color: #3d205d;
}

.pwn-solution-form .btn-outline-primary {
  color: #4B286D;
  border-color: #4B286D;
}

.pwn-solution-form .btn-outline-primary:hover {
  background-color: #4B286D;
  color: #fff;
}

/* Alert style */
.pwn-solution-form .alert-light {
  background-color: #f9f9fb;
  border: 1px solid #eee;
  color: #555;
}

/* Site Card */
.pwn-solution-form .card .card-header button {
  text-decoration: none;
  color: #4B286D;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.pwn-solution-form .card .card-header button:hover {
  color: #3d205d;
}

/* Bottom sticky section */
.pwn-solution-form .bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.pwn-solution-form .mandatory {
  color: #c00;
}

/* --- PWN Pill Toggle Buttons (with visible checkbox) --- */
.pwn-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.pwn-pill-group label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d6d2e5;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
  color: #4B286D;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  min-width: 150px;
  text-align: center;
}

.pwn-pill-group label:hover {
  border-color: #4B286D;
  background-color: #f6f3fa;
}

/* Active pill */
.pwn-pill-group label.active {
  background-color: #f2edf8;
  border-color: #4B286D;
  box-shadow: 0 0 0 2px rgba(75, 40, 109, 0.15);
}

/* --- Checkbox Circle --- */
.pwn-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #b6acd3;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background: #fff;
  transition: all 0.2s ease;
}

.pwn-checkbox.checked {
  background-color: #4B286D;
  border-color: #4B286D;
}

.pwn-checkbox.checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
