/* Intake form styles — match landing page design language */

.intake-page {
  min-height: 100vh;
  padding: 7rem 2rem 5rem;
  background: var(--bg);
}

.intake-container {
  max-width: 760px;
  margin: 0 auto;
}

.intake-header {
  margin-bottom: 2.5rem;
}

.intake-header .section-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.intake-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.intake-header p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

/* FORM */
.intake-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2.5rem 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title span {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

label .required {
  color: var(--accent);
  margin-left: 2px;
}

input, textarea, select {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 42, 0.08);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6560' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* Photo URLs input */
.photo-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Submit button */
.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-generate:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-generate:active { transform: translateY(0); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.btn-generate.loading .spinner { display: block; }
.btn-generate.loading .btn-text { display: none; }

/* Error message */
.form-error {
  background: #fff5f5;
  border: 1px solid #e53e3e;
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: #c53030;
  font-size: 0.82rem;
  margin-top: 1rem;
  display: none;
}
.form-error.visible { display: block; }

/* OUTPUT */
.output-section {
  margin-top: 2.5rem;
  display: none;
}
.output-section.visible { display: block; }

.output-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.output-card-header {
  background: var(--green);
  color: #fff;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.output-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.copy-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.copy-btn:hover { background: rgba(255,255,255,0.25); }

.output-card-body {
  padding: 1.5rem;
}

.output-card-body p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre-wrap;
}

/* Keywords */
.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.keyword-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--fg);
  font-weight: 500;
}

/* New listing button */
.new-listing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.6rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.new-listing-btn:hover { border-color: var(--accent); color: var(--accent); }

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.output-section.visible {
  animation: fadeUp 0.5s ease forwards;
}