/* Audit Form Page Styles */

[x-cloak] {
  display: none !important;
}

/* ===== Header ===== */
.audit-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}

.header-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Main Layout ===== */
.audit-page {
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--background), var(--muted));
}

.audit-main {
  padding: 3rem 0 6rem;
}

.audit-container {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .audit-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* ===== Left Info Section ===== */
.audit-info {
  position: sticky;
  top: 120px;
}

.audit-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1rem;
}

.audit-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.benefits-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.benefits-list li i {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.audit-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-radius: var(--radius-xl);
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ===== Form Container ===== */
.audit-form-container {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .audit-form-container {
    padding: 3rem;
  }
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

.progress-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* ===== Form Steps ===== */
.form-step {
  margin-bottom: 2rem;
}

.step-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--foreground);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(200, 157, 92, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Row (for side-by-side inputs) */
.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.checkbox-label:hover {
  background: var(--muted);
}

.checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--gold-primary);
}

.checkbox-label span {
  font-size: 0.875rem;
  color: var(--foreground);
}

/* ===== Navigation Buttons ===== */
.form-navigation {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-navigation .btn {
  flex: 1;
}

@media (max-width: 639px) {
  .form-navigation {
    flex-direction: column;
  }
}

/* ===== Transitions ===== */
[x-transition] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .audit-info {
    position: static;
  }
  
  .audit-stats {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .audit-main {
    padding: 2rem 0 4rem;
  }
  
  .audit-form-container {
    padding: 1.5rem;
  }
  
  .benefits-list {
    font-size: 0.875rem;
  }
  
  .audit-stats {
    grid-template-columns: 1fr;
  }
}
