/* ==================
   MARKETING AUDIT PAGE STYLES
   ================== */

/* Hero Section */
.audit-hero {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-page) 100%);
  text-align: center;
}

.audit-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.audit-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.audit-hero__badge i {
  font-size: 16px;
}

.audit-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.audit-hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.audit-hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.audit-hero__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.audit-hero__feature i {
  color: var(--accent-green);
  font-size: 18px;
}

/* Form Section */
.audit-form-section {
  padding: 80px 0 120px;
  background: var(--bg-page);
}

.audit-form-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.audit-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.audit-form-card__header {
  margin-bottom: 32px;
}

.audit-form-card__header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.audit-form-card__header p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Form Styles */
.audit-form__group {
  margin-bottom: 20px;
}

.audit-form__group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.audit-form__group label .required {
  color: var(--accent-green);
}

.audit-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.audit-form__input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.audit-form__input-wrapper input,
.audit-form__input-wrapper select,
.audit-form__input-wrapper textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.audit-form__input-wrapper--textarea {
  align-items: flex-start;
}

.audit-form__input-wrapper--textarea i {
  top: 16px;
}

.audit-form__input-wrapper--textarea textarea {
  min-height: 100px;
  resize: vertical;
}

.audit-form__input-wrapper input::placeholder,
.audit-form__input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.audit-form__input-wrapper input:focus,
.audit-form__input-wrapper select:focus,
.audit-form__input-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.audit-form__input-wrapper select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
}

.audit-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.audit-form__hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.audit-form__submit {
  margin-top: 24px;
  padding: 16px 32px;
  font-size: 16px;
}

.audit-form__submit i {
  transition: transform 0.2s ease;
}

.audit-form__submit:hover i {
  transform: translateX(4px);
}

.audit-form__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.audit-form__disclaimer i {
  font-size: 14px;
  color: var(--accent-green);
}

/* Benefits Sidebar */
.audit-benefits {
  background: var(--bg-section-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.audit-benefits h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.audit-benefits__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audit-benefits__list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-benefits__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.audit-benefits__list li:first-child {
  padding-top: 0;
}

.audit-benefits__list i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent-green);
  font-size: 20px;
}

.audit-benefits__list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.audit-benefits__list span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modal Styles */
.audit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.audit-modal.active {
  display: flex;
}

.audit-modal__content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.audit-modal__content--processing {
  max-width: 600px;
}

.audit-modal__icon {
  margin-bottom: 24px;
}

.audit-modal__icon--success i {
  font-size: 64px;
  color: var(--accent-green);
}

.audit-modal__content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.audit-modal__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.audit-modal__time {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 0;
}

.audit-modal__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 0;
}

.audit-modal__privacy i {
  font-size: 14px;
}

/* Loader Animation */
.audit-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.audit-loader__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.audit-loader i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: var(--accent-green);
}

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

/* Progress Bar */
.audit-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin: 24px 0;
}

.audit-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), #6ee7b7);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.audit-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.audit-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.audit-progress__step.active {
  opacity: 1;
}

.audit-progress__step.completed {
  opacity: 1;
}

.audit-progress__step.completed i {
  color: var(--accent-green);
}

.audit-progress__step i {
  font-size: 20px;
  color: var(--text-secondary);
}

.audit-progress__step span {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

/* Email Form in Modal */
.audit-email-form {
  margin-top: 24px;
}

.audit-email-form .audit-form__group {
  margin-bottom: 16px;
}

/* Report Section */
.audit-report {
  padding: 80px 0 120px;
  background: var(--bg-section-alt);
}

.audit-report__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-report__header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.audit-report__header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.audit-report__content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
}

/* Report Content Styles */
.report-section {
  margin-bottom: 48px;
}

.report-section:last-child {
  margin-bottom: 0;
}

.report-section__header {
  background: var(--accent-green);
  color: var(--bg-page);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.report-section__header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.report-subsection {
  margin-bottom: 32px;
}

.report-subsection h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.report-subsection p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Finding Cards */
.report-finding {
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.report-finding--strength {
  background: rgba(52, 211, 153, 0.1);
  border-left: 4px solid var(--accent-green);
}

.report-finding--gap {
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid #fbbf24;
}

.report-finding--weakness {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
}

.report-finding--opportunity {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
}

.report-finding__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.report-finding--strength .report-finding__label {
  color: var(--accent-green);
}

.report-finding--gap .report-finding__label {
  color: #fbbf24;
}

.report-finding--weakness .report-finding__label {
  color: #ef4444;
}

.report-finding--opportunity .report-finding__label {
  color: #3b82f6;
}

.report-finding p {
  margin: 0;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Report Tables */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.report-table th {
  background: var(--accent-green);
  color: var(--bg-page);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.report-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.report-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.report-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.report-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-md);
}

.report-table tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-md) 0;
}

/* Priority Matrix */
.report-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.report-matrix__quadrant {
  padding: 20px;
  border-radius: var(--radius-md);
}

.report-matrix__quadrant--high-low {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.report-matrix__quadrant--high-high {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.report-matrix__quadrant--low-low {
  background: rgba(156, 163, 175, 0.1);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.report-matrix__quadrant--low-high {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.report-matrix__quadrant h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.report-matrix__quadrant--high-low h5 {
  color: var(--accent-green);
}

.report-matrix__quadrant--high-high h5 {
  color: #3b82f6;
}

.report-matrix__quadrant--low-low h5 {
  color: #9ca3af;
}

.report-matrix__quadrant--low-high h5 {
  color: #ef4444;
}

.report-matrix__quadrant ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-matrix__quadrant li {
  font-size: 14px;
  color: var(--text-primary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.report-matrix__quadrant li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* CTA Section */
.audit-cta {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-section-alt) 100%);
  text-align: center;
}

.audit-cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.audit-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.audit-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .audit-form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .audit-benefits {
    order: -1;
  }
}

@media (max-width: 768px) {
  .audit-hero {
    padding: 140px 0 60px;
  }

  .audit-hero__features {
    flex-direction: column;
    align-items: center;
  }

  .audit-form-section {
    padding: 60px 0 80px;
  }

  .audit-form-card {
    padding: 28px;
  }

  .audit-form__row {
    grid-template-columns: 1fr;
  }

  .audit-modal__content {
    padding: 32px 24px;
  }

  .audit-progress__steps {
    flex-wrap: wrap;
    gap: 16px;
  }

  .audit-progress__step {
    flex: 0 0 calc(33% - 12px);
  }

  .audit-report__header {
    flex-direction: column;
    text-align: center;
  }

  .audit-report__content {
    padding: 24px;
  }

  .report-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .audit-progress__step {
    flex: 0 0 calc(50% - 8px);
  }

  .audit-progress__step span {
    font-size: 10px;
  }
}
