/* ================================================================
   C4-Reservations - Front-end form styles
   Compatible with Twenty Twenty-Four (default WP theme) and most
   block themes. Uses CSS custom properties for easy overrides.
================================================================ */

#tr-reservation-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  font-family: inherit;
  color: inherit;
}

/* Two-column row */
.tr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .tr-row {
    grid-template-columns: 1fr;
  }
}

/* Field wrapper */
.tr-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.tr-field label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.tr-required {
  color: #c0392b;
  margin-left: 2px;
}
.tr-optional {
  font-weight: 400;
  color: #888;
  font-size: 0.85em;
  margin-left: 4px;
}

/* Inputs */
.tr-field input[type="text"],
.tr-field input[type="email"],
.tr-field select,
.tr-field textarea {
  padding: 10px 13px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #1a1a1a;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  appearance: auto; /* keep native select arrow */
}

.tr-field input:focus,
.tr-field select:focus,
.tr-field textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.18);
  outline: none;
}

.tr-field textarea {
  resize: vertical;
}

/* Seats select — disabled options */
#tr_seats option:disabled {
  color: #bbb;
  background: #f5f5f5;
}

/* Submit button */
.tr-submit-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.18s;
  display: inline-block;
  margin-top: 4px;
}
.tr-submit-btn:hover {
  background: #005d8c;
}
.tr-submit-btn:active {
  background: #004a70;
}
.tr-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status message */
#tr-form-message {
  padding: 13px 16px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.tr-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #b8dfc4;
}
.tr-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1aeb5;
}

/* Newsletter checkbox */
.tr-newsletter-field {
  margin-bottom: 20px;
}

.tr-newsletter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.tr-newsletter-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}
