/**
 * IDENTITY ALIGNMENT QUIZ - CUSTOM STYLES
 *
 * Branding: #302146 (primary color)
 * Headings: Cormorant Garamond
 * Body: Hanken Grotesk
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #302146;
  --primary-light: #4a305f;
  --primary-dark: #1f1428;
  --gray-light: #f5f5f5;
  --gray-medium: #ccc;
  --spacing-unit: 1rem;
}

/* ===========================================================================
   HEADER & LOGO
   =========================================================================== */

header {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  margin: 0 auto;
}

.navbar-brand:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo-image {
  max-height: 50px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.brand-name {
  font-family: 'Cormorant Garamond', 'Canela', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #333333;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===========================================================================
   TYPOGRAPHY
   =========================================================================== */

body {
  font-family: 'Hanken Grotesk', 'Suisse Int\'l', 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
  background-color: #f8f6fb;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Canela', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
  color: #000;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #666;
}

.email-subtitle {
  font-size: 20px;
}

/* Bullet list styling */
.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.list-unstyled li {
  display: flex;
  margin-bottom: 0.75rem;
  align-items: center;
}

.bullet-point {
  color: #A91CF2;
  font-size: 10px;
  line-height: 1;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* ===========================================================================
   BUTTONS
   =========================================================================== */

.btn {
  font-family: inherit;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #A91CF2 0%, #6210A8 100%);
  border-color: #6210A8;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #9410de 0%, #55099a 100%);
  border-color: #55099a;
}

.btn-primary:active {
  background: linear-gradient(180deg, #7e0ab8 0%, #470881 100%);
  border-color: #470881;
}

.btn-primary:disabled {
  background: #999;
  border-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-outline-secondary {
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #333;
}

.btn-outline-secondary:hover {
  background-color: #eeeeee;
  border-color: #ccc;
  color: #333;
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
}

.btn-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* ===========================================================================
   FORMS
   =========================================================================== */

.form-control {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(48, 33, 70, 0.15);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.text-danger {
  color: #dc3545;
}

/* Kit Form Styling */
.kit-form-wrapper {
  width: 100%;
}

.kit-form-wrapper .formkit-field {
  margin-bottom: 1rem;
}

.kit-form-wrapper input[type="text"],
.kit-form-wrapper input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  color: #333;
}

.kit-form-wrapper input[type="text"]:focus,
.kit-form-wrapper input[type="email"]:focus {
  outline: none;
  border-color: #302146;
  box-shadow: 0 0 0 0.2rem rgba(48, 33, 70, 0.15);
}

.kit-form-wrapper input[type="text"]::placeholder,
.kit-form-wrapper input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.kit-form-wrapper button[type="submit"] {
  background: linear-gradient(180deg, #A91CF2 0%, #6210A8 100%);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  width: 100%;
  transition: all 0.3s ease;
}

.kit-form-wrapper button[type="submit"]:hover {
  background: linear-gradient(180deg, #9410de 0%, #55099a 100%);
  transform: translateY(-2px);
}

.kit-form-wrapper button[type="submit"]:active {
  background: linear-gradient(180deg, #7e0ab8 0%, #470881 100%);
}

/* Hide Kit branding and header */
.formkit-form .formkit-header,
.formkit-form .formkit-subheader,
.formkit-form .formkit-guarantee,
.formkit-form .formkit-powered-by-convertkit-container,
.formkit-form .formkit-background {
  display: none !important;
}

.formkit-form {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  box-shadow: none !important;
}

/* ===========================================================================
   CARDS & CONTAINERS
   =========================================================================== */

.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.card.bg-light {
  background-color: #fff !important;
}

.bg-light {
  background-color: var(--gray-light) !important;
}

.container {
  max-width: 900px;
}

/* ===========================================================================
   QUIZ-SPECIFIC STYLES
   =========================================================================== */

.option-card {
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  min-height: 60px;
}

.option-card:hover {
  border-color: var(--primary-light);
  background-color: rgba(48, 33, 70, 0.02);
  cursor: pointer;
}

.option-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(48, 33, 70, 0.08);
  font-weight: 600;
}

.progress {
  background-color: #e9ecef;
}

.progress-bar {
  background-color: #7A12D4 !important;
}

/* ===========================================================================
   RESULTS PAGE STYLES
   =========================================================================== */

.result-screen .container {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.result-screen h2 {
  margin-bottom: 2.5rem !important; /* 40px */
}

.result-stars {
  color: #6210A8;
  font-size: 15px;
  letter-spacing: 0.5rem;
  margin-bottom: 2.5rem !important; /* 40px */
}

.stage-name {
  color: #6210A8;
}

.cta-intro-box {
  border-radius: 10px;
  background-color: #f7f7f7;
  padding: 30px;
  margin-top: 30px;
  border: 1px solid #ccc;
}

/* ===========================================================================
   UTILITY CLASSES
   =========================================================================== */

.min-vh-100 {
  min-height: 100vh;
}

.text-muted {
  color: #999;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 1rem;
  }

  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .option-card {
    min-height: 50px;
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem !important;
  }

  .gap-3 {
    gap: 0.75rem !important;
  }

  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }

  body {
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .option-card {
    min-height: 45px;
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .card {
    padding: 1rem !important;
  }

  .py-5 {
    padding: 1.5rem 0 !important;
  }

  .p-5 {
    padding: 1.5rem !important;
  }

  .p-3 {
    padding: 0.75rem !important;
  }

  .mb-3 {
    margin-bottom: 0.75rem !important;
  }

  .mb-4 {
    margin-bottom: 1rem !important;
  }
}

/* ===========================================================================
   ACCESSIBILITY
   =========================================================================== */

.d-none {
  display: none !important;
}

a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===========================================================================
   PRINT STYLES
   =========================================================================== */

@media print {
  body {
    background: #fff;
  }

  .btn, .form-control {
    display: none;
  }
}
