/* ========================================
   ブロリリ 投稿フォーム スタイル
   SWELL テーマとの共存を考慮
   ======================================== */

.buroriri-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* フォームグループ */
.bf-group {
    margin-bottom: 24px;
}
.bf-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}
.bf-required {
    font-size: 11px;
    color: #ef4444;
    margin-left: 4px;
    font-weight: 500;
}
.bf-optional {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
    font-weight: 400;
}
.bf-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 入力フィールド */
.bf-input,
.bf-textarea,
.bf-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.bf-input:focus,
.bf-textarea:focus,
.bf-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.bf-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}
.bf-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 画像アップロード */
.bf-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}
.bf-upload-area:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.bf-upload-area svg {
    display: block;
    margin: 0 auto 8px;
    color: #94a3b8;
}
.bf-upload-area p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}
.bf-upload-area small {
    font-size: 12px;
    color: #94a3b8;
}

.bf-image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.bf-image-preview img {
    width: 100%;
    height: auto;
    display: block;
}
.bf-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.bf-remove-image:hover {
    background: rgba(239,68,68,0.9);
}

/* 送信ボタン */
.bf-submit {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.bf-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.bf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* メッセージ */
.bf-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}
.bf-message.bf-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.bf-message.bf-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 注意書き */
.bf-note {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}
.bf-note a {
    color: #2563eb;
}

/* 通知 */
.buroriri-notice {
    padding: 20px 24px;
    border-radius: 8px;
    text-align: center;
}
.buroriri-notice-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ========== 投稿完了画面 ========== */
.buroriri-thankyou {
    text-align: center;
    padding: 48px 0;
}
.bf-thankyou-icon {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #10b981;
    font-weight: bold;
}
.buroriri-thankyou h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #1e293b;
}
.buroriri-thankyou > p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 24px;
}

.bf-share-cta {
    background: #eff6ff;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.bf-share-cta > p {
    font-size: 13px;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 12px;
}
.bf-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.bf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.bf-share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.bf-share-x {
    background: #0f1419;
    color: #fff;
}
.bf-share-line {
    background: #06c755;
    color: #fff;
}

.bf-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.bf-btn-back:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ========== レスポンシブ ========== */
@media (max-width: 640px) {
    .buroriri-form-wrap {
        padding: 0 0 24px;
    }
    .bf-upload-area {
        padding: 24px 16px;
    }
    .bf-share-buttons {
        flex-direction: column;
    }
    .bf-share-btn {
        justify-content: center;
    }
}
