/**
 * Yearts 法国地址弹窗 - 前端样式
 * v2.1.3 - 修复输入框样式 & 城市只读态
 */

/* ========================
   表单容器
   ======================== */
.yfa-form {
    padding: 0;
}

/* ========================
   标签（Tag）
   ======================== */
.yfa-tag-item {
    transition: all 0.2s;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    display: inline-block;
}

.yfa-tag-item:hover {
    opacity: 0.85;
    background: #e8e8e8;
}

.yfa-tag-item.active-tag {
    background-color: #1a73e8 !important;
    color: #fff !important;
    border-color: #1a73e8 !important;
}

/* ========================
   输入框错误态
   ======================== */
.yfa-form .is-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15) !important;
}

.yfa-form .yfa-err {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* ========================
   城市/省份只读输入框
   ======================== */
.yfa-form .yfa-readonly {
    background: #f5f5f5 !important;
    color: #555 !important;
    cursor: not-allowed !important;
}

.yfa-form .yfa-readonly:focus {
    outline: none;
    box-shadow: none !important;
    border-color: #ddd !important;
}

/* ========================
   省份/城市/区县字段兼容
   ======================== */
.yfa-form input[name="city"],
.yfa-form input[name="county"] {
    background: #fff !important;
}

.yfa-form input[name="city"].yfa-readonly,
.yfa-form input[name="county"].yfa-readonly {
    background: #f5f5f5 !important;
}

/* ========================
   部门信息显示条
   ======================== */
.yfa-dept-bar {
    margin-top: 6px;
}

.yfa-dept-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

/* ========================
   地址预览框
   ======================== */
.yfa-address-preview-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.8;
}

.yfa-address-preview-box pre {
    margin: 0;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ========================
   按钮 loading 态
   ======================== */
.yfa-form .but.loading {
    opacity: 0.6;
    pointer-events: none;
}
