/* =============================================================
   Investor Interest Page - Page-Specific Styles
   Jathagam.ai
   Simple, professional form layout for investor interest capture
   ============================================================= */

:root {
  --brand-primary: #7b2cbf;
  --brand-text: #2b2b2b;
  --brand-muted: #6c757d;
  --bg-soft: #fdfbff;
  --border-soft: #ece6f6;
  --error-red: #dc3545;
  --success-green: #198754;
}

/* ─────────────────────────────────────────────────────────────
   Page-specific typography
   ───────────────────────────────────────────────────────────── */
#investor-interest {
  font-family: "Noto Sans Tamil", "Mukta", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--brand-text);
  line-height: 1.6;
}

#investor-interest h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  margin-bottom: 1.25rem;
  color: var(--brand-primary);
  font-weight: 600;
}

#investor-interest h2 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
  color: var(--brand-primary);
  font-weight: 600;
}

#investor-interest p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--brand-text);
}

#investor-interest a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

#investor-interest a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   Intro section
   ───────────────────────────────────────────────────────────── */
.investor-intro {
  margin-bottom: 2rem;
}

.investor-disclaimer {
  background-color: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.investor-disclaimer p {
  margin: 0;
  font-size: 0.95rem;
  color: #856404;
}

/* ─────────────────────────────────────────────────────────────
   Form styling
   ───────────────────────────────────────────────────────────── */
.investor-form {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--brand-text);
  font-size: 0.95rem;
}

.form-group .required {
  color: var(--error-red);
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* ─────────────────────────────────────────────────────────────
   Submit button
   ───────────────────────────────────────────────────────────── */
.btn-submit {
  background-color: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 1.5rem auto 0;
}

.btn-submit:hover:not(:disabled) {
  background-color: #6a24a8;
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  background-color: #b0a0c0;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────────
   Form messages
   ───────────────────────────────────────────────────────────── */
.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-error {
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
}

/* ─────────────────────────────────────────────────────────────
   Post-submit guidance
   ───────────────────────────────────────────────────────────── */
.post-submit-guidance {
  background-color: #e7f3ff;
  border-left: 4px solid #0d6efd;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.post-submit-guidance p {
  margin: 0.5rem 0;
}

.post-submit-guidance p:first-child {
  margin-top: 0;
}

.post-submit-guidance p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────
   Thank you message
   ───────────────────────────────────────────────────────────── */
.thank-you-message {
  background: linear-gradient(135deg, #f0e7f9 0%, #fdf4ff 100%);
  border: 2px solid var(--brand-primary);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.15);
}

.thank-you-content h2 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.thank-you-content p {
  font-size: 1rem;
  color: var(--brand-text);
  margin: 0.75rem 0;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   Mobile optimization
   ───────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .investor-form {
    padding: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn-submit {
    max-width: 100%;
    padding: 0.85rem 1.5rem;
  }

  .investor-disclaimer,
  .post-submit-guidance {
    padding: 0.85rem;
    font-size: 0.9rem;
  }

  .thank-you-message {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  #investor-interest h1 {
    font-size: 1.3rem;
  }

  #investor-interest p {
    font-size: 0.95rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }
}
