/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple-deep: #5a1f6e;
  --purple-main: #7b2d8e;
  --purple-light: #a855c7;
  --purple-bg: #f8f4fb;
  --purple-border: #d4b8e0;
  --gold: #d4a745;
  --gold-light: #f0d68a;
  --text: #2c2c2c;
  --text-light: #666;
  --bg: #fefcff;
  --white: #fff;
  --shadow: 0 2px 12px rgba(90, 31, 110, 0.08);
  --shadow-lg: 0 8px 30px rgba(90, 31, 110, 0.12);
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* Hero Header */
.hero {
  width: 100%;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

/* Container */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* Introduction */
.intro {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 10px;
}

.intro h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 16px;
}

.intro p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 12px;
  font-size: 0.95rem;
}

.disclaimer-intro {
  background: #fff9e6;
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.85rem !important;
  color: #7a6520 !important;
  margin-top: 20px !important;
  display: inline-block;
}

/* Form Section */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  border: 1px solid var(--purple-border);
}

.form-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--purple-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  margin-bottom: 20px;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.required {
  color: #e74c3c;
}

input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--purple-border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple-main);
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.12);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

::placeholder {
  color: #bbb;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-deep) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 45, 142, 0.3);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123, 45, 142, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.2em;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #c49a30 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 167, 69, 0.3);
  margin-bottom: 16px;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 167, 69, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--purple-main);
  border: 1.5px solid var(--purple-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--purple-bg);
  border-color: var(--purple-main);
}

/* Progress Section */
.progress-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  border: 1px solid var(--purple-border);
}

.progress-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 24px;
}

.team-info h3 {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 16px;
}

.specialists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.specialist {
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.specialist.active {
  border-color: var(--purple-main);
  background: linear-gradient(135deg, #f0e6f6 0%, #e8d8f0 100%);
  box-shadow: 0 0 12px rgba(123, 45, 142, 0.15);
}

.specialist.completed {
  border-color: #27ae60;
  background: #f0faf4;
}

.spec-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.spec-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 2px;
}

.spec-role {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.spec-status {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
}

.progress-log {
  background: #f9f7fb;
  border-radius: 8px;
  padding: 20px;
  min-height: 100px;
}

#progress-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.85rem;
  border-left: 3px solid var(--purple-main);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.progress-msg .time {
  color: var(--text-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Spinner */
.spinner {
  text-align: center;
  padding: 20px;
}

.spinner p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 12px;
  font-style: italic;
}

.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--purple-border);
  border-top-color: var(--purple-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Result Section */
.result-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 50px 40px;
  border: 2px solid #27ae60;
  text-align: center;
}

.result-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 16px;
}

.result-text {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--purple-border);
  color: var(--text-light);
}

footer p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-note {
  font-size: 0.75rem !important;
  font-style: italic;
  color: #999 !important;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-section,
  .progress-section,
  .result-section {
    padding: 24px 16px;
  }

  .intro h2 {
    font-size: 1.4rem;
  }

  .specialists {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-img {
    max-height: 200px;
  }
}

@media (max-width: 400px) {
  .specialists {
    grid-template-columns: 1fr;
  }
}
