/* Form Styles */
.form-table {
  width: 100%;
  border-collapse: collapse;
}
.form-table th,
.form-table td {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid #dee2e6;
}
.form-table th {
  width: 200px;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  background: #f8f9fa;
}
@media (max-width: 767px) {
  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }
  .form-table th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
  .form-table td {
    padding-top: 0.25rem;
  }
}
.form-table .badge-required {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-left: 0.5em;
  vertical-align: middle;
  font-weight: 500;
}
.form-table .badge-optional {
  display: inline-block;
  background: #7f8c8d;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-left: 0.5em;
  vertical-align: middle;
  font-weight: 500;
}
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea,
.form-table select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-table input[type="text"]:focus,
.form-table input[type="email"]:focus,
.form-table input[type="tel"]:focus,
.form-table textarea:focus,
.form-table select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-table .name-fields {
  display: flex;
  gap: 0.5rem;
}
.form-table .name-fields > div {
  flex: 1;
}
.form-table .name-fields label {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-bottom: 0.25rem;
}
.form-table .privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-table .privacy-check input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.form-table .privacy-check label {
  cursor: pointer;
}
.form-table .privacy-check a {
  color: #2563eb;
  text-decoration: underline;
}
.form-submit-area {
  text-align: center;
  margin-top: 2rem;
}
.form-submit-btn {
  display: inline-block;
  background: var(--bs-primary, #1a3b6e);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 200px;
}
.form-submit-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.form-submit-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
  transform: none;
}
.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}
.form-error.show {
  display: block;
}
.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}
.form-success.show {
  display: block;
}
.form-success h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.form-loading {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-loading.show {
  display: block;
}
.form-loading .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #1a3b6e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Turnstile widget */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* DL form success - download link */
.form-success .dl-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: #e67e22;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.form-success .dl-link:hover {
  opacity: 0.85;
  color: #fff;
}
