/* ========================================
   BRIEF BUILDER — TKOC
   ======================================== */

/* Hero */
.bb-hero {
    padding: 160px 0 60px;
    text-align: center;
}

.bb-badge {
    display: inline-block;
    background: var(--gradient-subtle);
    color: var(--purple);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(154, 76, 255, 0.12);
    margin-bottom: 20px;
}

.bb-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
}

.bb-hero-sub {
    color: var(--gray);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form Section */
.bb-form-section {
    padding: 40px 0 80px;
}

.bb-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Steps */
.bb-step {
    background: var(--white);
    border: 1px solid rgba(154, 76, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.bb-step:hover {
    border-color: rgba(154, 76, 255, 0.15);
    box-shadow: 0 4px 24px rgba(154, 76, 255, 0.06);
}

.bb-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.bb-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--gradient-btn);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
}

.bb-step-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.bb-step-header p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Fields */
.bb-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bb-field-full {
    grid-column: 1 / -1;
}

.bb-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.bb-field input,
.bb-field textarea,
.bb-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(154, 76, 255, 0.12);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--black);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.bb-field input:focus,
.bb-field textarea:focus,
.bb-field select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(154, 76, 255, 0.08);
}

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

/* Option chips */
.bb-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bb-option {
    cursor: pointer;
    margin-bottom: 0 !important;
}

.bb-option input {
    display: none;
}

.bb-option span {
    display: inline-block;
    padding: 10px 18px;
    border: 1.5px solid rgba(154, 76, 255, 0.12);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    cursor: pointer;
}

.bb-option span:hover {
    border-color: var(--purple-light);
    color: var(--purple);
}

.bb-option input:checked + span {
    background: var(--gradient-btn);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(154, 76, 255, 0.25);
}

/* Actions */
.bb-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

/* Output */
.bb-output {
    max-width: 800px;
    margin: 48px auto 0;
    background: var(--gray-light);
    border: 1px solid rgba(154, 76, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.bb-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.bb-output-header h3 {
    font-size: 1.1rem;
}

.bb-output-actions {
    display: flex;
    gap: 10px;
}

.bb-output-content {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--gray-700);
    white-space: pre-wrap;
    font-family: var(--font);
}

/* CTA */
.bb-cta {
    padding: 80px 0;
    text-align: center;
    background: var(--gray-light);
}

.bb-cta h2 {
    margin-bottom: 16px;
}

.bb-cta p {
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bb-hero {
        padding: 130px 0 40px;
    }

    .bb-step {
        padding: 24px 20px;
    }

    .bb-fields {
        grid-template-columns: 1fr;
    }

    .bb-step-header {
        flex-direction: column;
        gap: 12px;
    }

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

    .bb-output-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .bb-hero h1 {
        font-size: 1.8rem;
    }

    .bb-option span {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}