/* Matches the look of the existing call-center scripts. */
:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  color: #222;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  background: #fff;
}

h1 {
  margin: 18px 0;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.meta {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.4;
}

.meta b {
  font-weight: 800;
}

.card {
  margin-top: 10px;
  padding: 14px 18px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
}

.section {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #e0e0e0;
}

.section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.line {
  margin: 4px 0;
  padding: 8px 10px;
  border-radius: 4px;
  line-height: 1.4;
}

.line.agent,
.line.customer {
  font-size: 17px;
  font-weight: 700;
}

.line.agent {
  border-left: 4px solid #1976d2;
  background: #e8f4ff;
}

.line.customer {
  border-left: 4px solid #2e7d32;
  background: #e8f5e9;
}

.label {
  margin-right: 4px;
  font-weight: 900;
}

.question {
  margin: 10px 0;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 6px 0 2px 14px;
  font-size: 16px;
}

.radio-group label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

input[type='radio'],
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1976d2;
}

/* Thumbtack's questions, rendered by form.js, styled as script lines. */
.request-form .question {
  min-width: 0;
  margin: 10px 0;
  padding: 0;
  border: 0;
}

.request-form .question > legend,
.request-form .question > label {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-left: 4px solid #1976d2;
  border-radius: 4px;
  background: #e8f4ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.request-form .question > legend::before,
.request-form .question > label::before {
  content: 'AGENT: ';
  font-weight: 900;
}

.request-form .subprompt {
  margin: 4px 0 0 14px;
  color: #555;
  font-size: 14px;
}

.request-form .question > div {
  margin: 6px 0 2px 14px;
}

.request-form .hint {
  display: block;
  color: #555;
  font-size: 13px;
  font-weight: 400;
}

.request-form .options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.request-form .option {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.request-form input[type='text'],
.request-form input[type='date'],
.request-form select,
.request-form textarea {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}

.request-form textarea {
  min-height: 5rem;
  resize: vertical;
}

.request-form button {
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #f7f7f7;
  font-weight: 800;
  cursor: pointer;
}

.pill-note {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #fff3cd;
  font-size: 12px;
}

.pill-note.error {
  background: #fdecea;
  color: #b3261e;
  font-weight: 700;
}

.spacer {
  height: 6px;
}

.toggle-btn {
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #f7f7f7;
  color: inherit;
  font-weight: 900;
  cursor: pointer;
}

.toggle-btn:active {
  transform: translateY(1px);
}

.field {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}

.update-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fafafa;
}

.update-panel .toggle-btn {
  margin-top: 0;
}

.field-label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.inline-form .field {
  width: 120px;
}

.inline-form .toggle-btn {
  margin-top: 0;
}

.contractor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.contractor.selected {
  border-color: #2e7d32;
  background: #f6fbf6;
}

.contractor .line {
  margin-top: 0;
}

.callback-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pro-stats {
  margin-left: 14px;
  color: #555;
  font-size: 13px;
}

.result-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
}

.result-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
}

.result-box details {
  margin-top: 6px;
}

.result-box summary {
  font-weight: 700;
  cursor: pointer;
}
