/* CAM License Study Website — Professional Exam Prep */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

:root {
  --navy: #0f2b46;
  --navy-light: #1a3a5c;
  --gold: #c5922e;
  --gold-hover: #b07f1e;
  --gold-light: #fdf4e3;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #dfe3e8;
  --success: #1a7a3a;
  --success-bg: #e6f4ec;
  --error: #b91c1c;
  --error-bg: #fde8e8;
  --shadow: 0 1px 3px rgba(15, 43, 70, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 43, 70, 0.1);
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #c0cdd8;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* === MAIN === */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  margin-bottom: 3rem;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-hover);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 0.85rem 2.25rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--gold-hover);
}

/* === STEPS === */
.steps {
  margin-bottom: 3rem;
}

.steps h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--gold);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === SMS PREVIEW === */
.sms-preview {
  background: var(--surface);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  margin: 0 auto 3rem;
  overflow: hidden;
}

.sms-preview-header {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.sms-preview-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sms-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 85%;
}

.sms-bubble.incoming {
  background: #e8ecf0;
  color: var(--text);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

.sms-bubble.outgoing {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}

.sms-bubble.feedback {
  background: var(--gold-light);
  color: var(--navy);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0.5rem;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  font-size: 1rem;
}

.cta-section .cta-button {
  background: var(--gold);
  color: #fff;
}

/* === FORMS === */
.form-container {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}

.form-container h1 {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-container .subtitle {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input[type="tel"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.35rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: border-color 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 43, 70, 0.08);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 0.35rem;
  border: 1px solid var(--border);
}

.checkbox-group input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.checkbox-group label {
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.checkbox-group label strong {
  color: var(--text);
}

.checkbox-group ul {
  margin-top: 0.5rem;
  margin-left: 1.1rem;
  color: var(--text-muted);
}

.checkbox-group ul li {
  margin-bottom: 0.15rem;
  font-size: 0.83rem;
}

.submit-button {
  width: 100%;
  background: var(--gold);
  color: #fff;
  padding: 0.85rem;
  border: none;
  border-radius: 0.35rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.submit-button:hover {
  background: var(--gold-hover);
}

.submit-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.submit-button.danger {
  background: var(--error);
}

.submit-button.danger:hover {
  background: #991b1b;
}

/* === ALERTS === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.35rem;
  margin-bottom: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #a3d9b1;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #f5c6c6;
}

/* === LEGAL PAGES === */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.legal-page h1 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.legal-page h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--navy-light);
  font-size: 1rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.legal-page ul {
  margin-left: 1.5rem;
}

.legal-page ul li {
  margin-bottom: 0.4rem;
}

.legal-page a {
  color: var(--navy);
  text-decoration: underline;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 1.5rem;
}

/* === HELP PAGE === */
.help-content {
  max-width: 720px;
  margin: 0 auto;
}

.help-content h1 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.help-content .help-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.help-content h2 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.keyword-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.keyword-table th,
.keyword-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.keyword-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.keyword-table code {
  background: var(--gold-light);
  color: var(--navy);
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.faq-section {
  margin-top: 2rem;
}

.faq-item {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: 0.35rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.faq-item ul {
  margin-top: 0.4rem;
  margin-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === FOOTER === */
footer {
  background: var(--navy);
  color: #c0cdd8;
  margin-top: 3rem;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-section h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
  color: #8a9bae;
  margin-bottom: 0.3rem;
  display: block;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #1a3a5c;
  text-align: center;
  color: #5a6a7a;
  font-size: 0.8rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-container,
  .legal-page {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
