/* ==========================================================================
 ALG DocuSign wizard - docs.css
 Loaded after styles.css + landing.css. Inherits brand tokens.
 ========================================================================== */

.docs {
 background: var(--color-bg);
 min-height: calc(100vh - 60px);
 padding: 40px 0 80px;
}

.docs-eyebrow {
 display: inline-block;
 font-size: 11px;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: var(--color-accent-deep);
 margin-bottom: 14px;
 padding: 4px 10px;
 border: 1px solid var(--color-rule);
 border-radius: var(--r-pill);
 background: var(--color-bg-cream);
}

.docs-h1 {
 font-family: var(--font-serif);
 font-size: clamp(28px, 5vw, 40px);
 line-height: 1.12;
 margin: 0 0 14px;
}
.docs-h2 {
 font-family: var(--font-serif);
 font-size: clamp(22px, 3.5vw, 28px);
 line-height: 1.18;
 margin: 0 0 10px;
}
.docs-lead {
 font-size: 16px;
 color: var(--color-ink-soft);
 line-height: 1.55;
 margin: 0 0 28px;
 max-width: 640px;
}

/* ---------- Progress bar ---------- */
.docs-progress {
 margin: 0 0 32px;
}
.docs-progress__bar {
 height: 4px;
 background: var(--color-rule-soft);
 border-radius: 999px;
 overflow: hidden;
 margin-bottom: 12px;
}
.docs-progress__fill {
 height: 100%;
 background: var(--color-accent-deep);
 width: 0;
 transition: width 0.4s ease;
}
.docs-progress__steps {
 list-style: none;
 margin: 0;
 padding: 0;
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 8px;
}
.docs-progress__steps li {
 display: flex;
 align-items: center;
 flex-direction: column;
 gap: 4px;
 font-size: 11px;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 color: var(--color-ink-muted);
 text-align: center;
}
.docs-progress__steps .dot {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 background: var(--color-rule);
 transition: background 0.3s, transform 0.3s;
}
.docs-progress__steps li.is-current .dot {
 background: var(--color-accent-deep);
 transform: scale(1.4);
}
.docs-progress__steps li.is-done .dot {
 background: var(--color-ink);
}
.docs-progress__steps li.is-current,
.docs-progress__steps li.is-done {
 color: var(--color-ink);
}

/* ---------- Step layout ---------- */
.docs-step {
 animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
 from { opacity: 0; transform: translateY(6px); }
 to { opacity: 1; transform: translateY(0); }
}
.docs-step__head { margin-bottom: 22px; }

/* ---------- Loading + error ---------- */
.docs-loading,
.docs-error {
 background: var(--color-bg-soft);
 border: 1px solid var(--color-rule-soft);
 border-radius: var(--r-card);
 padding: 56px 28px;
 text-align: center;
 color: var(--color-ink-soft);
 font-size: 15px;
}
.docs-loading p { margin: 14px 0 0; }
.spinner {
 width: 36px;
 height: 36px;
 border: 3px solid rgba(26,22,20,0.12);
 border-top-color: var(--color-accent-deep);
 border-radius: 50%;
 animation: spin 0.8s linear infinite;
 margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.docs-error p {
 color: #8c463c;
 margin: 0 0 14px;
 font-size: 15px;
}

/* ---------- Iframe ---------- */
.docs-frame {
 background: var(--color-bg-soft);
 border: 1px solid var(--color-rule);
 border-radius: var(--r-card);
 overflow: hidden;
 box-shadow: var(--shadow-card);
}
.docs-frame iframe {
 width: 100%;
 height: min(80vh, 800px);
 min-height: 560px;
 border: 0;
 display: block;
 background: #fff;
}

.docs-hint {
 margin: 14px 0 0;
 font-size: 12px;
 color: var(--color-ink-muted);
 text-align: center;
}
.docs-hint a { color: var(--color-accent-deep); }

/* ---------- Intake form ---------- */
.docs-intake {
 background: var(--color-bg-soft);
 border: 1px solid var(--color-rule);
 border-radius: var(--r-card);
 padding: 28px;
 box-shadow: var(--shadow-card);
}

/* ---------- Done state ---------- */
.docs-checkmark { margin: 0 auto 22px; }

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
 .docs { padding: 24px 0 56px; }
 .docs-progress__steps .label { font-size: 10px; }
 .docs-frame iframe {
 height: calc(100vh - 240px);
 min-height: 480px;
 }
 .docs-intake { padding: 20px; }
}

@media (max-width: 380px) {
 .docs-progress__steps li .label { display: none; }
 .docs-progress__steps li .dot { width: 12px; height: 12px; }
}
