/* ============================================
   AI READINESS AUDIT - STYLES
   Follows the same pattern as the Website Health
   Check page but with its own namespace (aia-).
   ============================================ */


/* ============================================
   FORM CARD
   ============================================ */

.aia-form-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(219,219,219,0.4);
  transition: box-shadow 1s;
}

.aia-form-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.aia-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.aia-form-header .small-title {
  display: block;
  margin-bottom: 0.5rem;
}

.aia-form-header .text-title {
  margin-bottom: 0.75rem;
}

.aia-form-subtitle {
  color: #5a5b6a;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}


/* ============================================
   FORM FIELDS
   ============================================ */

.aia-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .aia-form-grid {
    grid-template-columns: 1fr;
  }

  .aia-form-card {
    padding: 2rem 1.5rem;
  }
}

.aia-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aia-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202132;
  letter-spacing: 0.01em;
}

.aia-required {
  color: #c82d44;
}

.aia-field input[type="text"],
.aia-field input[type="email"],
.aia-field input[type="url"] {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  border: 1px solid #202132;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 300;
  font-family: inherit;
  color: #202132;
  background: #fff;
  transition: all 1s;
  outline: none;
}

.aia-field input:hover {
  border-color: #c82d44;
  background: #edf2f4;
  color: #c82d44;
}

.aia-field input:focus {
  border-color: #c82d44;
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.1);
}

.aia-field input.aia-field-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.aia-field-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
  line-height: 1.3;
}


/* URL field with icon */

.aia-field-url {
  margin-bottom: 1.25rem;
}

.aia-url-input-wrapper {
  position: relative;
}

.aia-url-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8d99ae;
  pointer-events: none;
}

.aia-url-input-wrapper input {
  padding-left: 2.75rem;
}


/* ============================================
   CONSENT CHECKBOX
   ============================================ */

.aia-consent {
  margin-bottom: 1.5rem;
}

.aia-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 300;
  color: #5a5b6a;
  line-height: 1.5;
}

.aia-checkbox-label input[type="checkbox"] {
  display: none;
}

.aia-checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #202132;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s;
  margin-top: 1px;
}

.aia-checkbox-label input:checked + .aia-checkbox-mark {
  background: #c82d44;
  border-color: #c82d44;
}

.aia-checkbox-label input:checked + .aia-checkbox-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.aia-checkbox-label a {
  color: #c82d44;
  text-decoration: underline;
  font-weight: 600;
}


/* ============================================
   FORM ACTIONS & NOTES
   ============================================ */

.aia-form-actions {
  text-align: center;
  margin-bottom: 1rem;
}

.aia-form-actions .main-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.aia-form-note {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 300;
  color: #8d99ae;
  line-height: 1.5;
}


/* Button spinner */

.aia-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aiaSpin 0.6s linear infinite;
}

@keyframes aiaSpin {
  to { transform: rotate(360deg); }
}


/* ============================================
   ERROR BOX
   ============================================ */

.aia-error {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
}


/* ============================================
   LOADING STATE
   ============================================ */

.aia-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.aia-loading-inner {
  text-align: center;
  max-width: 500px;
}

.aia-loading-inner h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #202132;
  margin-bottom: 0.5rem;
}

.aia-loading-inner > p {
  color: #5a5b6a;
  font-weight: 300;
  margin-bottom: 2rem;
}

.aia-loading-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid #edf2f4;
  border-top-color: #c82d44;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: aiaSpin 0.8s linear infinite;
}

.aia-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.aia-loading-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: #8d99ae;
  transition: all 0.4s ease;
}

.aia-loading-step svg {
  flex-shrink: 0;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.aia-loading-step.active {
  color: #202132;
  font-weight: 600;
}

.aia-loading-step.active svg {
  opacity: 1;
  color: #10b981;
}


/* ============================================
   SUCCESS STATE
   ============================================ */

.aia-success {
  max-width: 680px;
  margin: 0 auto;
}

.aia-success-inner {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(219,219,219,0.4);
  text-align: center;
}

.aia-success-icon {
  margin-bottom: 1.5rem;
}

.aia-success-icon svg {
  display: inline-block;
}

.aia-success-inner h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #202132;
  margin-bottom: 1rem;
}

.aia-success-inner > p {
  font-size: 1rem;
  font-weight: 300;
  color: #5a5b6a;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.aia-success-inner strong {
  font-weight: 700;
  color: #202132;
}


/* What's in your report list */

.aia-success-whats-inside {
  text-align: left;
  background: #f4f6f8;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.aia-success-whats-inside h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #202132;
  margin-bottom: 1rem;
}

.aia-success-whats-inside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aia-success-whats-inside li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #202132;
}

.aia-success-whats-inside li svg {
  flex-shrink: 0;
  color: #10b981;
}


/* Check spam note */

.aia-success-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: #8d99ae;
  background: #f4f6f8;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.aia-success-note svg {
  flex-shrink: 0;
}


/* ============================================
   WHAT WE CHECK - CATEGORY CARDS
   ============================================ */

.aia-section-what-we-check {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.aia-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .aia-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .aia-categories-grid {
    grid-template-columns: 1fr;
  }
}

.aia-category-card {
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.25);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px 2px rgba(0,0,0,0.05);
  transition: all 1s;
}

.aia-category-card:hover {
  box-shadow: 0 2px 12px 2px rgba(0,0,0,0.15);
  border-color: rgba(32, 33, 50, 0.5);
}

.aia-category-icon {
  width: 56px;
  height: 56px;
  background: #f4f6f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #c82d44;
}

.aia-category-card h3 {
  font-size: 1.15rem;
  font-weight: 300;
  color: #202132;
  margin-bottom: 0.75rem;
}

.aia-category-card > p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #5a5b6a;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.aia-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aia-check-list li {
  font-size: 0.85rem;
  font-weight: 400;
  color: #202132;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.4;
}

.aia-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: #c82d44;
  border-radius: 50%;
}


/* ============================================
   FAQ SECTION
   ============================================ */

.aia-section-faq {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.aia-faq-list {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aia-faq-item {
  border-bottom: 1px solid rgba(219, 219, 219, 0.4);
}

.aia-faq-item:first-child {
  border-top: 1px solid rgba(219, 219, 219, 0.4);
}

.aia-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: #202132;
  cursor: pointer;
  list-style: none;
  transition: color 1s;
}

.aia-faq-item summary::-webkit-details-marker {
  display: none;
}

.aia-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 200;
  color: #8d99ae;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.aia-faq-item[open] summary::after {
  content: '-';
}

.aia-faq-item summary:hover {
  color: #c82d44;
}

.aia-faq-answer {
  padding: 0 0 1.25rem;
}

.aia-faq-answer p {
  font-size: 0.95rem;
  font-weight: 300;
  color: #5a5b6a;
  line-height: 1.7;
}


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

@media (max-width: 600px) {
  .aia-success-inner {
    padding: 2rem 1.5rem;
  }

  .aia-success-whats-inside {
    padding: 1.25rem 1.5rem;
  }

  .aia-loading-inner h3,
  .aia-success-inner h3 {
    font-size: 1.25rem;
  }
}
