/* ============================================
   Franya — buy-banner page styles
   ============================================ */

.buy-banner {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 60vh;
}

.buy-banner__header {
    text-align: center;
    margin-bottom: 48px;
}

.buy-banner__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.buy-banner__subtitle {
    font-size: 18px;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Design CTA banner === */
.buy-banner__design-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #6C3CE1 0%, #8B5CF6 100%);
    color: #fff;
    border-radius: 16px;
    margin-bottom: 48px;
    box-shadow: 0 10px 40px rgba(108, 60, 225, 0.25);
}

.design-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.design-cta__body {
    flex: 1;
}

.design-cta__body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.design-cta__body p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.buy-banner__design-cta .btn {
    background: #fff;
    color: #6C3CE1;
    border: none;
    flex-shrink: 0;
}

.buy-banner__design-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === Form steps === */
.form-step {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

.form-step__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.form-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6C3CE1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.form-step__header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
}

/* === Position cards === */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.position-card {
    display: block;
    cursor: pointer;
}

.position-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.position-card__inner {
    padding: 24px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    height: 100%;
}

.position-card:hover .position-card__inner {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.position-card--selected .position-card__inner {
    border-color: #6C3CE1;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

.position-card__icon {
    font-size: 24px;
    color: #6C3CE1;
    margin-bottom: 12px;
}

.position-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.position-card__desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 12px;
}

.position-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #6C3CE1;
    margin-top: auto;
}

/* === Pricing cards === */
.pricing-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-models__placeholder {
    color: #94A3B8;
    text-align: center;
    padding: 24px;
    grid-column: 1 / -1;
}

.pricing-card {
    display: block;
    cursor: pointer;
}

.pricing-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pricing-card__inner {
    padding: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    height: 100%;
}

.pricing-card:hover .pricing-card__inner {
    border-color: #c4b5fd;
}

.pricing-card--selected .pricing-card__inner {
    border-color: #6C3CE1;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

.pricing-card__icon {
    font-size: 20px;
    color: #6C3CE1;
    margin-bottom: 8px;
}

.pricing-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.pricing-card__unit {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

.pricing-card__min {
    font-size: 11px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Quantity row === */
.quantity-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.form-label__hint {
    font-weight: 400;
    color: #94A3B8;
    font-size: 13px;
}

.form-label__required {
    color: #EF4444;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #6C3CE1;
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

.form-hint {
    font-size: 12px;
    color: #64748B;
    margin-top: 6px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-row--two > .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 16px;
}

/* === Banner upload === */
.banner-upload {
    position: relative;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-upload:hover {
    border-color: #6C3CE1;
    background: #faf5ff;
}

.banner-upload--dragover {
    border-color: #6C3CE1;
    background: #f5f3ff;
    transform: scale(1.01);
}

.banner-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.banner-upload__placeholder {
    pointer-events: none;
}

.banner-upload__placeholder i {
    font-size: 40px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.banner-upload__placeholder p {
    margin: 4px 0;
    color: #475569;
    font-size: 14px;
}

.banner-upload__hint {
    font-size: 12px !important;
    color: #94A3B8 !important;
}

.banner-upload__preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    pointer-events: none;
}

/* === Auth prompt === */
.auth-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
    flex-wrap: wrap;
}

.auth-prompt i {
    font-size: 22px;
    color: #d97706;
    flex-shrink: 0;
}

.auth-prompt div {
    flex: 1;
    min-width: 200px;
    color: #78350F;
    font-size: 14px;
    line-height: 1.5;
}

/* === Order summary === */
.order-summary {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.order-summary__title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.order-summary__row span {
    color: rgba(255, 255, 255, 0.7);
}

.order-summary__row strong {
    color: #fff;
    font-weight: 600;
}

.order-summary__row--total {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

.order-summary__row--total strong {
    color: #a78bfa;
    font-size: 24px;
    font-weight: 800;
}

.order-summary__note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    line-height: 1.5;
    text-align: center;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: #6C3CE1;
    color: #fff;
}

.btn--primary:hover:not(:disabled) {
    background: #5b2fd1;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}

.btn--outline {
    background: transparent;
    color: #6C3CE1;
    border: 1px solid #6C3CE1;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn--block {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Questions footer === */
.buy-banner__questions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
}

.buy-banner__questions i {
    color: #229ED9;
    font-size: 20px;
}

.buy-banner__questions a {
    color: #6C3CE1;
    font-weight: 600;
}

/* === Coming soon === */
.crypto-banners-coming-soon {
    text-align: center;
    padding: 80px 20px;
}

/* === Mobile === */
@media (max-width: 640px) {
    .buy-banner__design-cta {
        flex-direction: column;
        text-align: center;
    }
    .design-cta__icon {
        margin: 0 auto;
    }
    .form-step {
        padding: 20px;
    }
    .order-summary {
        padding: 20px;
    }
}
