/* ========================================
   FIXRA — Discovery Portal (start.html)
   ======================================== */

.start-page {
    min-height: 100vh;
    padding: 120px 0 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.start-container {
    max-width: 640px;
    width: 100%;
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 20%;
}

.step-counter {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ---- STEPS ---- */
.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

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

.step h1 {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.step-intro {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ---- FIELDS ---- */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    color: var(--black);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--gray-400);
}

.field textarea {
    resize: vertical;
    min-height: 80px;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Shake animation for validation */
.shake {
    animation: shakeIt 0.4s ease;
    border-color: #ef4444 !important;
}

@keyframes shakeIt {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ---- CHECKBOX GRID (Pain Points) ---- */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check-card {
    cursor: pointer;
}

.check-card input {
    display: none;
}

.check-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.check-inner i {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: color 0.2s;
}

.check-inner span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.check-card input:checked + .check-inner {
    border-color: var(--green);
    background: rgba(5, 150, 105, 0.04);
}

.check-card input:checked + .check-inner i {
    color: var(--green);
}

.check-card input:checked + .check-inner span {
    color: var(--black);
    font-weight: 600;
}

.check-inner:hover {
    border-color: var(--gray-400);
}

/* ---- RADIO STACK (Product Interest) ---- */
.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-inner {
    padding: 18px 20px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.radio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.radio-header strong {
    font-size: 15px;
    font-weight: 700;
}

.radio-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green);
    background: rgba(5, 150, 105, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
}

.radio-inner p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.radio-card input:checked + .radio-inner {
    border-color: var(--green);
    background: rgba(5, 150, 105, 0.04);
}

.radio-inner:hover {
    border-color: var(--gray-400);
}

/* ---- STEP NAV ---- */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 100px;
    transition: color 0.15s, background 0.15s;
}

.btn-back:hover {
    color: var(--black);
    background: var(--gray-200);
}

.step-nav .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
}

/* ---- SUCCESS STATE ---- */
.success-state {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    width: 56px;
    height: 56px;
    color: var(--green);
}

.success-state h1 {
    margin-bottom: 12px;
}

.success-state .step-intro {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .start-page {
        padding: 100px 0 40px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .success-actions .btn,
    .success-actions .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
