/* ══════════════════════════════════════════════
   algoequity — Contact Page Styles
   (load AFTER styles.css)
   ══════════════════════════════════════════════ */

:root {
  --accent: #5e6ad2;
  --accent-hover: #7170ff;
}

/* ── Typography (contact overrides) ──────────── */
.heading-2 { font-size: 1.5rem; font-weight: 400; line-height: 1.33; letter-spacing: -0.012em; }

/* ── Layout override (narrower container) ─────── */
.container { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ── Page Layout ─────────────────────────────── */
.contact-page { padding-top: 120px; min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.contact-page::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse at center, rgba(94, 106, 210, 0.08) 0%, transparent 70%); pointer-events: none; }

/* ── Contact Card ─────────────────────────────── */
.contact-card { width: 100%; max-width: 580px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 40px 36px; position: relative; }

.contact-header { margin-bottom: 32px; text-align: center; }
.contact-header h1 { font-size: 2rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 8px; }
.contact-header p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }

/* ── Form Fields ─────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: -0.01em; }
.form-input,
.form-textarea {
  width: 100%; padding: 12px 14px; font-size: 0.9375rem; font-family: inherit;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle);
  border-radius: 6px; color: var(--text-primary); outline: none; transition: all 0.15s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-subtle); }
.form-input:focus,
.form-textarea:focus { border-color: rgba(94, 106, 210, 0.5); background: rgba(94, 106, 210, 0.03); box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.15); }
.form-input:hover:not(:focus),
.form-textarea:hover:not(:focus) { border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

/* ── Form Row ─────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Custom Dropdown ─────────────────────────── */
.dropdown { position: relative; width: 100%; user-select: none; }
.dropdown.selected .dropdown-selected { border-color: var(--accent); background: rgba(94, 106, 210, 0.03); box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.15); }
.dropdown.open .dropdown-list { display: block; }
.dropdown-selected { width: 100%; padding: 12px 38px 12px 14px; font-size: 0.9375rem; font-family: inherit; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-primary); outline: none; cursor: pointer; transition: all 0.15s ease; display: flex; align-items: center; justify-content: space-between; }
.dropdown-selected:hover:not(.no-hover) { border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
.dropdown-arrow { width: 10px; height: 6px; flex-shrink: 0; transition: transform 0.2s ease; fill: var(--text-subtle); }
.dropdown.open .dropdown-arrow { transform: rotate(180deg); fill: var(--accent); }
.dropdown-list { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #1a1b1e; border: 1px solid rgba(94, 106, 210, 0.3); border-radius: 8px; padding: 6px; z-index: 50; box-shadow: 0 12px 32px rgba(0,0,0,0.4); max-height: 200px; overflow-y: auto; }
.dropdown-item { display: block; width: 100%; padding: 10px 14px; font-size: 0.9375rem; font-family: inherit; background: transparent; border: none; color: var(--text-secondary); text-align: left; cursor: pointer; border-radius: 5px; transition: all 0.12s ease; }
.dropdown-item:hover { background: rgba(94, 106, 210, 0.12); color: var(--text-primary); }
.dropdown-item.selected { background: rgba(94, 106, 210, 0.15); color: var(--accent-hover); font-weight: 500; }

/* ── Submit Button ───────────────────────────── */
.btn-submit {
  width: 100%; padding: 12px 24px; font-size: 0.9375rem; font-weight: 500; font-family: inherit;
  background: var(--accent); color: #fff; border: none; border-radius: 6px; cursor: pointer;
  transition: all 0.15s ease; letter-spacing: -0.01em; margin-top: 8px; position: relative; overflow: hidden;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.985); }

/* Loading state */
.btn-submit.loading { pointer-events: none; opacity: 0.7; }
.btn-submit.loading::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ── Success / Error States ──────────────────── */
.form-success { text-align: center; padding: 48px 20px; display: none; }
.form-success.visible { display: block; }
.success-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); display: flex; align-items: center; justify-content: center; }
.form-success h3 { font-size: 1.5rem; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text-primary); }
.form-success p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }

.form-error { background: rgba(239, 68, 68, 0.04); border: 1px solid rgba(239, 68, 68, 0.15); border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.875rem; color: #f87171; display: none; }
.form-error.visible { display: flex; align-items: center; gap: 8px; }

.form-input.error,
.form-textarea.error { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.02); }

/* ── Contact Info Link ───────────────────────── */
.contact-info { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-subtle); text-align: center; }
.contact-info a { color: var(--accent); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s ease; }
.contact-info a:hover { color: var(--accent-hover); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .contact-card { padding: 32px 24px; margin: 0 12px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-header h1 { font-size: 1.5rem; }
}
