/* 代理弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    /* width: 520px; */
    position: relative;
}

.modal-content {
    /* width: 520px; */
    padding: 32px;
}




.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
}

.form-row label {
    width: 85px;
    color: #333;
    font-size: 14px;
    text-align: left;
    padding-right: 12px;
    line-height: 40px;
}

.form-row input,
.form-row textarea,
.select-wrapper select {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #E5E6EB;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.select-wrapper {
    flex: 1;
    position: relative;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
}

.form-row textarea {
    height: 100px;
    padding: 12px 16px;
    resize: none;
    border-radius: 12px;
    line-height: 1.5;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-cancel,
.btn-submit {
    width: 170px;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    cursor: pointer;
    font-weight: normal;
    flex: none;
}

.btn-cancel {
    background: #F0F2F5;
    color: #1677FF;
}

.btn-submit {
    background: #1677FF;
    color: #FFFFFF;
}

.form-row input::placeholder,
.form-row textarea::placeholder,
.select-wrapper select:invalid {
    color: #999;
}

.form-row input.invalid,
.form-row textarea.invalid,
.select-wrapper select.invalid {
    border-color: #ff4d4f;
}

.error-tip {
    position: absolute;
    left: 97px;  /* 标签宽度(85px) + 右padding(12px) */
    bottom: -20px;
    font-size: 12px;
    color: #ff4d4f;
}

/* 备注框的错误提示位置调整 */
.form-row:last-of-type .error-tip {
    bottom: -20px;
}

/* 增加行间距，为错误提示留出空间 */
.form-row {
    margin-bottom: 24px;
}

.form-row:last-of-type {
    margin-bottom: 32px;
}

.submit-success-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.btn-submit:disabled {
    cursor: not-allowed;
}

.cascader-wrapper {
    flex: 1;
    position: relative;
}

.cascader-input {
    position: relative;
    width: 100%;
}

.cascader-input input {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #E5E6EB;
    /* border-radius: 20px; */
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.cascader-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
    transition: transform 0.3s;
}

.cascader-wrapper.active .cascader-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.cascader-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.cascader-wrapper.active .cascader-dropdown {
    display: block;
}

.cascader-menu {
    display: flex;
    min-height: 180px;
    max-height: 300px;
}

.cascader-menu ul {
    flex: 1;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-right: 1px solid #E5E6EB;
    overflow-y: auto;
}

.cascader-menu ul:last-child {
    border-right: none;
}

.cascader-menu li {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cascader-menu li:hover {
    background: #F5F7FA;
}

.cascader-menu li.active {
    color: #1677FF;
    background: #E6F4FF;
}

.cascader-menu li.disabled {
    color: #999;
    cursor: not-allowed;
    background: none;
} 