/* ============================================================
   LegalnyMedyk — Become Author Page Styles
   become_author.css — loaded only on /zostan-autorem/
   Depends on: landing.css (must be loaded first), main.css
   ============================================================ */

/* ============================================================
   MINI-HERO — shorter variant of landing-hero
   ============================================================ */
.ba-mini-hero {
    padding: 72px 0 56px;
}
.ba-mini-hero .landing-hero__inner {
    max-width: 800px;
}
.ba-mini-hero .landing-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ============================================================
   PERSONA CARDS — "Kogo szukamy" (4 cards grid)
   ============================================================ */
.ba-personas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ba-persona-card {
    background: var(--white);
    border-radius: var(--landing-card-radius, 12px);
    border: 1px solid var(--ink-300);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ba-persona-card:hover {
    box-shadow: 0 8px 32px rgba(46, 164, 217, 0.15);
    transform: translateY(-3px);
}
.ba-persona-card__icon {
    width: 56px;
    height: 56px;
    background: var(--brand-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}
.ba-persona-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    line-height: 1.3;
}
.ba-persona-card__desc {
    font-size: 0.85rem;
    color: var(--ink-700);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   BENEFITS GRID — "Co zyskujesz" (6 cards)
   ============================================================ */
.ba-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ba-benefit-card {
    background: var(--white);
    border-radius: var(--landing-card-radius, 12px);
    border: 1px solid var(--ink-300);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ba-benefit-card:hover {
    box-shadow: 0 8px 32px rgba(46, 164, 217, 0.15);
    transform: translateY(-3px);
}
.ba-benefit-card__icon {
    font-size: 1.6rem;
    color: var(--brand-primary);
    width: 48px;
    height: 48px;
    background: var(--brand-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-benefit-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    line-height: 1.3;
}
.ba-benefit-card__desc {
    font-size: 0.875rem;
    color: var(--ink-700);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   PROCESS STEPS — "Jak wygląda proces" (4 steps)
   ============================================================ */
.ba-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
    counter-reset: ba-step;
}
.ba-step {
    position: relative;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ba-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: 40px;
    font-size: 1.5rem;
    color: var(--brand-primary);
    opacity: 0.45;
}
.ba-step__num {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.15;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ba-step__icon {
    font-size: 1.4rem;
    color: var(--brand-primary);
    margin-top: -8px;
}
.ba-step__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    line-height: 1.3;
}
.ba-step__desc {
    font-size: 0.85rem;
    color: var(--ink-700);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   PUBLISHING RULES — "Zasady publikacji" (4 points)
   ============================================================ */
.ba-rules-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
}
.ba-rule-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--landing-card-radius, 12px);
    padding: 20px 24px;
    border: 1px solid var(--ink-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ba-rule-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--brand-primary);
}
.ba-rule-item__body {
    flex: 1;
    min-width: 0;
}
.ba-rule-item__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 4px;
    line-height: 1.3;
}
.ba-rule-item__desc {
    font-size: 0.875rem;
    color: var(--ink-700);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.ba-form-section {
    background: var(--white);
}

.ba-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.ba-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ba-field--full {
    grid-column: 1 / -1;
}

.ba-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-800);
    line-height: 1.4;
}
.ba-field label small {
    font-weight: 400;
    color: var(--ink-600);
}

.ba-field input[type="text"],
.ba-field input[type="email"],
.ba-field input[type="tel"],
.ba-field input[type="url"],
.ba-field input[type="file"],
.ba-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--ink-300);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink-900);
    background: var(--ink-100);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.5;
}
.ba-field input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
}
.ba-field textarea {
    resize: vertical;
    min-height: 80px;
}
.ba-field input:focus,
.ba-field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 164, 217, 0.12);
}
.ba-field input:invalid:not(:placeholder-shown),
.ba-field textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger, #E74C3C);
}

.ba-req {
    color: #d63031;
    font-weight: 700;
}

.ba-counter {
    font-size: 0.78rem;
    color: var(--ink-600, #888888);
    text-align: right;
    display: block;
}

.ba-file-hint {
    font-size: 0.78rem;
    color: var(--ink-600, #888888);
}

/* Checkboxes */
.ba-checkbox-row label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.875rem;
    color: var(--ink-700);
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}
.ba-checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}
.ba-checkbox-row a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Form actions */
.ba-form-actions {
    max-width: 780px;
    margin: 32px auto 0;
    display: flex;
    justify-content: flex-start;
}

/* Form feedback */
.ba-form-feedback {
    max-width: 780px;
    margin: 16px auto 0;
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}
.ba-form-feedback.is-error {
    display: block;
    background: var(--danger-light, #FFEBEE);
    /* fix: #C0392B on #FFEBEE = 4.78:1 PASS */
    color: #C0392B;
    border: 1px solid #FFCDD2;
}
.ba-form-feedback.is-success {
    display: block;
    background: #E8F5E9;
    /* fix: #2E7D32 on #E8F5E9 = 6.49:1 PASS */
    color: #2E7D32;
    border: 1px solid #C3E6CB;
}

/* Submit button (extends .btn-cta) */
#becomeAuthorSubmit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   ALT BACKGROUND UTILITY
   ============================================================ */
.landing-section--alt-bg {
    background: var(--ink-100);
}

/* ============================================================
   COMMUNITY AUTHORS GRID — reuses landing-authors-grid
   ============================================================ */
.ba-community-grid {
    justify-content: center;
}

/* ============================================================
   TESTIMONIALS — placeholder cards (kept for reference)
   ============================================================ */
.ba-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}
.ba-testimonial-card {
    background: var(--white);
    border-radius: var(--landing-card-radius, 12px);
    border: 1px solid var(--ink-300);
    padding: 28px 28px 24px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.ba-testimonial-card__quote {
    font-size: 1.8rem;
    color: var(--brand-primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}
.ba-testimonial-card__text {
    font-size: 0.95rem;
    color: var(--ink-700);
    line-height: 1.7;
    margin: 0 0 20px;
    font-style: italic;
}
.ba-testimonial-card__author {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
}
.ba-testimonial-card__role {
    font-size: 0.8rem;
    color: var(--ink-600);
    margin: 2px 0 0;
}
.ba-testimonial-placeholder {
    background: var(--ink-100);
    border-style: dashed;
}
.ba-testimonial-placeholder .ba-testimonial-card__text {
    color: var(--ink-600);
    font-style: normal;
}

/* ============================================================
   FAQ — author-specific (reuses .landing-faq styles)
   ============================================================ */
.ba-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.ba-thankyou {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    background: var(--ink-100);
}
.ba-thankyou__inner {
    text-align: center;
    padding: 96px 24px;
    max-width: 600px;
    margin: 0 auto;
}
.ba-thankyou__icon {
    font-size: 80px;
    color: #2E7D32;
    line-height: 1;
    margin-bottom: 28px;
    display: block;
}
.ba-thankyou__inner h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ink-900);
    margin: 0 0 20px;
    line-height: 1.2;
}
.ba-thankyou__inner .landing-section__lead {
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.ba-thankyou__inner p a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
}
.ba-thankyou__cta {
    margin-top: 36px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ba-personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ba-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .ba-step:not(:last-child)::after {
        display: none;
    }
    .ba-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ba-mini-hero {
        padding: 56px 0 44px;
    }
    .ba-personas-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ba-benefits-grid {
        grid-template-columns: 1fr;
    }
    .ba-steps-grid {
        grid-template-columns: 1fr;
    }
    .ba-form-grid {
        grid-template-columns: 1fr;
    }
    .ba-field--full {
        grid-column: 1 / -1;
    }
    .ba-testimonials-grid {
        grid-template-columns: 1fr;
    }
    .ba-form-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ba-personas-grid {
        grid-template-columns: 1fr;
    }
    .ba-thankyou__inner {
        padding: 64px 16px;
    }
    .ba-thankyou__icon {
        font-size: 60px;
    }
}
