/* =========================================================
   Connectribe Form Styles (Proxied Embed)
   ========================================================= */

/* ── Form container ─────────────────────────────────────── */
.ct-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  text-align: center;
}
.ct-form-desc {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
}

/* ── Fields ─────────────────────────────────────────────── */
.ct-field {
  margin-bottom: 18px;
}
.ct-field--full {
  width: 100%;
}
.ct-field--half {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.ct-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.ct-required {
  color: #dc3545;
}

.ct-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #333;
  background: #f8f9fa;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ct-input:focus {
  border-color: #f5c518;
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15);
  background: #fff;
}
.ct-input::placeholder {
  color: #adb5bd;
}
textarea.ct-input {
  resize: vertical;
  min-height: 80px;
}

/* ── Submit button ──────────────────────────────────────── */
.ct-submit-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #0b2545;
  background: #f5c518;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.ct-submit-btn:hover {
  background: #e6b800;
  transform: translateY(-1px);
}
.ct-submit-btn:active {
  transform: translateY(0);
}
.ct-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Success state ──────────────────────────────────────── */
.ct-success {
  text-align: center;
  padding: 40px 20px;
}
.ct-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  line-height: 60px;
  animation: ctSuccessPop 0.4s ease;
}
.ct-success-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

@keyframes ctSuccessPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ── Error banner ───────────────────────────────────────── */
.ct-error {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-align: center;
  animation: ctSlideDown 0.3s ease;
}

@keyframes ctSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading spinner ────────────────────────────────────── */
.ct-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e9ecef;
  border-top-color: #f5c518;
  border-radius: 50%;
  margin: 0 auto;
  animation: ctSpin 0.8s linear infinite;
}

@keyframes ctSpin {
  to { transform: rotate(360deg); }
}
