/* 标签和按钮容器 */
.label-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.position-selector-button {
    padding: 4px 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 28px;
    line-height: 20px;
}

.position-selector-button:hover {
    background: #40a9ff;
}

.position-selector-button:active {
    background: #096dd9;
}

/* 报告接收区域：限定选择器，避免影响其他表单和验证码样式 */
.report-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    color: #333;
}

.report-title {
    font-size: 16px;
    font-weight: 600;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-field label {
    font-size: 14px;
    font-weight: 400;
}

.report-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.report-input-wrapper:focus-within {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.report-input-wrapper .report-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

.report-email-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #999;
}

.report-phone-prefix {
    flex-shrink: 0;
    font-size: 14px;
}

.report-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fffbe6;
    color: #8c6d1f;
    font-size: 12px;
    line-height: 1.5;
}

.report-hint svg {
    flex-shrink: 0;
    width: 16px;
    height: 18px;
}

/* 验证码容器样式 */
.verification-code-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.verification-code-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s;
}

.verification-code-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 发送验证码按钮样式 */
.send-code-button {
    padding: 8px 16px;
    background: #0D75FB;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.send-code-button:hover:not(:disabled) {
    background-color: #40a9ff;
}

.send-code-button:disabled {
    background-color: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
}

/* 职位选择器弹窗样式 */
.position-selector-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.position-selector-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.position-selector-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.position-selector-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.position-selector-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.position-selector-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.85);
}

.position-selector-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .position-selector-modal {
        width: 100%;
        height: 90vh;
        max-height: none;
        border-radius: 8px 8px 0 0;
        margin-top: auto;
    }

    .position-selector-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}
