/* =============================================
   Commission Inquiry Page
   Matches Mid South Goods Barn LLC earthy palette.
   ============================================= */

/* ─── HERO ─── */
.comm-hero {
  background: var(--forest);
  padding: 64px 80px 72px;
  position: relative;
  overflow: hidden;
}

.comm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4953A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.comm-hero-inner {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245, 237, 216, 0.5);
  text-decoration: none;
  transition: color 0.15s ease;
  text-transform: uppercase;
}

.comm-back:hover { color: var(--gold); }

.comm-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 149, 58, 0.12);
  border: 1px solid rgba(196, 149, 58, 0.28);
  padding: 6px 14px;
  border-radius: 2px;
  width: fit-content;
}

.comm-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
}

.comm-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.comm-lead {
  font-size: 16px;
  font-weight: 300;
  color: rgba(245, 237, 216, 0.65);
  line-height: 1.75;
  max-width: 520px;
}

/* ─── FORM SECTION ─── */
.comm-form-section {
  padding: 80px 40px;
  background: var(--cream);
  min-height: calc(100vh - 400px);
}

.comm-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* ─── SUCCESS STATE ─── */
.comm-success {
  text-align: center;
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.comm-success-icon { color: var(--forest); }

.comm-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--brown);
}

.comm-success p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── SECTION LABEL ─── */
.comm-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 20px;
}

.comm-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ─── FORM FIELDS ─── */
.comm-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comm-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.comm-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brown);
  text-transform: uppercase;
}

.comm-required { color: var(--gold-muted); }

.comm-form input[type="text"],
.comm-form input[type="email"],
.comm-form textarea {
  background: white;
  border: 1px solid rgba(61, 43, 31, 0.2);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.comm-form input::placeholder,
.comm-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.comm-form input:focus,
.comm-form textarea:focus,
.comm-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 149, 58, 0.12);
}

.comm-form textarea {
  resize: vertical;
  min-height: 130px;
}

/* Select wrapper */
.comm-select-wrap {
  position: relative;
}

.comm-select-wrap select {
  background: white;
  border: 1px solid rgba(61, 43, 31, 0.2);
  border-radius: 3px;
  padding: 12px 36px 12px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comm-select-wrap select option[value=""] { color: var(--text-muted); }

.comm-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Character count */
.comm-char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── FORM FOOTER ─── */
.comm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.comm-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.comm-footer .btn-large {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── INLINE ERROR (basic browser validation covers most; add JS enhancement) ─── */
.comm-form input:invalid:not(:placeholder-shown),
.comm-form textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .comm-hero { padding: 48px 24px 56px; }
  .comm-form-section { padding: 48px 24px; }
  .comm-field-row { grid-template-columns: 1fr; }
  .comm-footer { flex-direction: column; align-items: flex-start; }
  .comm-disclaimer { max-width: 100%; }
  .comm-footer .btn-large { width: 100%; }
  .comm-success { padding: 48px 24px; }
}