/* Minimal styles to replace bootstrap usage in contact form */

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 10px 0 20px;
}
.table th,
.table td {
  padding: 10px 12px;
  border-top: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
}
.table tr:first-child th,
.table tr:first-child td {
  border-top: 0;
}
.table-striped tbody tr:nth-child(odd) td,
.table-striped tbody tr:nth-child(odd) th {
  background: #fafafa;
}

.btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.btn:hover { background: #ececec; }

.btn-primary {
  background: #0a74da;
  border-color: #0a74da;
  color: #fff;
}
.btn-primary:hover { background: #0867c2; }

.label {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  vertical-align: middle;
}
.label-important { background: #d9534f; }

.alert {
  padding: 8px 12px;
  border-radius: 4px;
  margin: 8px 0;
}
.alert-error {
  background: #fceaea;
  border: 1px solid #f3b7b7;
  color: #a94442;
}

.input-small { width: 110px; }
.input-xlarge { width: 360px; }
.input-xxlarge { width: 520px; }

.input-prepend { display: inline-flex; align-items: center; }
.add-on {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #c8c8c8;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #f5f5f5;
  color: #444;
}
.input-prepend input {
  border: 1px solid #c8c8c8;
  border-radius: 0 4px 4px 0;
  padding: 6px 10px;
  font-size: 14px;
}

input[type="text"], textarea, select {
  padding: 6px 10px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  font-size: 14px;
}
select { max-width: 100%; }

/* Modal (no dependency) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}
.modal-overlay.is-open { display: flex; }

.modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e6e6e6;
}
.modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.modal-body {
  padding: 12px 16px;
}

.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
