/* ===== Contact Form (landing page) ===== */

.contact-section {
  padding: 120px 48px;
  background: var(--bg-alt);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-label {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.contact-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group + .form-group {
  margin-bottom: 0;
}

.contact-form > .form-group {
  margin-bottom: 24px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.required {
  color: var(--accent);
}

.form-input {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.form-input::placeholder {
  color: #A0A8B8;
}

.form-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 d='M1 1l5 5 5-5' stroke='%235A6377' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.6;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.form-submit {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.form-submit:hover {
  background: var(--accent-dim);
}

.form-submit:active {
  transform: translateY(1px);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 14px;
  line-height: 1.5;
}

.form-status--success {
  color: #16a34a;
}

.form-status--error {
  color: #dc2626;
}

/* ===== Nav CTA link ===== */
.nav-cta {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 8px 18px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Leads Pipeline Dashboard ===== */

.dashboard {
  padding: 100px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dashboard-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 4px;
}

.dashboard-sub {
  font-size: 15px;
  color: var(--fg-muted);
}

.btn-primary {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-dim);
}

/* Pipeline tabs */
.pipeline-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217, 119, 6, 0.06);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.tab-dot.status-new { background: #3B82F6; }
.tab-dot.status-contacted { background: #F59E0B; }
.tab-dot.status-quote-sent { background: #8B5CF6; }
.tab-dot.status-won { background: #10B981; }
.tab-dot.status-lost { background: #6B7280; }

/* Leads table */
.leads-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table thead {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.leads-table th {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fg-muted);
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}

.leads-table td {
  font-size: 14px;
  color: var(--fg);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.lead-row:last-child td {
  border-bottom: none;
}

.lead-row:hover td {
  background: rgba(250, 248, 245, 0.5);
}

.lead-name strong {
  font-weight: 600;
}

.lead-email {
  color: var(--accent);
  text-decoration: none;
}

.lead-email:hover {
  text-decoration: underline;
}

.lead-phone,
.lead-project,
.lead-date {
  color: var(--fg-muted);
}

/* Status select pill */
.status-select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 28px 5px 12px;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
  transition: opacity 0.15s;
}

.status-select:hover { opacity: 0.85; }

.status-select.status-new         { background-color: #EFF6FF; color: #1D4ED8; }
.status-select.status-contacted   { background-color: #FFFBEB; color: #92400E; }
.status-select.status-quote-sent  { background-color: #F5F3FF; color: #6D28D9; }
.status-select.status-won         { background-color: #ECFDF5; color: #065F46; }
.status-select.status-lost        { background-color: #F3F4F6; color: #374151; }

/* Notes panel */
.notes-row td {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.notes-panel {
  padding: 20px 20px 16px;
}

.notes-message {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.notes-textarea {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.15s;
}

.notes-textarea:focus {
  border-color: var(--accent);
}

.notes-saved {
  font-size: 12px;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.3s;
  display: inline-block;
  margin-top: 6px;
}

.btn-notes {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-notes:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty state */
.empty-state {
  padding: 80px 40px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .contact-section {
    padding: 80px 24px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .dashboard {
    padding: 80px 24px 60px;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 20px;
  }

  .leads-table th,
  .leads-table td {
    padding: 12px 14px;
  }

  /* Hide less-critical columns on mobile */
  .lead-phone,
  .leads-table th:nth-child(3) {
    display: none;
  }
}
