/* ===== PORTAL PAGES ===== */
.portal-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  background: var(--bg);
}

.portal-container {
  max-width: 860px;
  margin: 0 auto;
}

.portal-hero {
  margin-bottom: 3rem;
}

.portal-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.portal-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ===== ERRORS ===== */
.form-errors {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.form-errors p { font-size: 0.875rem; color: #ff6b6b; }

/* ===== ONBOARD FORM ===== */
.onboard-form { display: flex; flex-direction: column; gap: 2.5rem; }

.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; }

.form-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.form-section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }

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

.form-field select { cursor: pointer; 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 d='M1 1l5 5 5-5' stroke='%238A8A96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.btn-submit {
  background: var(--accent);
  color: #0D0D0F;
  border: none;
  border-radius: 4px;
  padding: 1rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-dim); }

/* ===== DASHBOARD ===== */
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1.5rem; }

.dashboard-contact { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

.dashboard-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.stat-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid;
}
.stat-pill--new { background: rgba(0, 180, 216, 0.1); color: #00b4d8; border-color: rgba(0, 180, 216, 0.3); }
.stat-pill--contacted { background: rgba(255, 123, 0, 0.1); color: var(--accent); border-color: rgba(255, 123, 0, 0.3); }
.stat-pill--won { background: rgba(0, 200, 83, 0.1); color: #00c853; border-color: rgba(0, 200, 83, 0.3); }
.stat-pill--lost { background: rgba(255, 80, 80, 0.1); color: #ff5252; border-color: rgba(255, 80, 80, 0.3); }

.dashboard-icp { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; }

.icp-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.icp-chip {
  background: var(--accent-glow);
  border: 1px solid rgba(255, 123, 0, 0.25);
  border-radius: 4px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  color: var(--accent);
}
.icp-notes { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.5rem; }

/* ===== INQUIRIES ===== */
.inquiries-section { display: flex; flex-direction: column; gap: 1rem; }

.inquiries-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
}
.inquiries-empty p { font-size: 0.9rem; color: var(--text-muted); }

.inquiries-list { display: flex; flex-direction: column; gap: 1rem; }

.inquiry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.inquiry-card--new { border-left-color: #00b4d8; }
.inquiry-card--contacted { border-left-color: var(--accent); }
.inquiry-card--won { border-left-color: #00c853; }
.inquiry-card--lost { border-left-color: #ff5252; }

.inquiry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.inquiry-name { font-weight: 600; font-size: 1rem; color: var(--text); }

.status-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-badge--new { background: rgba(0,180,216,0.12); color: #00b4d8; }
.status-badge--contacted { background: rgba(255,123,0,0.12); color: var(--accent); }
.status-badge--won { background: rgba(0,200,83,0.12); color: #00c853; }
.status-badge--lost { background: rgba(255,80,80,0.12); color: #ff5252; }

.inquiry-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }
.inquiry-meta span { white-space: nowrap; }
.priority--high { color: #ff5252; }
.priority--medium { color: var(--accent); }
.priority--low { color: var(--text-muted); }

.inquiry-message { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; padding: 0.75rem; background: var(--surface2); border-radius: 4px; }

.inquiry-footer { display: flex; justify-content: flex-end; }
.inquiry-date { font-size: 0.75rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }
  .dashboard-header { flex-direction: column; }
  .dashboard-stats { flex-direction: row; }
  .portal-page { padding: 7rem 1.5rem 3rem; }
}