/* =========================================================================
 * NGO Launchpad — wizard styles
 * Brand: --primary-color #293541, --secondary-color #ff6015
 * ========================================================================= */

.launchpad-area {
    background: #f7f8fa;
    min-height: 70vh;
}

.launchpad-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ---------- Progress rail ---------- */
.launchpad-rail-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 2px 14px rgba(41, 53, 65, 0.06);
    position: sticky;
    top: 96px;
}
.launchpad-progress {
    width: 100%;
    height: 8px;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.launchpad-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6015 0%, #ff8a4d 100%);
    transition: width 0.35s ease;
}
.launchpad-progress-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 18px;
    text-align: right;
}

.launchpad-rail-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.launchpad-rail-step a,
.launchpad-rail-step .launchpad-rail-locked {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #293541;
    font-size: 14px;
    transition:
        background 0.2s,
        color 0.2s;
}
.launchpad-rail-step a:hover {
    background: #f0f2f5;
}
.launchpad-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #eef0f3;
    color: #6b7280;
}
.launchpad-rail-step.is-done .launchpad-step-num {
    background: #d1fadf;
    color: #027a48;
}
.launchpad-rail-step.is-done .launchpad-step-num svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
    display: block;
}
.launchpad-rail-step.is-done .launchpad-step-num .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.launchpad-rail-step.is-active .launchpad-step-num,
.launchpad-rail-step.is-current .launchpad-step-num {
    background: #ff6015;
    color: #fff;
}
.launchpad-rail-step.is-current {
    background: #fff5ef;
}
.launchpad-rail-step.is-current a {
    color: #293541;
    font-weight: 600;
}
.launchpad-rail-step.is-locked .launchpad-rail-locked {
    color: #aab1bb;
    cursor: not-allowed;
}

/* ---------- Body card ---------- */
.launchpad-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 2px 14px rgba(41, 53, 65, 0.06);
}
.launchpad-step-head {
    margin-bottom: 28px;
}
.launchpad-step-title {
    font-size: 26px;
    font-weight: 700;
    color: #293541;
    margin: 0 0 8px;
}
.launchpad-step-lead {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* ---------- Forms ---------- */
.launchpad-form .launchpad-field {
    margin-bottom: 22px;
}
.launchpad-form label {
    display: block;
    font-weight: 600;
    color: #293541;
    margin-bottom: 8px;
    font-size: 14px;
}
.launchpad-form input[type="text"],
.launchpad-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #d8dde3;
    border-radius: 10px;
    background: #fff;
    color: #293541;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    font-family: inherit;
}
.launchpad-form input[type="text"]:focus,
.launchpad-form textarea:focus {
    outline: none;
    border-color: #ff6015;
    box-shadow: 0 0 0 3px rgba(255, 96, 21, 0.15);
}
.launchpad-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* ---------- Name cards (Step 2) ---------- */
.launchpad-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.launchpad-name-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.15s;
    position: relative;
}
.launchpad-name-card:hover {
    border-color: #ff6015;
    transform: translateY(-1px);
}
.launchpad-name-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.launchpad-name-card.is-selected,
.launchpad-name-card:has(input[type="radio"]:checked) {
    border-color: #ff6015;
    background: #fff8f3;
}
.launchpad-name-title {
    font-size: 16px;
    font-weight: 700;
    color: #293541;
}
.launchpad-name-why {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}

/* ---------- Choice cards (Step 0) ---------- */
.launchpad-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.launchpad-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
    position: relative;
}
.launchpad-choice:hover {
    border-color: #ff6015;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 96, 21, 0.12);
}
.launchpad-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.launchpad-choice.is-selected,
.launchpad-choice:has(input[type="radio"]:checked) {
    border-color: #ff6015;
    background: #fff8f3;
}
.launchpad-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff5ef;
    color: #ff6015;
}
.launchpad-choice-icon svg {
    width: 22px;
    height: 22px;
}
.launchpad-choice-title {
    font-size: 16px;
    font-weight: 700;
    color: #293541;
}
.launchpad-choice-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* ---------- Actions ---------- */
.launchpad-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eef0f3;
}
.launchpad-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #ff6015;
    color: #fff !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s,
        transform 0.15s;
}
.launchpad-btn-primary:hover {
    background: #e8540a;
    transform: translateY(-1px);
}
.launchpad-btn-primary svg {
    width: 16px;
    height: 16px;
}
.launchpad-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    transition:
        color 0.2s,
        background 0.2s;
}
.launchpad-btn-secondary:hover {
    color: #293541;
    background: #f0f2f5;
}
.launchpad-btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* ---------- AI summary ---------- */
.launchpad-ai-summary {
    margin-top: 22px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff8f3 0%, #fef3ec 100%);
    border-left: 4px solid #ff6015;
    border-radius: 10px;
}
.launchpad-ai-summary-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ff6015;
    margin-bottom: 10px;
}
.launchpad-ai-summary-head svg {
    width: 16px;
    height: 16px;
}
.launchpad-ai-summary-body {
    font-size: 14px;
    line-height: 1.7;
    color: #293541;
}

/* ---------- Document editor (Step 4) ---------- */
.launchpad-doc-editor {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14.5px;
    line-height: 1.7;
    min-height: 480px;
}
.launchpad-disclosure {
    margin-top: 22px;
    padding: 14px 18px;
    background: #f7f8fa;
    border-radius: 10px;
}
.launchpad-disclosure summary {
    cursor: pointer;
    font-weight: 600;
    color: #293541;
    list-style: none;
    padding: 4px 0;
}
.launchpad-disclosure summary::before {
    content: "+ ";
    color: #ff6015;
    font-weight: 700;
}
.launchpad-disclosure[open] summary::before {
    content: "− ";
}
.launchpad-disclosure-body {
    padding: 12px 0 4px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}
.launchpad-disclosure-body ul {
    padding-left: 20px;
}
.launchpad-disclosure-body li {
    margin-bottom: 4px;
}

/* ---------- Branding (Step 5) ---------- */
.launchpad-brand-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
.launchpad-brand-preview {
    text-align: center;
    padding: 18px;
    background: #f7f8fa;
    border-radius: 14px;
}
.launchpad-brand-preview svg {
    display: block;
    margin: 0 auto;
}
.launchpad-brand-name {
    margin-top: 12px;
    font-weight: 700;
    color: #293541;
    font-size: 15px;
}
.launchpad-brand-controls .launchpad-field {
    margin-bottom: 18px;
}
.launchpad-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.launchpad-field-row input[type="color"] {
    width: 100%;
    height: 44px;
    border: 1.5px solid #d8dde3;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    background: #fff;
}
.launchpad-palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.launchpad-palette-swatch {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    overflow: hidden;
    transition:
        border-color 0.2s,
        transform 0.15s;
}
.launchpad-palette-swatch:hover {
    border-color: #ff6015;
    transform: translateY(-1px);
}
.launchpad-palette-swatch span {
    display: block;
    width: 28px;
    height: 28px;
}
.launchpad-shape-picker {
    display: flex;
    gap: 8px;
}
.launchpad-shape-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    font-size: 14px;
    transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s;
    position: relative;
}
.launchpad-shape-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.launchpad-shape-option.is-selected,
.launchpad-shape-option:has(input:checked) {
    border-color: #ff6015;
    background: #fff8f3;
    color: #ff6015;
}

@media (max-width: 720px) {
    .launchpad-brand-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Organogram (Step 6) ---------- */
.launchpad-org-level {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px 18px;
    margin-bottom: 18px;
}
.launchpad-org-level legend {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ff6015;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.launchpad-org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}
.launchpad-org-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f8fa;
    transition: background 0.2s;
}
.launchpad-org-row.is-picked {
    background: #fff8f3;
}
.launchpad-org-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #293541;
    font-size: 14px;
    flex: 0 0 auto;
    min-width: 130px;
}
.launchpad-org-pick input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6015;
    cursor: pointer;
}
.launchpad-org-title {
    flex: 0 0 auto;
}
.launchpad-org-holder {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
    color: #293541;
}
.launchpad-org-holder:focus {
    outline: none;
    border-color: #ff6015;
    box-shadow: 0 0 0 3px rgba(255, 96, 21, 0.15);
}

/* ---------- Checklist (Step 7) ---------- */
.launchpad-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    counter-reset: lpchk;
}
.launchpad-check-item {
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.launchpad-check-item.is-done {
    border-color: #d1fadf;
    background: #f7fffb;
}
.launchpad-check-item label {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    align-items: flex-start;
    margin: 0;
    font-weight: 400;
}
.launchpad-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: #027a48;
    cursor: pointer;
    margin-top: 2px;
}
.launchpad-check-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff5ef;
    color: #ff6015;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 28px;
}
.launchpad-check-item.is-done .launchpad-check-num {
    background: #d1fadf;
    color: #027a48;
}
.launchpad-check-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.launchpad-check-body strong {
    color: #293541;
    font-size: 15px;
}
.launchpad-check-body small {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Uploads (Step 8) ---------- */
.launchpad-upload-bucket {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.launchpad-upload-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}
.launchpad-upload-head svg {
    width: 22px;
    height: 22px;
    color: #ff6015;
    flex: 0 0 22px;
}
.launchpad-upload-head h3 {
    margin: 0;
    font-size: 15px;
    color: #293541;
    font-weight: 700;
}
.launchpad-upload-head small {
    color: #6b7280;
    font-size: 13px;
}
.launchpad-upload-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.launchpad-upload-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f7f8fa;
    border-radius: 8px;
    margin-bottom: 6px;
}
.launchpad-upload-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #293541;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}
.launchpad-upload-list li a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.launchpad-upload-list li a svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex: 0 0 16px;
}
.launchpad-upload-list li small {
    color: #6b7280;
    font-size: 12px;
}
.launchpad-upload-del button {
    background: none;
    border: none;
    cursor: pointer;
    color: #aab1bb;
    padding: 4px;
    transition: color 0.15s;
}
.launchpad-upload-del button:hover {
    color: #b42318;
}
.launchpad-upload-del button svg {
    width: 16px;
    height: 16px;
}
.launchpad-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.launchpad-upload-drop {
    flex: 1;
    padding: 12px 14px;
    cursor: pointer;
    border: 1.5px dashed #d8dde3;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fafbfc;
    transition:
        border-color 0.2s,
        color 0.2s;
}
.launchpad-upload-drop:hover {
    border-color: #ff6015;
    color: #ff6015;
}
.launchpad-upload-drop input[type="file"] {
    display: none;
}
.launchpad-upload-drop svg {
    width: 18px;
    height: 18px;
}

/* ---------- Activate (Step 9) ---------- */
.launchpad-summary {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fafbfc;
    padding: 18px 20px;
    margin: 0 0 22px;
    position: relative;
}
.launchpad-summary h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.launchpad-summary dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 16px;
    margin: 0;
}
.launchpad-summary dt {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
}
.launchpad-summary dd {
    margin: 0;
    color: #293541;
    font-size: 14px;
    line-height: 1.5;
}
.launchpad-summary-logo {
    position: absolute;
    top: 18px;
    right: 20px;
}
@media (max-width: 720px) {
    .launchpad-summary dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .launchpad-summary dl dd {
        margin-bottom: 8px;
    }
    .launchpad-summary-logo {
        display: none;
    }
}

.launchpad-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 22px;
}
@media (max-width: 720px) {
    .launchpad-auth-grid {
        grid-template-columns: 1fr;
    }
}
.launchpad-auth-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: border-color 0.2s;
}
.launchpad-auth-card:hover {
    border-color: #ff6015;
}
.launchpad-auth-card h3 {
    margin: 0 0 8px;
    color: #293541;
    font-size: 16px;
    font-weight: 700;
}
.launchpad-auth-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Done (Step 10) ---------- */
.launchpad-step-head--celebrate {
    text-align: center;
}
.launchpad-celebrate-logo {
    margin: 0 auto 16px;
    display: inline-block;
}
.launchpad-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 24px;
}
@media (max-width: 720px) {
    .launchpad-next-grid {
        grid-template-columns: 1fr;
    }
}
.launchpad-next-card {
    display: block;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}
.launchpad-next-card:hover {
    border-color: #ff6015;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(41, 53, 65, 0.08);
    text-decoration: none;
}
.launchpad-next-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff5ef;
    color: #ff6015;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.launchpad-next-icon svg {
    width: 20px;
    height: 20px;
}
.launchpad-next-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #293541;
    font-weight: 700;
}
.launchpad-next-card p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Disclaimer ---------- */
.launchpad-disclaimer {
    margin-top: 18px;
    padding: 14px 18px;
    background: #fff;
    border: 1px dashed #d8dde3;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
}
.lp-disc-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .launchpad-rail-card {
        position: static;
        margin-bottom: 16px;
    }
    .launchpad-card {
        padding: 24px 20px;
    }
    .launchpad-step-title {
        font-size: 22px;
    }
}

/* On mobile, collapse the vertical step rail into a horizontal scroller. */
@media (max-width: 768px) {
    .launchpad-rail-steps {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 4px 0 8px;
        margin: 0;
    }
    .launchpad-rail-step {
        flex: 0 0 auto;
        min-width: 130px;
    }
    .launchpad-rail-step a,
    .launchpad-rail-step .launchpad-rail-locked {
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    .launchpad-rail-step .launchpad-step-label {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .launchpad-progress {
        margin-bottom: 8px;
    }
}

/* Accessibility: visible focus rings on every interactive element. */
.launchpad-card a:focus-visible,
.launchpad-card button:focus-visible,
.launchpad-card input:focus-visible,
.launchpad-card textarea:focus-visible,
.launchpad-card select:focus-visible,
.launchpad-rail-step a:focus-visible,
.launchpad-choice:focus-within,
.launchpad-name-card:focus-within,
.launchpad-next-card:focus-visible,
.launchpad-auth-card:focus-within {
    outline: 3px solid #ff6015;
    outline-offset: 2px;
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .launchpad-progress-bar,
    .launchpad-next-card,
    .launchpad-rail-step a,
    .launchpad-choice {
        transition: none !important;
    }
    .launchpad-next-card:hover {
        transform: none;
    }
}

/* Screen-reader-only utility (used for live regions etc.). */
.lp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

textarea {
    min-height: 200px;
}