/* ─────────────────────────────────────────────
   Contact Card
───────────────────────────────────────────── */
.contact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px var(--ctc-shadow, rgba(28,43,58,.09));
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ctc-border, #d4cec8);
}

/* ─────────────────────────────────────────────
   Form layout
───────────────────────────────────────────── */
.contact-form {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .form-field {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-family: var(--ff-body, 'Barlow', sans-serif);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ctc-steel, #1c2b3a);
  margin-bottom: 5px;
}

.required {
  color: var(--ctc-accent, #d94f1e);
}

/* ─────────────────────────────────────────────
   Inputs & Textarea
───────────────────────────────────────────── */
.demoInputBox {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--ff-body, 'Barlow', sans-serif);
  font-size: .95rem;
  border: 1.5px solid var(--ctc-border, #d4cec8);
  border-radius: 6px;
  background: var(--ctc-off-white, #f5f3f0);
  color: var(--ctc-steel, #1c2b3a);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.demoInputBox:focus {
  outline: none;
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.demoInputBox.is-invalid {
  background: #fff8f7;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.demoInputBox.is-invalid:focus {
  background: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.demoInputBox::placeholder {
  color: var(--ctc-mist, #7a9ab0);
}

@media (max-width: 767.98px) {
  .demoInputBox { font-size: 16px; }
}

textarea.demoInputBox {
  min-height: 130px;
  resize: vertical;
}

/* ─────────────────────────────────────────────
   Inline validation messages
───────────────────────────────────────────── */
.info {
  display: block;
  font-family: var(--ff-body, 'Barlow', sans-serif);
  font-size: .78rem;
  color: var(--ctc-accent, #d94f1e);
  margin-top: 4px;
  min-height: 16px;
}

/* ─────────────────────────────────────────────
   Loading spinner
───────────────────────────────────────────── */
.btn-loader {
  display: none;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: spin 1s linear infinite;
}

.spinner circle {
  stroke-dasharray: 90;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0%   { stroke-dasharray: 1,150;  stroke-dashoffset: 0;    }
  50%  { stroke-dasharray: 90,150; stroke-dashoffset: -35;  }
  100% { stroke-dasharray: 90,150; stroke-dashoffset: -124; }
}

/* ─────────────────────────────────────────────
   Success / error feedback bar
───────────────────────────────────────────── */
.form-feedback {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 6px;
  font-family: var(--ff-body, 'Barlow', sans-serif);
  font-size: .88rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  display: block;
  background: #fff8f7;
  color: var(--ctc-accent, #d94f1e);
  border: 1px solid var(--ctc-border, #d4cec8);
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .contact-form { padding: 20px; }
}
