/* ═══════════════════════════════════════════════
   ZeroCostSite Step Form — style.css
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=DM+Sans:wght@400;500&display=swap');

/* ── Wrapper ── */
.zcs-form-wrap {
    --gold:    #F5C518;
    --gold-dk: #d4a800;
    --bg:      #0f0f1a;
    --bg2:     #1a1a2e;
    --bg3:     #22223a;
    --txt:     #f0f0f8;
    --muted:   #8888aa;
    --error:   #ff6b6b;
    --radius:  14px;

    font-family: 'DM Sans', sans-serif;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px 44px 44px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(245,197,24,0.06),
        0 30px 80px rgba(0,0,0,0.5);
    color: var(--txt);
}

/* Subtle grain texture overlay */
.zcs-form-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

.zcs-form-wrap > * { position: relative; z-index: 1; }

/* ── Progress Bar ── */
.zcs-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    margin-bottom: 14px;
    overflow: hidden;
}

.zcs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dk), var(--gold));
    border-radius: 99px;
    width: 25%;
    transition: width 0.45s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 12px rgba(245,197,24,0.5);
}

/* ── Step Labels ── */
.zcs-step-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
}

.zcs-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color 0.3s;
    cursor: default;
}

.zcs-label.active,
.zcs-label.done {
    color: var(--gold);
}

/* ── Step Panels ── */
.zcs-step {
    display: none;
    flex-direction: column;
    animation: zcsSlideIn 0.35s cubic-bezier(.4,0,.2,1) both;
}

.zcs-step.active {
    display: flex;
}

.zcs-step.slide-out {
    animation: zcsSlideOut 0.25s cubic-bezier(.4,0,.2,1) both;
}

@keyframes zcsSlideIn {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* ── Step Content ── */

.zcs-step-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--txt);
    margin: 0 0 6px;
    line-height: 1.2;
}

.zcs-step-sub {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 24px;
}

/* ── Field ── */
.zcs-field-wrap {
    margin-bottom: 20px;
}

.zcs-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg3);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 15px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--txt);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    caret-color: var(--gold);
}

.zcs-input::placeholder { color: var(--muted); }

.zcs-input:focus {
    border-color: var(--gold);
    background: #26263e;
    box-shadow: 0 0 0 3px rgba(245,197,24,0.12);
}

.zcs-input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}

.zcs-error {
    display: block;
    font-size: 12.5px;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
    transition: opacity 0.2s;
}

/* ── Buttons ── */
.zcs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: var(--radius);
    background: var(--gold);
    color: #0f0f1a;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.zcs-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.zcs-btn:hover {
    background: #ffd23a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,197,24,0.35);
}

.zcs-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

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

.zcs-arrow {
    transition: transform 0.2s;
}

.zcs-btn:hover .zcs-arrow {
    transform: translateX(4px);
}

/* Spinner */
.zcs-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0,0,0,0.2);
    border-top-color: #0f0f1a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.zcs-btn.loading .zcs-btn-text { display: none; }
.zcs-btn.loading .zcs-spinner  { display: inline-block; }

/* Back button */
.zcs-back {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    margin-top: 14px;
    padding: 4px 0;
    text-align: center;
    transition: color 0.2s;
    align-self: center;
}

.zcs-back:hover { color: var(--txt); }

/* ── Success Screen ── */
.zcs-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: zcsSlideIn 0.4s ease both;
}

.zcs-success.show { display: flex; }

.zcs-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.zcs-success h2 {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--txt);
    margin: 0 0 10px;
}

.zcs-success p {
    color: var(--muted);
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.5;
}

.zcs-success-note {
    font-size: 13px !important;
    background: var(--bg3);
    padding: 10px 20px;
    border-radius: 99px;
    margin-top: 12px !important;
    border: 1px solid rgba(245,197,24,0.2);
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .zcs-form-wrap { padding: 28px 22px 32px; }
    .zcs-step-title { font-size: 20px; }
    .zcs-step-labels { gap: 4px; }
    .zcs-label { font-size: 10px; }
}
