/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
/* ================================
   FORM COMPONENTS - COREY'S BOOKSHOP
   Clean, classical form styling
   Warm backgrounds, gold focus states
   ================================ */

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}

.form-group label .required {
  color: var(--color-error);
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--input-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--input-placeholder);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--line-height-body);
}

/* Select Dropdown */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235C4D3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Form Row (Side by Side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Form Messages */
.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  margin-top: 15px;
}

.form-message-success {
  background-color: rgba(74, 93, 74, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.form-message-error {
  background-color: rgba(139, 32, 32, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

/* Privacy Note */
.privacy-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: var(--line-height-relaxed);
}

/* Invalid Field State */
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--color-error);
}

/* Disabled State */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
