﻿
/* ==========================================
   BALANDING - CREATE OPPORTUNITY
   ========================================== */

:root {
    --bc-blue: #1479f5;
    --bc-dark-blue: #09266b;
    --bc-text: #526d97;
    --bc-border: #dce8ff;
    --bc-background: #edf5ff;
    --bc-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #eaf3ff, #f8fbff);
    color: var(--bc-dark-blue);
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 15px;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible,
    a:focus-visible {
        outline: 3px solid #8abaff;
        outline-offset: 3px;
    }

[hidden] {
    display: none !important;
}

/* صفحه اصلی فرم */

.bc-page {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 18px 70px;
}

.bc-header {
    margin-bottom: 25px;
}

.bc-back {
    display: inline-block;
    color: var(--bc-blue);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 25px;
}

.bc-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bc-heading-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    border-radius: 22px;
    background: #e0edff;
    font-size: 37px;
}

.bc-heading h1 {
    font-size: 31px;
    margin: 0 0 7px;
}

.bc-heading p {
    color: var(--bc-text);
    margin: 0;
    line-height: 1.9;
}

/* مراحل */

.bc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.bc-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8498b8;
}

    .bc-step span {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #dfe9f9;
        font-weight: 800;
    }

    .bc-step strong {
        font-size: 13px;
    }

    .bc-step.active {
        color: var(--bc-blue);
    }

        .bc-step.active span {
            background: var(--bc-blue);
            color: white;
        }

.bc-step-line {
    width: 75px;
    height: 2px;
    background: #c8d9f4;
}

/* کارت‌ها */

.bc-card {
    background: white;
    border: 1px solid var(--bc-border);
    border-radius: 23px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(35, 83, 155, .06);
}

.bc-card-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.bc-number {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    background: #e8f1ff;
    color: var(--bc-blue);
    font-size: 20px;
    font-weight: 900;
}

.bc-card-title h2 {
    font-size: 20px;
    margin: 0 0 4px;
}

.bc-card-title p {
    margin: 0;
    color: var(--bc-text);
    font-size: 13px;
    line-height: 1.8;
}

/* نوع همکاری */

.bc-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bc-type {
    position: relative;
    cursor: pointer;
    min-width: 0;
}

    .bc-type input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

.bc-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 165px;
    padding: 16px;
    border: 2px solid var(--bc-border);
    border-radius: 18px;
    background: #f9fbff;
    text-align: center;
    transition: .2s;
}

    .bc-type-content strong {
        font-size: 15px;
    }

    .bc-type-content small {
        color: var(--bc-text);
        line-height: 1.8;
        font-size: 11px;
    }

.bc-type-icon {
    font-size: 34px;
}

.bc-type input:checked + .bc-type-content {
    border-color: var(--bc-blue);
    background: #eaf3ff;
    box-shadow: 0 0 0 3px rgba(20,121,245,.08);
}

.bc-type input:focus-visible + .bc-type-content {
    outline: 3px solid #8abaff;
    outline-offset: 3px;
}

/* فیلدها */

.bc-field {
    margin-bottom: 20px;
    min-width: 0;
}

    .bc-field:last-child {
        margin-bottom: 0;
    }

    .bc-field label {
        display: block;
        margin-bottom: 9px;
        font-size: 14px;
        font-weight: 700;
    }

        .bc-field label span {
            color: #e04d5c;
        }

    .bc-field input,
    .bc-field select,
    .bc-field textarea {
        display: block;
        width: 100%;
        min-height: 50px;
        padding: 13px 15px;
        border: 1px solid #d1dff5;
        border-radius: 13px;
        background: #fbfdff;
        color: var(--bc-dark-blue);
        direction: rtl;
        text-align: right;
        outline: none;
    }

    .bc-field textarea {
        min-height: 150px;
        resize: vertical;
        line-height: 2;
    }

        .bc-field input:focus,
        .bc-field select:focus,
        .bc-field textarea:focus {
            border-color: var(--bc-blue);
            box-shadow: 0 0 0 3px rgba(20,121,245,.12);
        }

        .bc-field input::placeholder,
        .bc-field textarea::placeholder {
            color: #97a9c5;
        }

.bc-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bc-character-count {
    margin-top: 7px;
    color: var(--bc-text);
    font-size: 12px;
    text-align: left;
}

/* اطلاع‌رسانی */

.bc-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    background: #eff6ff;
    border-radius: 15px;
    color: #4d6c9b;
    line-height: 2;
}

.bc-notice-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #d5e8ff;
    color: var(--bc-blue);
    font-weight: 900;
}

.bc-notice p {
    margin: 0;
    font-size: 13px;
}

.bc-message {
    color: #bd4242;
    font-size: 13px;
    line-height: 2;
    margin: 15px 0;
}

    .bc-message:empty {
        display: none;
    }

/* دکمه‌ها */

.bc-primary-button,
.bc-secondary-button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 16px;
    font-weight: 800;
    font-size: 15px;
    transition: background .2s;
}

.bc-primary-button {
    background: var(--bc-blue);
    color: white;
}

    .bc-primary-button:hover {
        background: #0866db;
    }

.bc-secondary-button {
    background: #e8f1ff;
    color: #1265c8;
}

    .bc-secondary-button:hover {
        background: #d9e8ff;
    }

/* پیش‌نمایش */

.bc-preview-heading {
    text-align: center;
    margin: 25px 0;
}

.bc-preview-label {
    display: inline-block;
    background: #e1eeff;
    color: #1168d5;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

.bc-preview-heading h2 {
    font-size: 24px;
    margin: 13px 0 7px;
}

.bc-preview-heading p {
    color: var(--bc-text);
    margin: 0;
}

.bc-preview-card {
    background: white;
    border: 1px solid var(--bc-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(35,83,155,.06);
}

.bc-preview-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bc-preview-symbol {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    background: #e6f1ff;
    border-radius: 20px;
    font-size: 46px;
}

.bc-preview-title {
    min-width: 0;
}

.bc-preview-badge {
    display: inline-block;
    background: #eee7ff;
    color: #7040d9;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.bc-preview-title h3 {
    font-size: 22px;
    margin: 10px 0 4px;
    overflow-wrap: anywhere;
}

.bc-preview-title p {
    margin: 0;
    color: var(--bc-text);
}

.bc-divider {
    height: 1px;
    background: #e4eeff;
    margin: 25px 0;
}

.bc-preview-card h4 {
    font-size: 18px;
    margin: 0 0 12px;
}

.bc-preview-description {
    color: #4d6995;
    line-height: 2.2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.bc-preview-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
}

    .bc-preview-details > div {
        background: #f5f9ff;
        border-radius: 15px;
        padding: 17px;
    }

    .bc-preview-details span {
        display: block;
        color: #6b83a9;
        font-size: 12px;
        margin-bottom: 7px;
    }

    .bc-preview-details strong {
        display: block;
        font-size: 15px;
        overflow-wrap: anywhere;
    }

.bc-preview-status {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff8e8;
    border: 1px solid #f6e7c0;
    border-radius: 16px;
    padding: 17px;
    margin-top: 24px;
}

    .bc-preview-status > span {
        color: #bf8c23;
        font-size: 30px;
    }

    .bc-preview-status strong {
        color: #8b631b;
    }

    .bc-preview-status p {
        color: #92784b;
        margin: 5px 0 0;
        font-size: 12px;
        line-height: 1.9;
    }

.bc-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

/* موبایل */

@media (max-width: 650px) {
    .bc-page {
        padding: 20px 12px 45px;
    }

    .bc-heading {
        gap: 12px;
    }

    .bc-heading-icon {
        width: 57px;
        height: 57px;
        font-size: 28px;
        border-radius: 16px;
    }

    .bc-heading h1 {
        font-size: 24px;
    }

    .bc-heading p {
        font-size: 12px;
    }

    .bc-card {
        padding: 18px;
        border-radius: 18px;
    }

    .bc-card-title h2 {
        font-size: 18px;
    }

    .bc-types {
        grid-template-columns: 1fr;
    }

    .bc-type-content {
        min-height: 85px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: right;
        flex-wrap: wrap;
    }

    .bc-type-icon {
        font-size: 27px;
    }

    .bc-type-content small {
        flex-basis: 100%;
    }

    .bc-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bc-steps {
        gap: 8px;
    }

    .bc-step-line {
        width: 25px;
    }

    .bc-step strong {
        font-size: 11px;
    }

    .bc-preview-card {
        padding: 18px;
    }

    .bc-preview-top {
        gap: 12px;
    }

    .bc-preview-symbol {
        width: 65px;
        height: 65px;
        font-size: 34px;
    }

    .bc-preview-title h3 {
        font-size: 17px;
    }

    .bc-preview-details {
        grid-template-columns: 1fr;
    }

    .bc-preview-actions {
        grid-template-columns: 1fr;
    }

    .bc-preview-heading h2 {
        font-size: 20px;
    }
}

/* Four-stage new-platform listing form */
.bl-app .bc-wizard-steps {
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;
    gap:12px;margin:25px 0;padding:20px 16px;
}
.bl-app .bc-wizard-steps .bc-step {flex-direction:column;gap:10px;min-width:0;text-align:center;}
.bl-app .bc-wizard-steps .bc-step strong {font-size:12px;line-height:1.8;overflow-wrap:anywhere;}
.bl-app .bc-wizard-steps .bc-step.is-complete>span {background:#e0f3ed;color:#226d58;}
.bc-wizard-actions {display:flex;gap:12px;justify-content:space-between;align-items:center;padding-bottom:12px;}
.bc-wizard-actions>button {min-width:130px;}
.bc-wizard-actions>#bcNextButton,.bc-wizard-actions>#bcSendButton {margin-inline-start:auto;}
.bc-wizard-actions>button:disabled {opacity:.65;cursor:default;}
.bc-card h2[tabindex="-1"]:focus {outline:none;}
@media(max-width:600px) {
    .bl-app .bc-wizard-steps {gap:5px;padding:17px 8px;}
    .bl-app .bc-wizard-steps .bc-step strong {font-size:11px;}
    .bl-app .bc-wizard-steps .bc-step>span {width:32px;height:32px;}
    .bc-wizard-actions>button {min-width:0;flex:1;padding-inline:14px;}
}
