/* CK Studios Intake Forms — Shared Styles (Light Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f7f5;
  --surface-soft: #fafaf8;
  --border: #d9d9d3;
  --border-strong: #111111;
  --accent: #111111;
  --accent-hover: #2a2a2a;
  --text: #111111;
  --text-muted: #5d5d56;
  --input-bg: #ffffff;
  --input-border: #cfcfc8;
  --input-focus: #111111;
  --success: #1f7a3d;
  --error: #c23a2b;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header .logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.header h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

.progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: #e8e8e2;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.progress-step.active {
  background: var(--accent);
}

.form-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.form-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.card .section-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

label .required {
  color: var(--error);
  margin-left: 2px;
}

label .hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  padding: 13px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8b8b84;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

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

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.option-item input {
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.file-upload {
  position: relative;
  border: 2px dashed var(--input-border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: var(--surface-soft);
}

.file-upload:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload .upload-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.file-upload .upload-text {
  font-size: 13px;
  color: var(--text-muted);
}

.file-upload .upload-text strong {
  color: var(--text);
}

.file-upload .file-name {
  margin-top: 10px;
  font-size: 13px;
  color: var(--success);
  word-break: break-word;
}

.conditional {
  display: none;
  margin-top: 12px;
}

.conditional.visible {
  display: block;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

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

.completion {
  text-align: center;
  padding: 30px 0 10px;
}

.completion .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(31, 122, 61, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.completion h2 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
}

.completion p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 18px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-download:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.summary-card {
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.summary-card h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
  min-width: 36%;
}

.summary-value {
  color: var(--text);
  text-align: right;
  max-width: 64%;
  word-break: break-word;
}

.ck-logo-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.ck-logo-footer img {
  width: 72px;
  height: auto;
  display: block;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .container {
    padding: 24px 16px 48px;
  }

  .header h1 {
    font-size: 24px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn,
  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .summary-row {
    flex-direction: column;
    gap: 4px;
  }

  .summary-value {
    text-align: left;
    max-width: 100%;
  }
}
