/* 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%; }

/* Turnstile status (custom success animation) */
.turnstile-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.4;
}
.turnstile-status.is-success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #065f46;
}
.turnstile-status.is-error {
  background: #fceaea;
  border-color: #f3b7b7;
  color: #a94442;
}

.turnstile-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  flex: 0 0 auto;
  transform: scale(0);
  animation: turnstilePop 0.35s ease-out forwards;
}
.turnstile-check:after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  animation: turnstileDraw 0.25s ease-out 0.2s forwards;
}

.turnstile-msg {
  opacity: 0;
  transform: translateY(2px);
  animation: turnstileFade 0.3s ease-out 0.1s forwards;
}

@keyframes turnstilePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes turnstileDraw {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes turnstileFade {
  0% { opacity: 0; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 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;
}
