/* ========================================
   VALIDATE — Multi-Step Form Styles
   Startup Idea Validator landing page
   ======================================== */

/* ========================================
   WIZARD WRAPPER
   ======================================== */
.vf-wizard {
    background: var(--bg-card, #1c1a17);
    border: 1px solid var(--border, rgba(196, 162, 101, 0.12));
    border-radius: 12px;
    padding: 32px;
    max-width: 560px;
    margin: 32px auto;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.vf-progress {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 32px;
    position: relative;
}

.vf-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.vf-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(196, 162, 101, 0.3);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.vf-progress-step.active .vf-progress-dot {
    background: var(--gold, #c4a265);
    border-color: var(--gold, #c4a265);
}

.vf-progress-step.completed .vf-progress-dot {
    background: var(--gold, #c4a265);
    border-color: var(--gold, #c4a265);
    box-shadow: inset 0 0 0 2px var(--bg-card, #1c1a17);
}

.vf-progress-label {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #5c5750);
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.vf-progress-step.active .vf-progress-label,
.vf-progress-step.completed .vf-progress-label {
    color: var(--text-dim, #9a958c);
}

/* Connector line between dots */
.vf-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4px;
    left: calc(50% + 8px);
    right: calc(-50% + 8px);
    height: 1px;
    background: rgba(196, 162, 101, 0.15);
    z-index: 0;
}

.vf-progress-step.completed:not(:last-child)::after {
    background: var(--gold, #c4a265);
    opacity: 0.4;
}

/* ========================================
   STEPS
   ======================================== */
.vf-step {
    display: none;
}

.vf-step.active {
    display: block;
}

/* ========================================
   STEP TITLE
   ======================================== */
.vf-step-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text, #e8e4dc);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ========================================
   FIELDS
   ======================================== */
.vf-field {
    margin-bottom: 20px;
}

.vf-label {
    display: block;
    color: var(--text, #e8e4dc);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.vf-help {
    color: var(--text-dim, #9a958c);
    font-size: 0.78rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ========================================
   INPUTS
   ======================================== */
.vf-input,
.vf-textarea,
.vf-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 162, 101, 0.15);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text, #e8e4dc);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.vf-input:focus,
.vf-textarea:focus,
.vf-select:focus {
    border-color: var(--gold, #c4a265);
}

.vf-input::placeholder,
.vf-textarea::placeholder {
    color: rgba(232, 228, 220, 0.3);
}

/* Textarea */
.vf-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* Select */
.vf-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4a265' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

/* Select option styling (for dropdown) */
.vf-select option {
    background: #1c1a17;
    color: #e8e4dc;
}

/* ========================================
   CHARACTER COUNTER
   ======================================== */
.vf-char-count {
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-dim, #9a958c);
    margin-top: 4px;
}

.vf-char-count.over {
    color: #ef4444;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */
.vf-error {
    color: #ef4444;
    font-size: 0.78rem;
    margin-top: 4px;
    display: none;
}

.vf-error.visible {
    display: block;
}

/* ========================================
   NAVIGATION
   ======================================== */
.vf-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}

.vf-btn-back {
    background: transparent;
    border: 1px solid rgba(196, 162, 101, 0.2);
    color: var(--text, #e8e4dc);
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.vf-btn-back:hover {
    border-color: var(--gold, #c4a265);
}

.vf-btn-next,
.vf-btn-submit {
    background: var(--gold, #c4a265);
    color: var(--bg, #0f0e0c);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-left: auto;
}

.vf-btn-next:hover,
.vf-btn-submit:hover {
    background: var(--gold-light, #d4b87a);
}

.vf-btn-next:disabled,
.vf-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   SUCCESS STATE
   ======================================== */
.vf-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.vf-success.visible {
    display: block;
}

.vf-success-icon {
    width: 56px;
    height: 56px;
    border: 2px solid var(--gold, #c4a265);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.vf-success-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold, #c4a265);
}

.vf-success h3 {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text, #e8e4dc);
    margin-bottom: 8px;
}

.vf-success p {
    font-size: 0.88rem;
    color: var(--text-dim, #9a958c);
    line-height: 1.6;
    margin-bottom: 8px;
}

.vf-success a {
    color: var(--gold, #c4a265);
}

/* ========================================
   GLOBAL ERROR / INFO BANNER
   ======================================== */
.vf-banner {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: none;
}

.vf-banner.visible {
    display: block;
}

.vf-banner--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.vf-banner--info {
    background: var(--gold-subtle, rgba(196, 162, 101, 0.10));
    border: 1px solid var(--border, rgba(196, 162, 101, 0.12));
    color: var(--text, #e8e4dc);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
    .vf-wizard {
        padding: 20px;
        border-radius: 8px;
        margin: 24px auto;
    }

    .vf-step-title {
        font-size: 1.25rem;
    }

    .vf-progress-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .vf-input,
    .vf-textarea,
    .vf-select {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .vf-btn-back {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .vf-btn-next,
    .vf-btn-submit {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    .vf-nav {
        margin-top: 24px;
    }

    .vf-success {
        padding: 28px 16px;
    }
}
