/* ===============================
   Tharendell – Form Page Layout
   =============================== */

.th-page--form .th-page-inner {
  max-width: 900px;
  margin: 60px auto 80px;
  padding: 0 20px;
}

/* Form card */
.th-form-card {
  position: relative;
  background: #14100b;
  border-radius: 14px;
  padding: 24px 24px 28px;
  border: 1px solid rgba(244,207,116,0.4);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 18px 35px rgba(0,0,0,0.6);
}

/* Inner dashed border like the Codex card */
.th-form-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px dashed rgba(244,207,116,0.25);
  pointer-events: none;
}

/* Title */
.th-form-header {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.th-form-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  color: var(--th-gold);
  letter-spacing: 1px;
  font-size: 2rem;
}

/* Body wrapper */
.th-form-body {
  position: relative;
  z-index: 1;
  color: #e5d8b0;
  font-size: 1rem;
  line-height: 1.55;
}

/* ===============================
   WPForms elements inside form body
   =============================== */

.th-form-body .wpforms-form {
  color: #f0e4bf;
  font-size: 1rem;
}

/* Labels */
.th-form-body .wpforms-field-label,
.th-form-body .wpforms-required-label {
  color: #f0e4bf;
}

/* Inputs, selects, textareas */
.th-form-body .wpforms-form input[type="text"],
.th-form-body .wpforms-form input[type="email"],
.th-form-body .wpforms-form input[type="url"],
.th-form-body .wpforms-form input[type="number"],
.th-form-body .wpforms-form input[type="tel"],
.th-form-body .wpforms-form input[type="password"],
.th-form-body .wpforms-form select,
.th-form-body .wpforms-form textarea {
  width: 100%;
  background: #14100b;
  border: 1px solid rgba(244,207,116,0.4);
  color: #f0e4bf;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.35);
}

.th-form-body .wpforms-form input::placeholder,
.th-form-body .wpforms-form textarea::placeholder {
  color: #a79b7c;
}

/* Field spacing */
.th-form-body .wpforms-field {
  margin-bottom: 15px;
}

/* Errors */
.th-form-body .wpforms-error {
  color: #ffb3b3;
}

/* Submit button */
/* Submit button – stronger text + nicer hover */
.th-form-body .wpforms-submit {
  background: var(--th-gold);
  border: none;
  color: #1a1205;            /* darker text */
  padding: 10px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.th-form-body .wpforms-submit:hover {
  background: #ffe7a8;
  box-shadow: 0 0 12px rgba(244,207,116,0.6);
  transform: translateY(-1px);
}


.th-form-body .wpforms-submit:hover {
  background: #ffe7a8;
  transform: translateY(-1px);
}

/* Make all WPForms text readable on dark background */
.th-form-body,
.th-form-body .wpforms-form,
.th-form-body .wpforms-field,
.th-form-body .wpforms-field-label,
.th-form-body .wpforms-field-label-inline,
.th-form-body .wpforms-field-description,
.th-form-body .wpforms-field-html,
.th-form-body .wpforms-required-label,
.th-form-body .wpforms-form label {
  color: #f7e7b0 !important;  /* warm gold-ish text */
  font-size: 0.98rem;
}

/* Inputs, textareas, etc – strong override */
.th-form-body .wpforms-form input[type="text"],
.th-form-body .wpforms-form input[type="email"],
.th-form-body .wpforms-form input[type="url"],
.th-form-body .wpforms-form input[type="number"],
.th-form-body .wpforms-form input[type="tel"],
.th-form-body .wpforms-form input[type="password"],
.th-form-body .wpforms-form input[type="search"],
.th-form-body .wpforms-form input[type="date"],
.th-form-body .wpforms-form input[type="time"],
.th-form-body .wpforms-form select,
.th-form-body .wpforms-form textarea {
  width: 100%;
  background: #14100b !important;
  border: 1px solid rgba(244,207,116,0.7) !important;
  color: #f7e7b0 !important;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.35);
}

/* Placeholder text */
.th-form-body .wpforms-form input::placeholder,
.th-form-body .wpforms-form textarea::placeholder {
  color: #a79b7c !important;
}

/* Dropdown styling */
.th-form-body .wpforms-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem; /* space for arrow */
  background-color: #14100b !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--th-gold, #f4cf74) 50%),
    linear-gradient(135deg, var(--th-gold, #f4cf74) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 11px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* On focus, give a soft glow */
.th-form-body .wpforms-form select:focus,
.th-form-body .wpforms-form input:focus,
.th-form-body .wpforms-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(244,207,116,0.9), 0 0 12px rgba(244,207,116,0.5);
}

/* Math captcha text – make it readable */
.th-form-body .wpforms-captcha-equation {
  color: #f7e7b0 !important;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
